public function getAll($iPage = null, $iPerPage = null, array $aData = [], $bIncludeDeleted = false): array
    {
        //  If the first value is an array then treat as if called with getAll(null, null, $aData);
        //  @todo (Pablo - 2017-06-29) - Refactor how this join works (use expandable field)
        if (is_array($iPage)) {
            $aData = $iPage;
            $iPage = null;
        }

        if (empty($aData['select'])) {
            $aData['select'] = [
                $this->getTableAlias() . '.*',
                'u.first_name',
                'u.last_name',
                'u.gender',
                'u.profile_img',
                'ue.email',
            ];
        }

        return parent::getAll($iPage, $iPerPage, $aData, $bIncludeDeleted);
    }
public function getAll($iPage = null, $iPerPage = null, array $aData = [], $bIncludeDeleted = false): array
    {
        //  If the first value is an array then treat as if called with getAll(null, null, $aData);
        //  @todo (Pablo - 2017-06-29) - Refactor how this join works (use expandable field)
        if (is_array($iPage)) {
            $aData = $iPage;
            $iPage = null;
        }

        if (empty($aData['select'])) {
            $aData['select'] = [
                $this->getTableAlias() . '.*',
                'u.first_name',
                'u.last_name',
                'u.gender',
                'u.profile_img',
                'ue.email',
            ];
        }

        return parent::getAll($iPage, $iPerPage, $aData, $bIncludeDeleted);
    }
public function getAll ( $ iPage = null , $ iPerPage = null , array $ aData = [ ] , $ bIncludeDeleted = false ) : array { //  If the first value is an array then treat as if called with getAll(null, null, $aData); //  @todo (Pablo - 2017-06-29) - Refactor how this join works (use expandable field) if ( is_array ( $ iPage ) ) { $ aData = $ iPage ; $ iPage = null ; } if ( empty ( $ aData [ 'select' ] ) ) { $ aData [ 'select' ] = [ $ this -> getTableAlias ( ) . '.*' , 'u.first_name' , 'u.last_name' , 'u.gender' , 'u.profile_img' , 'ue.email' , ] ; } return parent :: getAll ( $ iPage , $ iPerPage , $ aData , $ bIncludeDeleted ) ; }
Fetches all objects, optionally paginated.

@param integer $iPage           The page number of the results, if null then no pagination
@param integer $iPerPage        How many items per page of paginated results
@param array   $aData           Any data to pass to getCountCommon()
@param bool    $bIncludeDeleted Whetehr to include deleted items

@return array
Fetches all objects optionally paginated .