Source of file AbstractEntry.php
Size: 0,898 Bytes - Last Modified: 2014-09-10T12:24:22+02:00
/home/theseer/storage/php/phpdox/src/generator/project/entries/AbstractEntry.php
12345678910111213141516171819202122232425262728293031323334353637 | <?php namespace TheSeer\phpDox\Generator { use TheSeer\fDOM\fDOMElement; use TheSeer\fDOM\fDOMDocument; abstract class AbstractEntry { /** * @var fDOMElement */ private $node; private $dom = array(); public function __construct(fDOMElement $node) { $this->node = $node; } protected function getNode() { return $this->node; } protected function loadDocument($dir) { $path = $dir . '/' . $this->getNode()->getAttribute('xml'); if (!isset($this->dom[$path])) { $classDom = new fDOMDocument(); $classDom->load($path); $classDom->registerNamespace('phpdox', 'http://xml.phpdox.net/src'); $this->dom[$path] = $classDom; } return $this->dom[$path]; } } } |