예제 #1
0
파일: Dog.php 프로젝트: sinfocol/gwf3
 /**
  * Called by events to get or create the user.
  * @return Dog_User
  */
 public static function getOrCreateUserByName($username)
 {
     if (false !== ($user = self::$LAST_SERVER->getUserByName($username))) {
         return $user;
     }
     if (false !== ($user = Dog_User::getOrCreate(self::$LAST_SERVER->getID(), $username))) {
         return $user;
     }
     return false;
 }