Beispiel #1
0
 /**
  * 逻辑处理,数据准备
  */
 public function execute(PwReadDataSource $ds)
 {
     PwHook::registerHook('s_PwUbbCode_convert', array('class' => 'SRV:forum.srv.PwThreadDisplay', 'method' => 'escapeSpace', 'loadway' => 'static'));
     $this->_ds = $ds;
     $ds->execute();
     $this->total = $ds->total;
     $this->page = $ds->page;
     $this->perpage = $ds->perpage;
     $this->maxpage = $ds->maxpage;
     $start = $ds->firstFloor;
     $this->bulidUsers($ds->getUser());
     $this->readdb =& $ds->getData();
     $this->_initAttachs($ds->getAttach());
     foreach ($this->readdb as $key => $read) {
         $this->readdb[$key] = $this->bulidRead($read, $start++);
     }
     $this->thread->hit();
 }