You are here

public function AbstractFeed::getXpath in Zircon Profile 8

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

Get the DOMXPath object

Return value

string

File

vendor/zendframework/zend-feed/src/Reader/Extension/AbstractFeed.php, line 141

Class

AbstractFeed

Namespace

Zend\Feed\Reader\Extension

Code

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