Пример #1
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);
 }
Пример #2
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);
 }