getUser() 공개 메소드

Returns a user instance given the user name.
public getUser ( $username = null ) : TUser
리턴 TUser the user instance, null if the specified username is not in the user database.
예제 #1
0
 public function testSwitchToGuest()
 {
     $userManager = new TUserManager();
     $userManager->init(self::$config);
     $user = $userManager->getUser('joe');
     $userManager->switchToGuest($user);
     self::assertTrue($user->getIsGuest());
 }