コード例 #1
0
ファイル: User.php プロジェクト: hafeez3000/lichess
 public function is(User $user = null)
 {
     return $user && $user->getUsernameCanonical() === $this->getUsernameCanonical();
 }
コード例 #2
0
ファイル: History.php プロジェクト: hotfics/lichess-old
 public function __construct(User $user)
 {
     $this->id = $user->getUsernameCanonical();
     $this->addEntry($user->getCreatedAt()->getTimestamp(), User::STARTING_ELO, self::TYPE_START);
 }
コード例 #3
0
ファイル: Cache.php プロジェクト: hafeez3000/lichess
 public function isOnline(User $user)
 {
     return $this->isUsernameOnline($user->getUsernameCanonical());
 }
コード例 #4
0
 public function findOneByUser(User $user)
 {
     return $this->findOneBy(array('id' => $user->getUsernameCanonical()));
 }