public function getByEmail($email)
    {
        if (!is_string($email)) {
            return false;
        }

        // --------------------------------------------------------------------------

        //  Look up the email, and if we find an ID then fetch that user
        $oDb = Factory::service('Database');
        $oDb->select('user_id');
        $oDb->where('email', trim($email));
        $user = $oDb->get($this->tableEmail)->row();

        return $user ? $this->getById($user->user_id) : false;
    }
public function getByEmail($email)
    {
        if (!is_string($email)) {
            return false;
        }

        // --------------------------------------------------------------------------

        //  Look up the email, and if we find an ID then fetch that user
        $oDb = Factory::service('Database');
        $oDb->select('user_id');
        $oDb->where('email', trim($email));
        $user = $oDb->get($this->tableEmail)->row();

        return $user ? $this->getById($user->user_id) : false;
    }
public function getByEmail ( $ email ) { if ( ! is_string ( $ email ) ) { return false ; } // -------------------------------------------------------------------------- //  Look up the email, and if we find an ID then fetch that user $ oDb = Factory :: service ( 'Database' ) ; $ oDb -> select ( 'user_id' ) ; $ oDb -> where ( 'email' , trim ( $ email ) ) ; $ user = $ oDb -> get ( $ this -> tableEmail ) -> row ( ) ; return $ user ? $ this -> getById ( $ user -> user_id ) : false ; }
Get a user by their email address

@param string $email The user's email address

@return mixed         stdClass on success, false on failure
Get a user by their email address