Пример #1
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);
 }
Пример #2
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);
 }