/** * Create a new PositionObjectInteraction object. * * @param string $responseIdentifier The identifier of the associated response. * @param \qtism\data\content\xhtml\Object $object An image as an Object object. * @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 one of the 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 CustomInteraction object. * * @param string $responseIdentifier The identifier of the Response Variable bound to the interaction. * @param string $xmlString The xml data representing the whole customInteraction component and its content. * @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, $xmlString, $id = '', $class = '', $lang = '', $label = '') { parent::__construct($responseIdentifier, $id, $class, $lang, $label); $this->setXmlString($xmlString); $this->setExternalComponent(new ExternalQtiComponent($xmlString)); }
/** * Create a new BlockInteraction object. * * @param string $responseIdentifier The identifier of the associated response. * @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 one of the argument is invalid. */ public function __construct($responseIdentifier, $id = '', $class = '', $lang = '', $label = '') { parent::__construct($responseIdentifier, $id, $class, $lang, $label); }