Esempio n. 1
1
 /**
  * @param string $expression
  * @param \DomNode $context
  * @param bool $registerNodeNs
  * @return \DOMNodeList
  */
 public function query($expression, DomNode $context = NULL, $registerNodeNs = TRUE)
 {
     if (is_null($context)) {
         $context = $this->getDefaultContext();
     }
     return parent::query($expression, $context, $registerNodeNs);
 }
Esempio n. 2
0
 /**
  * @return \Blar\Dom\DomXPath
  */
 public function createXPath()
 {
     $xpath = new DomXPath($this->ownerDocument);
     $xpath->setDefaultContext($this);
     return $xpath;
 }