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); }
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); }