Exemple #1
0
 public function __construct()
 {
     parent::__construct();
     foreach ($this->ccnamespaces as $key => $value) {
         $this->registerNS($key, $value);
     }
 }
 public function __construct($ccver = cc_version::v1, $activemanifest = null, $parentmanifest = null, $parentparentmanifest = null)
 {
     if (is_int($ccver)) {
         $this->ccversion = $ccver;
         $classname = "cc_version{$ccver}";
         $this->ccobj = new $classname();
         parent::__construct('UTF-8', true);
     } else {
         if (is_object($ccver) && get_class($ccver) == 'cc_manifest') {
             $this->doc = $ccver->doc;
             $this->rootmanifest = $ccver->rootmanifest;
             $this->activemanifest = $activemanifest;
             $this->parentmanifest = $parentmanifest;
             $this->parentparentmanifest = $parentparentmanifest;
             $this->ccversion = $ccver->ccversion;
             $this->ccobj = $ccver;
             $this->register_namespaces_for_xpath();
         }
     }
 }