當前位置: 首頁>>代碼示例>>PHP>>正文


PHP TimeDate::fromMysql方法代碼示例

本文整理匯總了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'];
 }
開發者ID:blast007,項目名稱:bzion,代碼行數:10,代碼來源:AbstractMessage.php

示例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'];
 }
開發者ID:allejo,項目名稱:bzion,代碼行數:10,代碼來源:Conversation.php

示例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'];
 }
開發者ID:kleitz,項目名稱:bzion,代碼行數:11,代碼來源:GroupEvent.php

示例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']);
 }
開發者ID:blast007,項目名稱:bzion,代碼行數:11,代碼來源:Notification.php

示例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'];
 }
開發者ID:bchhun,項目名稱:bzion,代碼行數:11,代碼來源:Message.php

示例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'];
 }
開發者ID:bchhun,項目名稱:bzion,代碼行數:11,代碼來源:Invitation.php

示例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']);
 }
開發者ID:allejo,項目名稱:bzion,代碼行數:12,代碼來源:Visit.php

示例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'];
 }
開發者ID:kleitz,項目名稱:bzion,代碼行數:14,代碼來源:Server.php

示例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'];
 }
開發者ID:blast007,項目名稱:bzion,代碼行數:14,代碼來源:News.php

示例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'];
 }
開發者ID:allejo,項目名稱:bzion,代碼行數:15,代碼來源:Ban.php

示例11: assignLazyResult

 /**
  * {@inheritDoc}
  */
 protected function assignLazyResult($page)
 {
     $this->content = $page['content'];
     $this->created = TimeDate::fromMysql($page['created']);
     $this->updated = TimeDate::fromMysql($page['updated']);
 }
開發者ID:bchhun,項目名稱:bzion,代碼行數:9,代碼來源:Page.php

示例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'];
 }
開發者ID:bchhun,項目名稱:bzion,代碼行數:25,代碼來源:Match.php

示例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;
 }
開發者ID:allejo,項目名稱:bzion,代碼行數:20,代碼來源:Team.php

示例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'];
 }
開發者ID:allejo,項目名稱:bzion,代碼行數:16,代碼來源:Server.php

示例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();
 }
開發者ID:bchhun,項目名稱:bzion,代碼行數:17,代碼來源:Player.php


注:本文中的TimeDate::fromMysql方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。