public function getEmailsForUser($id)
    {
        $oDb = Factory::service('Database');
        $oDb->where('user_id', $id);
        $oDb->order_by('date_added');
        $oDb->order_by('email', 'ASC');
        return $oDb->get($this->tableEmail)->result();
    }
public function getEmailsForUser($id)
    {
        $oDb = Factory::service('Database');
        $oDb->where('user_id', $id);
        $oDb->order_by('date_added');
        $oDb->order_by('email', 'ASC');
        return $oDb->get($this->tableEmail)->result();
    }
public function getEmailsForUser ( $ id ) { $ oDb = Factory :: service ( 'Database' ) ; $ oDb -> where ( 'user_id' , $ id ) ; $ oDb -> order_by ( 'date_added' ) ; $ oDb -> order_by ( 'email' , 'ASC' ) ; return $ oDb -> get ( $ this -> tableEmail ) -> result ( ) ; }
Get all the email addresses which are registered to a particular user ID

@param integer $id The user's ID

@return array
Get all the email addresses which are registered to a particular user ID