public function addAvailableFilters($userId, $archivedAllowed = false, $cancelledAvailable = false)
    {
        if (!$archivedAllowed) {
            $this->neq(TaskLogBrokerInterface::COLUMN_STATUS, TaskLogInterface::STATUS_ARCHIVED);
        }

        if (!$cancelledAvailable) {
            $this->neq(TaskLogBrokerInterface::COLUMN_STATUS, TaskLogInterface::STATUS_CANCELLED);
        }

        if ($userId !== TaskLogInterface::SUPER_USER) {
            $this->eq(TaskLogBrokerInterface::COLUMN_OWNER, $userId);
        }

        return $this;
    }
public function addAvailableFilters($userId, $archivedAllowed = false, $cancelledAvailable = false)
    {
        if (!$archivedAllowed) {
            $this->neq(TaskLogBrokerInterface::COLUMN_STATUS, TaskLogInterface::STATUS_ARCHIVED);
        }

        if (!$cancelledAvailable) {
            $this->neq(TaskLogBrokerInterface::COLUMN_STATUS, TaskLogInterface::STATUS_CANCELLED);
        }

        if ($userId !== TaskLogInterface::SUPER_USER) {
            $this->eq(TaskLogBrokerInterface::COLUMN_OWNER, $userId);
        }

        return $this;
    }
public function addAvailableFilters ( $ userId , $ archivedAllowed = false , $ cancelledAvailable = false ) { if ( ! $ archivedAllowed ) { $ this -> neq ( TaskLogBrokerInterface :: COLUMN_STATUS , TaskLogInterface :: STATUS_ARCHIVED ) ; } if ( ! $ cancelledAvailable ) { $ this -> neq ( TaskLogBrokerInterface :: COLUMN_STATUS , TaskLogInterface :: STATUS_CANCELLED ) ; } if ( $ userId !== TaskLogInterface :: SUPER_USER ) { $ this -> eq ( TaskLogBrokerInterface :: COLUMN_OWNER , $ userId ) ; } return $ this ; }
Add a basic filter to query only rows belonging to a given user and not having status ARCHIVED or CANCELLED.

@param string $userId
@param bool $archivedAllowed
@param bool $cancelledAvailable
@return $this
Add a basic filter to query only rows belonging to a given user and not having status ARCHIVED or CANCELLED .