src/Service/Emailer.php
public function getById($iId, $aData = [])
    {
        if (empty($aData['where'])) {
            $aData['where'] = [];
        }

        $aData['where'][] = [$this->sTableAlias . '.id', $iId];

        $aEmails = $this->getAll(null, null, $aData);

        return !empty($aEmails) ? reset($aEmails) : false;
    }
public function getById($iId, $aData = [])
    {
        if (empty($aData['where'])) {
            $aData['where'] = [];
        }

        $aData['where'][] = [$this->sTableAlias . '.id', $iId];

        $aEmails = $this->getAll(null, null, $aData);

        return !empty($aEmails) ? reset($aEmails) : false;
    }
public function getById ( $ iId , $ aData = [ ] ) { if ( empty ( $ aData [ 'where' ] ) ) { $ aData [ 'where' ] = [ ] ; } $ aData [ 'where' ] [ ] = [ $ this -> sTableAlias . '.id' , $ iId ] ; $ aEmails = $ this -> getAll ( null , null , $ aData ) ; return ! empty ( $ aEmails ) ? reset ( $ aEmails ) : false ; }
Get en email from the archive by its ID

@param  int  $iId   The email's ID
@param array $aData The data array

@return mixed   stdClass on success, false on failure
@throws \Nails\Common\Exception\FactoryException
Get en email from the archive by its ID