3 * Database row from the "gamesticks" table
7 protected string $avatarDir;
11 public string $sessionId;
12 public ?string $verificationCode;
13 public ?string $gamerTag;
14 public bool $founderFlag;
15 public ?string $founderName;
17 public ?string $avatar;
19 public string $created_at;
20 public string $updated_at;
22 public function __construct()
24 $this->avatarDir = dirname(__FILE__) . '/../www/resources/avatars/';
27 public function complete(): bool
29 return $this->gamerTag !== null;
32 public function getAvatarLargeUrl(): string
34 if (strpos($this->avatar, '://')) {
38 if (file_exists($this->avatarDir . $this->avatar . '.large.jpg')) {
44 return 'http://l2.gamestickservices.net/resources/avatars/'
45 . $this->avatar . '.large.' . $ext;
48 public function getAvatarSmallUrl(): string
50 if (strpos($this->avatar, '://')) {
54 if (file_exists($this->avatarDir . $this->avatar . '.small.jpg')) {
60 return 'http://l2.gamestickservices.net/resources/avatars/'
61 . $this->avatar . '.small.' . $ext;