public function getPoll() { static $poll = null; if (!$poll) { $poll = KunenaForumTopicPollHelper::get($this->poll_id); $poll->threadid = $this->id; } return $poll; }
/** * @return KunenaForumTopicPoll */ public function getPoll() { $poll = KunenaForumTopicPollHelper::get($this->poll_id); $poll->threadid = $this->id; return $poll; }
/** * Returns KunenaForumTopicPoll object. * * @param mixed $identifier Poll to load - Can be only an integer. * @param bool $reset * * @return KunenaForumTopicPoll */ static public function getInstance($identifier = null, $reset = false) { return KunenaForumTopicPollHelper::get($identifier, $reset); }