示例#1
0
 /**
  * It creates instance of this class.
  */
 function __construct($FAPath)
 {
     parent::__construct();
     $this->FAPath = $FAPath;
     $this->literal = $this->literals[0];
     $this->booleans = array_merge($this->positiveBooleans, $this->negativeBooleans);
     $this->forceDepthBoolean = $this->booleans[0];
     $this->negativeBoolean = $this->negativeBooleans[0];
     $this->brackets = array_merge($this->openingBrackets, $this->closingBrackets);
     $this->connectives = array_merge($this->brackets, $this->booleans);
     // load Data Description XML
     $this->dd = new DomDocument();
     if (file_exists(DDPath)) {
         $this->dd->load(DDPath);
     } else {
         $this->dd->loadXML(DDPath);
     }
     // init XPath
     $this->ddXpath = new DOMXPath($this->dd);
     $this->ddXpath->registerNamespace('dd', "http://keg.vse.cz/ns/datadescription0_2");
     $this->FA = new DOMDocument('1.0', 'UTF-8');
     if ($this->FAPath !== null) {
         if (file_exists($this->FAPath)) {
             $this->FA->load($this->FAPath, LIBXML_NOBLANKS);
         } else {
             $this->FA->loadXML($this->FAPath, LIBXML_NOBLANKS);
         }
         $this->FAXPath = new DOMXPath($this->FA);
     }
 }
 /**
  * It creates instance of this class.
  */
 function __construct()
 {
     parent::__construct();
     // load Data Description XML
     $domDdPath = $_SESSION["ARBuilder_domDataDescr"];
     $this->dd = new DomDocument();
     if (file_exists($domDdPath)) {
         $this->dd->load($domDdPath);
     } else {
         $this->dd->loadXML($domDdPath);
     }
     // init XPath
     $this->ddXpath = new DOMXPath($this->dd);
     $this->ddXpath->registerNamespace('dd', "http://keg.vse.cz/ns/datadescription0_2");
 }
 /**
  * It creates instance of this class.
  */
 function __construct()
 {
     parent::__construct();
 }
 /**
  * It creates instance of this class.
  */
 function __construct($DD)
 {
     $this->DD = $DD;
     parent::__construct();
 }