예제 #1
0
파일: topic.php 프로젝트: rich20/Kunena
	public function getPoll() {
		static $poll = null;
		if (!$poll) {
			$poll = KunenaForumTopicPollHelper::get($this->poll_id);
			$poll->threadid = $this->id;
		}
		return $poll;
	}
예제 #2
0
 /**
  * @return KunenaForumTopicPoll
  */
 public function getPoll()
 {
     $poll = KunenaForumTopicPollHelper::get($this->poll_id);
     $poll->threadid = $this->id;
     return $poll;
 }
예제 #3
0
파일: poll.php 프로젝트: BillVGN/PortalPRP
	/**
	 * 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);
	}