You are here

public function AbstractEntry::getXpath in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/AbstractEntry.php \Zend\Feed\Reader\AbstractEntry::getXpath()
  2. 8.0 vendor/zendframework/zend-feed/src/Reader/Extension/AbstractEntry.php \Zend\Feed\Reader\Extension\AbstractEntry::getXpath()
  3. 8.0 vendor/zendframework/zend-feed/src/Reader/Entry/AbstractEntry.php \Zend\Feed\Reader\Entry\AbstractEntry::getXpath()
Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/Reader/Entry/AbstractEntry.php \Zend\Feed\Reader\Entry\AbstractEntry::getXpath()

Get the XPath query object

Return value

DOMXPath

File

vendor/zendframework/zend-feed/src/Reader/Entry/AbstractEntry.php, line 147

Class

AbstractEntry

Namespace

Zend\Feed\Reader\Entry

Code

public function getXpath() {
  if (!$this->xpath) {
    $this
      ->setXpath(new DOMXPath($this
      ->getDomDocument()));
  }
  return $this->xpath;
}