Esempio n. 1
0
 protected function _getModel()
 {
     /** setModel, **/
     if (null === $this->_model) {
         require_once 'NavigationElement.php';
         $xmldata = file_get_contents(BASE_PATH . '/cfg/' . $this->config['xml']['navigation-pub']);
         $this->_model = Model_NavigationElement::_new($xmldata, $URI);
         #echo self::$URI;
         $this->_model->init(self::$URI);
     }
     return $this->_model;
 }
Esempio n. 2
0
 public function init($url)
 {
     #show($url);
     self::$Current = $this->setCurrent($url)->singleElement();
     #	show(self::$Current);
     $this->getParents();
     $this->getUncles();
     $this->getBrothers();
     $this->getChildren();
     $this->getLanguage();
     $xpath = $this->xpath_filter('//' . self::Container);
     #show(self::$_single);
 }
Esempio n. 3
0
 public function init($url)
 {
     #show($url);
     self::$Current = $this->setCurrent($url);
     #	show(self::$Current);
     $this->getParents();
     $this->getUncles();
     $this->getBrothers();
     $this->getChildren();
     $this->getLanguage();
     $xpath = $this->xpath_filter('//' . self::Container);
     foreach ($xpath as $element) {
         #echo $element->getAttribute('name');
         $element->singleElement();
         #show($element);
     }
     #show(self::$_single);
 }
Esempio n. 4
0
 private function _getNavigationModel()
 {
     if (null === $this->_Navigation) {
         require_once 'NavigationElement.php';
         $xmldata = file_get_contents(BASE_PATH . $this->settings['xml-navigation-pub']);
         $this->_Navigation = Model_NavigationElement::_new($xmldata, self::$URI);
         $this->_Navigation->init(self::$URI);
         #show($this->_Navigation);
     }
     return $this->_Navigation;
 }