/** * 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 */ function __construct( qp_AbstractPoll $poll, qp_AbstractView $view, $questionId ) { # the question collection is not sparce by default $this->mQuestionId = $this->usedId = $questionId; $view->setController( $this ); $this->view = $view; $this->poll = $poll; }
/** * @param $parser * @param $frame */ function __construct( Parser $parser, PPFrame $frame ) { parent::__construct( $parser, $frame ); }