You are here

public function AbstractFeed::setXpath in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/Reader/Extension/AbstractFeed.php \Zend\Feed\Reader\Extension\AbstractFeed::setXpath()

Set the XPath query

Parameters

DOMXPath $xpath:

Return value

AbstractEntry

1 call to AbstractFeed::setXpath()
AbstractFeed::getXpath in vendor/zendframework/zend-feed/src/Reader/Extension/AbstractFeed.php
Get the DOMXPath object

File

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

Class

AbstractFeed

Namespace

Zend\Feed\Reader\Extension

Code

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