/**
  * add forum topic view num
  *
  * @param  Mixed  $var($oMbqEtForumTopic or $objsMbqEtForumTopic)
  */
 public function addForumTopicViewNum($oMbqEtForumTopic)
 {
     //ref wbb\page\ThreadPage::readData()
     // update view count
     $threadEditor = new ThreadEditor($oMbqEtForumTopic->mbqBind['oViewableThread']->getDecoratedObject());
     $threadEditor->updateCounters(array('views' => 1));
 }
Exemple #2
0
 /**
  * add forum topic view num
  *
  * @param  Mixed  $var($oMbqEtForumTopic or $objsMbqEtForumTopic)
  */
 public function addForumTopicViewNum(&$var)
 {
     if (is_array($var)) {
         MbqError::alert('', __METHOD__ . ',line:' . __LINE__ . '.' . MBQ_ERR_INFO_NOT_ACHIEVE);
     } else {
         //ref wbb\page\ThreadPage::readData()
         // update view count
         $threadEditor = new ThreadEditor($var->mbqBind['oViewableThread']->getDecoratedObject());
         $threadEditor->updateCounters(array('views' => 1));
     }
 }