src/Service/Emailer.php
public function getAll($iPage = null, $iPerPage = null, $aData = [])
    {
        $oResults   = $this->getAllRawQuery($iPage, $iPerPage, $aData);
        $aResults   = $oResults->result();
        $numResults = count($aResults);

        for ($i = 0; $i < $numResults; $i++) {
            $this->formatObject($aResults[$i]);
        }

        return $aResults;
    }
public function getAll($iPage = null, $iPerPage = null, $aData = [])
    {
        $oResults   = $this->getAllRawQuery($iPage, $iPerPage, $aData);
        $aResults   = $oResults->result();
        $numResults = count($aResults);

        for ($i = 0; $i < $numResults; $i++) {
            $this->formatObject($aResults[$i]);
        }

        return $aResults;
    }
public function getAll ( $ iPage = null , $ iPerPage = null , $ aData = [ ] ) { $ oResults = $ this -> getAllRawQuery ( $ iPage , $ iPerPage , $ aData ) ; $ aResults = $ oResults -> result ( ) ; $ numResults = count ( $ aResults ) ; for ( $ i = 0 ; $ i < $ numResults ; $ i ++ ) { $ this -> formatObject ( $ aResults [ $ i ] ) ; } return $ aResults ; }
Fetches all emails from the archive and formats them, optionally paginated

@param int   $iPage    The page number of the results, if null then no pagination
@param int   $iPerPage How many items per page of paginated results
@param mixed $aData    Any data to pass to getCountCommon()

@return array
@throws \Nails\Common\Exception\FactoryException
Fetches all emails from the archive and formats them optionally paginated