protected function getUserInformation($loginOrMail)
    {
        $userModel = new Model();

        $user = null;
        if ($userModel->userExists($loginOrMail)) {
            $user = $userModel->getUser($loginOrMail);
        } else if ($userModel->userEmailExists($loginOrMail)) {
            $user = $userModel->getUserByEmail($loginOrMail);
        }
        return $user;
    }
protected function getUserInformation($loginOrMail)
    {
        $userModel = new Model();

        $user = null;
        if ($userModel->userExists($loginOrMail)) {
            $user = $userModel->getUser($loginOrMail);
        } else if ($userModel->userEmailExists($loginOrMail)) {
            $user = $userModel->getUserByEmail($loginOrMail);
        }
        return $user;
    }
protected function getUserInformation ( $ loginOrMail ) { $ userModel = new Model ( ) ; $ user = null ; if ( $ userModel -> userExists ( $ loginOrMail ) ) { $ user = $ userModel -> getUser ( $ loginOrMail ) ; } else if ( $ userModel -> userEmailExists ( $ loginOrMail ) ) { $ user = $ userModel -> getUserByEmail ( $ loginOrMail ) ; } return $ user ; }
Returns user information based on a login or email.

Derived classes can override this method to provide custom user querying logic.

@param string $loginMail user login or email address
@return array `array("login" => '...', "email" => '...', "password" => '...')` or null, if user not found.
Returns user information based on a login or email .