Пример #1
0
 protected function normalizeArgument(core\argument $arg, $bEmpty = false)
 {
     if ($bEmpty) {
         $result = $arg->asArray($bEmpty);
     } else {
         $result = $arg->asDOM();
     }
     return $result;
 }
Пример #2
0
 public function argumentAsDOM(core\argument $arg)
 {
     $result = null;
     $node = $arg->asDOM();
     $doc = $this->createDocument();
     $doc->addElement('window', null, array(), $this->getNamespace('self'));
     $doc->add($node->getx('self:items', $this->getNS(), false));
     //dsp($doc);
     if (!$doc->isEmpty()) {
         $result = $this->getTemplate(static::PHP_TEMPLATE)->parseDocument($doc);
     }
     return $result;
 }
Пример #3
0
 protected function setArgument(core\argument $arg)
 {
     $doc = $arg->asDOM();
     return $this->setObject($doc);
 }