本文整理汇总了PHP中TimeDate::fromMysql方法的典型用法代码示例。如果您正苦于以下问题:PHP TimeDate::fromMysql方法的具体用法?PHP TimeDate::fromMysql怎么用?PHP TimeDate::fromMysql使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TimeDate
的用法示例。
在下文中一共展示了TimeDate::fromMysql方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: assignResult
/**
* {@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'];
}
示例2: assignResult
/**
* {@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'];
}
示例3: assignResult
/**
* {@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'];
}
示例4: assignResult
/**
* {@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']);
}
示例5: assignResult
/**
* {@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'];
}
示例6: assignResult
/**
* {@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'];
}
示例7: assignResult
/**
* {@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']);
}
示例8: assignResult
/**
* {@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'];
}
示例9: assignResult
/**
* {@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'];
}
示例10: assignResult
/**
* {@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'];
}
示例11: assignLazyResult
/**
* {@inheritDoc}
*/
protected function assignLazyResult($page)
{
$this->content = $page['content'];
$this->created = TimeDate::fromMysql($page['created']);
$this->updated = TimeDate::fromMysql($page['updated']);
}
示例12: assignResult
/**
* {@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'];
}
示例13: assignResult
/**
* {@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;
}
示例14: assignResult
/**
* {@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'];
}
示例15: assignLazyResult
/**
* {@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();
}