public function parseRoot(dom\element $el) { $file = $this->getSourceFile($el->read()); $this->setFile($file); $importer = $this->getParser()->getImporter(); $call = $importer->call('import', array((string) $this->getFile()), '\\sylma\\core\\argument'); $this->setCall($call); }
protected function reflectBase(dom\element $el) { array_pop($this->aBases); $this->aBases[] = $el->read(); }
protected function parseID(dom\element $el) { if ($el->isComplex()) { if ($el->countChildren() > 1) { $this->throwException(sprintf('Only one child expected in %s', $el->asToken())); } $mResult = $this->parseElement($el->getFirst()); } else { $mResult = $el->read(); } $this->setID($mResult); }
public function parseRoot(dom\element $el) { $sFile = $el->read(); $this->setNode($el); return $this->getSourceFile($sFile); }
protected function readElement(dom\element $el) { if ($el->isComplex()) { $this->launchException('Cannot read complex element'); } return $el->read(); }
public function parseRoot(dom\element $el) { $file = $this->getSourceFile($el->read()); return $this->parseFile($file); }
protected function reflectImportStatic(dom\element $parent, dom\element $import) { $doc = $this->getSourceFile($import->read())->getDocument(); $this->mergeElement($parent, $doc->getRoot(), false); $import->replace($doc->getChildren()); $sNamespace = static::loadDefaultNamespace($doc->getRoot()); if (!$this->useNamespace($sNamespace)) { $this->setUsedNamespace($sNamespace); } }
protected function loadValue(dom\element $el) { $this->sValue = $this->parseContent($el->read()); }