コード例 #1
0
	/**
	 * Constructor
	 * @public
	 * @param  $poll  object
	 *   an instance of question's parent controller
	 * @param  $view  object
	 *   an instance of question view "linked" to this question
	 * @param  $questionId  integer
	 *   identifier of the question used to generate input names
	 * @param  $name  mixed
	 *   null  when question has no name / invalid name
	 *   string  valid question name
	 */
	function __construct( qp_AbstractPoll $poll, qp_StubQuestionView $view, $questionId, $name ) {
		parent::__construct( $poll, $view, $questionId );
		$this->mName = $name;
	}
コード例 #2
0
	/**
	 * Constructor
	 * @public
	 * @param  $poll         an instance of question's parent controller
	 * @param  $view         an instance of question view "linked" to this question
	 * @param  $type         type of question (taken from DB)
	 * @param  $questionId   the identifier of the question used to generate input names
	 */
	function __construct( qp_PollStats $poll, qp_QuestionStatsView $view, $type, $questionId ) {
		parent::__construct( $poll, $view, $questionId );
		$this->mType = $type;
	}