示例#1
0
文件: Element.php 项目: techart/tao
 public function __construct(XMLReader $reader)
 {
     if ($reader->nodeType != XMLReader::ELEMENT) {
         throw new Core_InvalidArgumentValueException('reader', $reader->nodeType);
     }
     parent::__construct($reader);
     $this->attributes = new ArrayObject(parent::attributes()->to_array());
 }
示例#2
0
文件: Attribute.php 项目: techart/tao
 public function __construct(XMLReader $reader)
 {
     parent::__construct($reader);
     $this->name = $this->reader->name;
     $this->value = $this->reader->value;
 }