/** * Constructs a Fill-blanks question object * * @param CqUserAnswerInterface $userAnswer * The CqUserAnswerInterface to use for storing the student's answer. * @param object $node * Drupal node object that this question belongs to. */ public function __construct(CqUserAnswerInterface &$userAnswer, &$node) { parent::__construct(); $this->userAnswer =& $userAnswer; $this->node =& $node; $this->formElementName = 'xq_fillblanks_question' . $this->node->nid . '_'; parent::registerTag('inlinechoice'); }