コード例 #1
0
ファイル: FeedbackInline.php プロジェクト: nagyist/qti-sdk
 /**
  * Create a new FeedbackInline object.
  *
  * @param string $outcomeIdentifier The identifier of an outcome variable controlling the visibility of the feedbackElement.
  * @param string $identifier The identifier value that determines the visibility of the feedbackElement in conjunction with $showHide.
  * @param integer $showHide A values of the ShowHide enumeration that determines hot the visibility of the feedbackElement is controlled.
  * @param string $id The identifier of the bodyElement.
  * @param string $class The class(es) of the bodyElement. If multiple classes, separate them with whitespaces (' ').
  * @param string $lang The language of the bodyElement.
  * @param string $label The label of the bodyElement.
  * @throws \InvalidArgumentException If any arguments of the constructor is invalid.
  */
 public function __construct($outcomeIdentifier, $identifier, $showHide = ShowHide::SHOW, $id = '', $class = '', $lang = '', $label = '')
 {
     parent::__construct($id, $class, $lang, $label);
     $this->setOutcomeIdentifier($outcomeIdentifier);
     $this->setIdentifier($identifier);
     $this->setShowHide($showHide);
 }
コード例 #2
0
ファイル: Tt.php プロジェクト: nagyist/qti-sdk
 /**
  * Create a new Tt object.
  *
  * @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 one of the arguments is invalid.
  */
 public function __construct($id = '', $class = '', $lang = '', $label = '')
 {
     parent::__construct($id, $class, $lang, $label);
 }
コード例 #3
0
ファイル: Q.php プロジェクト: nagyist/qti-sdk
 /**
  * Create a new Q object.
  *
  * @param string $id A QTI identifier.
  * @param string $class One or more class names separated by spaces.
  * @param string $lang An RFC3066 language.
  * @param string $label A label that does not exceed 256 characters.
  * @throws \InvalidArgumentException If any of the arguments above is invalid.
  */
 public function __construct($id = '', $class = '', $lang = '', $label = '', $cite = '')
 {
     parent::__construct($id, $class, $lang, $label);
     $this->setCite($cite);
 }
コード例 #4
0
ファイル: A.php プロジェクト: swapnilaptara/tao-aptara-assess
 /**
  * Create a new A object.
  * 
  * @param string $href The href 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.
  */
 public function __construct($href, $id = '', $class = '', $lang = '', $label = '')
 {
     parent::__construct($id, $class, $lang, $label);
     $this->setHref($href);
     $this->setType('');
 }