示例#1
0
 /**
  * Updates visits.
  *
  * @param FileModel $model
  */
 public function saveVisits(TopicModel $model)
 {
     if ($model->getVisits()) {
         $this->db()->update('forum_topics')->values(array('visits' => $model->getVisits()))->where(array('id' => $model->getId()))->execute();
     }
 }