public function get_hottext()
 {
     $result = array();
     $xpath = new DOMXPath($this->node->ownerDocument);
     $xpath->registerNamespace("qti", "http://www.imsglobal.org/xsd/imsqti_v2p0");
     $search = $xpath->query("//qti:hottext");
     foreach ($search as $elem) {
         $obj = new Hottext($elem, $this);
         $obj->validate(null, $this->TestSection_id);
         array_push($result, $obj);
     }
     return $result;
 }
Ejemplo n.º 2
0
 public function __construct($node, $parent)
 {
     parent::__construct($node, $parent);
     self::$possible_attributes = array_merge(parent::$possible_attributes, self::$possible_attributes);
     self::$required_attributes = array_merge(parent::$required_attributes, self::$required_attributes);
     self::$possible_children = array_merge(parent::$possible_children, self::$possible_children);
     self::$required_children = array_merge(parent::$required_children, self::$required_children);
 }