Пример #1
0
 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
 public function __construct(XMLReader $reader)
 {
     parent::__construct($reader);
     $this->name = $this->reader->name;
     $this->value = $this->reader->value;
 }