示例#1
0
 /**
  * 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;
 }