protected function normalizeArgument(core\argument $arg, $bEmpty = false) { if ($bEmpty) { $result = $arg->asArray($bEmpty); } else { $result = $arg->asDOM(); } return $result; }
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; }
protected function setArgument(core\argument $arg) { $doc = $arg->asDOM(); return $this->setObject($doc); }