Ejemplo n.º 1
0
 /**
  * 批量更新帖子
  *
  * @param array $tids 帖子id
  * @param object $topicDm 帖子数据模型
  * @param int $fetchmode 帖子资料 <必然为FETCH_*的一种或者组合>
  * @return mixed
  */
 public function batchUpdateThread($tids, PwTopicDm $topicDm, $fetchmode = self::FETCH_ALL)
 {
     if (empty($tids)) {
         return false;
     }
     if (($result = $topicDm->beforeUpdate()) !== true) {
         return $result;
     }
     return $this->_getThreadDao($fetchmode)->batchUpdateThread($tids, $topicDm->getData(), $topicDm->getIncreaseData(), $topicDm->getBitData());
 }