Prado\Security\TDbUserManager::getUser PHP Méthode

getUser() public méthode

Returns a user instance given the user name.
public getUser ( $username = null ) : TUser
Résultat TUser the user instance, null if the specified username is not in the user database.
    public function getUser($username = null)
    {
        if ($username === null) {
            $user = Prado::createComponent($this->_userClass, $this);
            $user->setIsGuest(true);
            return $user;
        } else {
            return $this->_userFactory->createUser($username);
        }
    }