コード例 #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;
 }