Example #1
0
 public function __construct(PwPostAction $action)
 {
     $this->action = $action;
     $this->forum = $action->forum;
     $this->user = $action->user;
     $this->special = $action->getSpecial();
     /** hook **/
     $this->action->setSrv($this);
 }
Example #2
0
 public function __construct($pid, PwUserBo $user = null)
 {
     $this->info = $this->_getThreadService()->getPost($pid);
     $this->pid = $pid;
     $this->tid = $this->info['tid'];
     parent::__construct($this->info['fid'], $user);
 }
Example #3
0
 public function __construct($tid, PwUserBo $user = null)
 {
     $this->tid = $tid;
     $threadService = $this->_getThreadService();
     $this->info = $threadService->getThread($tid, PwThread::FETCH_ALL);
     parent::__construct($this->info['fid'], $user);
 }
Example #4
0
 public function updateUser()
 {
     $userDm = parent::updateUser();
     $userDm->addPostnum(1)->addTodaypost(1)->setPostcheck($this->getHash($this->postDm->getContent()));
     return $userDm;
 }