public function __construct($responseIdentifier, SimpleMatchSetCollection $simpleMatchSets, $id = '', $class = '', $lang = '', $label = '') { parent::__construct($responseIdentifier, $id, $class, $lang, $label); $this->setSimpleMatchSets($simpleMatchSets); $this->setShuffle(false); $this->setMaxAssociations(1); $this->setMinAssociations(0); }
/** * Create a new ExtendedTextInteraction object. * * @param string $responseIdentifier The identifier of the associated response variable. * @param string $id The id of the bodyElement. * @param string $class The class of the bodyElement. * @param string $lang The lang of the bodyElement. * @param string $label The label of the bodyElement. * @throws InvalidArgumentException If any of the arguments is invalid. */ public function __construct($responseIdentifier, $id = '', $class = '', $lang = '', $label = '') { parent::__construct($responseIdentifier, $id, $class, $lang, $label); }
/** * Create a new ChoiceInteraction object. * * @param string $responseIdentifier The identifier of the associated response variable. * @param SimpleChoiceCollection $simpleChoices An ordered list of choices (minimum one choice) that are displayed to the user. * @param string $id The id of the bodyElement. * @param string $class The class of the bodyElement. * @param string $lang The language of the bodyElement. * @param string $label The label of the bodyElement (string256). * @throws InvalidArgumentException If any of the arguments is invalid. */ public function __construct($responseIdentifier, SimpleChoiceCollection $simpleChoices, $id = '', $class = '', $lang = '', $label = '') { parent::__construct($responseIdentifier, $id, $class, $lang, $label); $this->setSimpleChoices($simpleChoices); $this->setMaxChoices(1); $this->setMinChoices(0); $this->setOrientation(Orientation::VERTICAL); }
/** * Create a new DrawingInteraction object. * * @param string $responseIdentifier The identifier of the associated response variable. * @param Object $object The image that acts as a canvas for drawing. * @param string $id The id of the bodyElement. * @param string $class The class of the bodyElement. * @param string $lang The language of the bodyElement. * @param string $label The label of the bodyElement. * @throws InvalidArgumentException If any argument is invalid. */ public function __construct($responseIdentifier, Object $object, $id = '', $class = '', $lang = '', $label = '') { parent::__construct($responseIdentifier, $id, $class, $lang, $label); $this->setObject($object); }
/** * Create a new GapMatchInteraction object. * * @param string $responseIdentifier The identifier of the associated response variable. * @param GapChoiceCollection $gapChoices The GapChoices object composing the GapMatchInteraction. * @param BlockStaticCollection $content The BlockStatic objects composing the GapMatchInteraction. * @param unknown_type $id The body of the bodyElement. * @param unknown_type $class The class of the bodyElement. * @param unknown_type $lang The language of the bodyElement. * @param unknown_type $label The label of the bodyElement. * @throws InvalidArgumentException If any of the arguments is invalid. */ public function __construct($responseIdentifier, GapChoiceCollection $gapChoices, BlockStaticCollection $content, $id = '', $class = '', $lang = '', $label = '') { parent::__construct($responseIdentifier, $id, $class, $lang, $label); $this->setGapChoices($gapChoices); $this->setContent($content); $this->setShuffle(false); }
/** * Create a new HottextInteraction object. * * @param string $responseIdentifier The identifier of the associated response variable. * @param BlockStaticCollection $content A collection of BlockStatic objects as the content of the interaction. * @param string $id The id of the bodyElement. * @param string $class The class of the bodyElement. * @param string $lang The language of the bodyElement. * @param string $label The label of the bodyElement. */ public function __construct($responseIdentifier, BlockStaticCollection $content, $id = '', $class = '', $lang = '', $label = '') { parent::__construct($responseIdentifier, $id, $class, $lang, $label); $this->setContent($content); $this->setMaxChoices(1); $this->setMinChoices(0); }
/** * Create a new SliderInteraction object. * * @param string $responseIdentifier The identifier of the associated response variable. * @param float $lowerBound A lower bound. * @param float $upperBound An upper bound. * @param string $id The id of the bodyElement. * @param string $class The class of the bodyElement. * @param string $lang The language of the bodyElement. * @param string $label The label of the bodyElement. * @throws \InvalidArgumentException */ public function __construct($responseIdentifier, $lowerBound, $upperBound, $id = '', $class = '', $lang = '', $label = '') { parent::__construct($responseIdentifier, $id, $class, $lang, $label); $this->setLowerBound($lowerBound); $this->setUpperBound($upperBound); }