/** * {@inheritdoc} */ protected function assignResult($event) { $this->conversation = $event['conversation_to']; $this->type = $event['event_type']; $this->timestamp = TimeDate::fromMysql($event['timestamp']); $this->status = $event['status']; }
/** * {@inheritdoc} */ protected function assignResult($conversation) { $this->subject = $conversation['subject']; $this->last_activity = TimeDate::fromMysql($conversation['last_activity']); $this->creator = $conversation['creator']; $this->status = $conversation['status']; }
/** * {@inheritDoc} */ protected function assignResult($event) { $this->group = $event['group_to']; $this->event = unserialize($event['event']); $this->type = $event['type']; $this->timestamp = TimeDate::fromMysql($event['timestamp']); $this->status = $event['status']; }
/** * {@inheritdoc} */ protected function assignResult($notification) { $this->receiver = $notification['receiver']; $this->type = $notification['type']; $this->event = unserialize($notification['event']); $this->status = $notification['status']; $this->timestamp = TimeDate::fromMysql($notification['timestamp']); }
/** * {@inheritDoc} */ protected function assignResult($message) { $this->group_to = $message['group_to']; $this->player_from = $message['player_from']; $this->timestamp = TimeDate::fromMysql($message['timestamp']); $this->message = $message['message']; $this->status = $message['status']; }
/** * {@inheritDoc} */ protected function assignResult($invitation) { $this->invited_player = $invitation['invited_player']; $this->sent_by = $invitation['sent_by']; $this->team = $invitation['team']; $this->expiration = TimeDate::fromMysql($invitation['expiration']); $this->text = $invitation['text']; }
/** * {@inheritdoc} */ protected function assignResult($visit) { $this->player = $visit['player']; $this->ip = $visit['ip']; $this->host = $visit['host']; $this->user_agent = $visit['user_agent']; $this->referer = $visit['referer']; $this->timestamp = TimeDate::fromMysql($visit['timestamp']); }
/** * {@inheritDoc} */ protected function assignResult($server) { $this->name = $server['name']; $this->address = $server['address']; $this->country = new Country($server['country']); $this->owner = $server['owner']; $this->online = $server['online']; $this->info = unserialize($server['info']); $this->updated = TimeDate::fromMysql($server['updated']); $this->status = $server['status']; }
/** * {@inheritdoc} */ protected function assignResult($news) { $this->category = $news['category']; $this->subject = $news['subject']; $this->content = $news['content']; $this->created = TimeDate::fromMysql($news['created']); $this->updated = TimeDate::fromMysql($news['updated']); $this->author = $news['author']; $this->editor = $news['editor']; $this->status = $news['status']; }
/** * {@inheritdoc} */ protected function assignResult($ban) { $this->player = $ban['player']; $this->expiration = $ban['expiration'] === null ? null : TimeDate::fromMysql($ban['expiration']); $this->srvmsg = $ban['server_message']; $this->reason = $ban['reason']; $this->allowServerJoin = $ban['allow_server_join']; $this->created = TimeDate::fromMysql($ban['created']); $this->updated = TimeDate::fromMysql($ban['updated']); $this->author = $ban['author']; $this->status = $ban['status']; }
/** * {@inheritDoc} */ protected function assignLazyResult($page) { $this->content = $page['content']; $this->created = TimeDate::fromMysql($page['created']); $this->updated = TimeDate::fromMysql($page['updated']); }
/** * {@inheritDoc} */ protected function assignResult($match) { $this->team_a = $match['team_a']; $this->team_b = $match['team_b']; $this->team_a_points = $match['team_a_points']; $this->team_b_points = $match['team_b_points']; $this->team_a_players = $match['team_a_players']; $this->team_b_players = $match['team_b_players']; $this->team_a_elo_new = $match['team_a_elo_new']; $this->team_b_elo_new = $match['team_b_elo_new']; $this->map_played = $match['map_played']; $this->match_details = $match['match_details']; $this->port = $match['port']; $this->server = $match['server']; $this->replay_file = $match['replay_file']; $this->elo_diff = $match['elo_diff']; $this->timestamp = TimeDate::fromMysql($match['timestamp']); $this->updated = TimeDate::fromMysql($match['updated']); $this->duration = $match['duration']; $this->entered_by = $match['entered_by']; $this->status = $match['status']; }
/** * {@inheritdoc} */ protected function assignResult($team) { $this->name = $team['name']; $this->alias = $team['alias']; $this->description = $team['description']; $this->avatar = $team['avatar']; $this->created = TimeDate::fromMysql($team['created']); $this->elo = $team['elo']; $this->activity = null; $this->leader = $team['leader']; $this->matches_won = $team['matches_won']; $this->matches_lost = $team['matches_lost']; $this->matches_draw = $team['matches_draw']; $this->members = $team['members']; $this->status = $team['status']; $this->matches_total = $this->matches_won + $this->matches_lost + $this->matches_draw; }
/** * {@inheritdoc} */ protected function assignResult($server) { $this->name = $server['name']; $this->domain = $server['domain']; $this->port = $server['port']; $this->country = $server['country']; $this->owner = $server['owner']; $this->online = $server['online']; $this->info = unserialize($server['info']); $this->api_key = ApiKey::get($server['api_key']); $this->updated = TimeDate::fromMysql($server['updated']); $this->status = $server['status']; }
/** * {@inheritDoc} */ protected function assignLazyResult($player) { $this->email = $player['email']; $this->verified = $player['verified']; $this->receives = $player['receives']; $this->confirmCode = $player['confirm_code']; $this->outdated = $player['outdated']; $this->description = $player['description']; $this->timezone = $player['timezone']; $this->joined = TimeDate::fromMysql($player['joined']); $this->last_login = TimeDate::fromMysql($player['last_login']); $this->admin_notes = $player['admin_notes']; $this->updateUserPermissions(); }