/**
  * Обновление разговора
  *
  * @param ModuleTalk_EntityTalk $oTalk Объект сообщения
  * @return int
  */
 public function UpdateTalk(ModuleTalk_EntityTalk $oTalk)
 {
     $sql = "UPDATE " . Config::Get('db.table.talk') . " SET\n        talk_date_last = ? ,\n        talk_user_id_last = ? ,\n        talk_comment_id_last = ? ,\n        talk_count_comment = ?\n      WHERE\n        talk_id = ?d\n    ";
     return $this->oDb->query($sql, $oTalk->getDateLast(), $oTalk->getUserIdLast(), $oTalk->getCommentIdLast(), $oTalk->getCountComment(), $oTalk->getId());
 }
Ejemplo n.º 2
0
 /**
  * Обновление разговора
  *
  * @param ModuleTalk_EntityTalk $oTalk    Объект сообщения
  *
  * @return int
  */
 public function UpdateTalk(ModuleTalk_EntityTalk $oTalk)
 {
     $sql = "UPDATE ?_talk SET\n\t\t\t\ttalk_date_last = ? ,\n\t\t\t\ttalk_user_id_last = ? ,\n\t\t\t\ttalk_comment_id_last = ? ,\n\t\t\t\ttalk_count_comment = ?\n\t\t\tWHERE \n\t\t\t\ttalk_id = ?d\n\t\t";
     $bResult = $this->oDb->query($sql, $oTalk->getDateLast(), $oTalk->getUserIdLast(), $oTalk->getCommentIdLast(), $oTalk->getCountComment(), $oTalk->getId());
     return $bResult !== false;
 }