예제 #1
0
 /**
  * @see PwPostAction.dataProcessing
  */
 public function dataProcessing(PwPostDm $postDm)
 {
     $postDm->setTid($this->tid)->setFid($this->forum->fid)->setAuthor($this->user->uid, $this->user->username, $this->user->ip)->setCreatedTime(Pw::getTime())->setDisabled($this->isDisabled());
     if (($result = $this->checkContentHash($postDm->getContent())) !== true) {
         return $result;
     }
     if (($postDm = $this->runWithFilters('dataProcessing', $postDm)) instanceof PwError) {
         return $postDm;
     }
     $this->postDm = $postDm;
     return true;
 }