Пример #1
0
 public function set($att, $value)
 {
     if (is_object($_t = $this->nodeType) && !$_t instanceof Enum ? $_t !== Xml::$Element : $_t != Xml::$Element) {
         throw new HException("bad nodeType");
     }
     $this->_attributes->set($att, Xml::__decodeattr($value));
 }
Пример #2
0
 public function set($att, $value)
 {
     if ($this->nodeType != Xml::$Element) {
         throw new HException("bad nodeType");
     }
     $this->_attributes->set($att, Xml::__decodeattr($value));
 }