コード例 #1
0
ファイル: Conversation.php プロジェクト: allejo/bzion
 /**
  * Update the conversation's last activity timestamp
  *
  * @return void
  */
 public function updateLastActivity()
 {
     $this->last_activity = TimeDate::now();
     $this->update('last_activity', $this->last_activity->toMysql());
 }
コード例 #2
0
ファイル: Match.php プロジェクト: blast007/bzion
 /**
  * Set the timestamp of the match
  *
  * @param  mixed The match's new timestamp
  * @return $this
  */
 public function setTimestamp($timestamp)
 {
     $this->timestamp = TimeDate::from($timestamp);
     $this->update("timestamp", $this->timestamp->toMysql(), "s");
     return $this;
 }