示例#1
0
 /**
  * Обновляет контент топика
  *
  * @param ModuleTopic_EntityTopic $oTopic    Объект топика
  *
  * @return bool
  */
 public function UpdateTopicContent(ModuleTopic_EntityTopic $oTopic)
 {
     $sql = "UPDATE ?_topic_content\n\t\t\tSET\n\t\t\t\ttopic_text= ?,\n\t\t\t\ttopic_text_short= ?,\n\t\t\t\ttopic_text_source= ?,\n\t\t\t\ttopic_extra= ?\n\t\t\tWHERE\n\t\t\t\ttopic_id = ?d\n\t\t";
     $bResult = $this->oDb->query($sql, $oTopic->getText(), $oTopic->getTextShort(), $oTopic->getTextSource(), $oTopic->getExtra(), $oTopic->getId());
     return $bResult !== false;
 }
 /**
  * Обновляет контент топика
  *
  * @param ModuleTopic_EntityTopic $oTopic Объект топика
  * @return bool
  */
 public function UpdateTopicContent(ModuleTopic_EntityTopic $oTopic)
 {
     $sql = "UPDATE " . Config::Get('db.table.topic_content') . "\n\t\t\tSET \t\t\t\t\n\t\t\t\ttopic_text= ?,\n\t\t\t\ttopic_text_short= ?,\n\t\t\t\ttopic_text_source= ?,\n\t\t\t\ttopic_extra= ?\n\t\t\tWHERE\n\t\t\t\ttopic_id = ?d\n\t\t";
     $res = $this->oDb->query($sql, $oTopic->getText(), $oTopic->getTextShort(), $oTopic->getTextSource(), $oTopic->getExtra(), $oTopic->getId());
     return $this->IsSuccessful($res);
 }
 /**
  * Обновляет контент топика
  *
  * @param ModuleTopic_EntityTopic $oTopic Объект топика
  * @return bool
  */
 public function UpdateTopicContent(ModuleTopic_EntityTopic $oTopic)
 {
     $sql = "UPDATE " . Config::Get('db.table.topic_content') . "\n      SET\n        topic_text= ?,\n        topic_text_short= ?,\n        topic_text_source= ?,\n        topic_extra= ?\n      WHERE\n        topic_id = ?d\n    ";
     if ($this->oDb->query($sql, $oTopic->getText(), $oTopic->getTextShort(), $oTopic->getTextSource(), $oTopic->getExtra(), $oTopic->getId())) {
         return true;
     }
     return false;
 }