public function addAvailableFilters($userId)
    {
        $this->neq(TaskLogBrokerInterface::COLUMN_STATUS, TaskLogInterface::STATUS_ARCHIVED);

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

        return $this;
    }
public function addAvailableFilters($userId)
    {
        $this->neq(TaskLogBrokerInterface::COLUMN_STATUS, TaskLogInterface::STATUS_ARCHIVED);

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

        return $this;
    }
public function addAvailableFilters ( $ userId ) { $ this -> neq ( TaskLogBrokerInterface :: COLUMN_STATUS , TaskLogInterface :: STATUS_ARCHIVED ) ; 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.

@param $userId
@return $this
Add a basic filter to query only rows belonging to a given user and not having status ARCHIVED .