コード例 #1
0
 /**
  * Create a new GapImg object.
  * 
  * @param string $identifier The identifier of the response associated to the GapImg object.
  * @param integer $matchMax The maximum number of choice association.
  * @param 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($identifier, $matchMax, Object $object, $id = '', $class = '', $lang = '', $label = '')
 {
     parent::__construct($identifier, $matchMax, $id, $class, $lang, $label);
     $this->setObject($object);
     $this->setObjectLabel('');
 }
コード例 #2
0
ファイル: GapText.php プロジェクト: nagyist/qti-sdk
 /**
  * Create a new GapText object.
  *
  * @param string $identifier The identifier of the GapText.
  * @param integer $matchMax The matchMax attribute.
  * @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($identifier, $matchMax, $id = '', $class = '', $lang = '', $label = '')
 {
     parent::__construct($identifier, $matchMax, $id, $class, $lang, $label);
     $this->setContent(new TextOrVariableCollection());
 }