From 9a9c04512e5dcb77c7fe5d850e3f2a0250cc160e Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 18 Jan 2017 20:07:16 +0100 Subject: * Motor Sport Magazine feed provider --- lib/querypath/src/QueryPath/QueryPathIterator.php | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 lib/querypath/src/QueryPath/QueryPathIterator.php (limited to 'lib/querypath/src/QueryPath/QueryPathIterator.php') diff --git a/lib/querypath/src/QueryPath/QueryPathIterator.php b/lib/querypath/src/QueryPath/QueryPathIterator.php new file mode 100644 index 0000000..be2e66f --- /dev/null +++ b/lib/querypath/src/QueryPath/QueryPathIterator.php @@ -0,0 +1,33 @@ +qp)) { + $this->qp = \QueryPath::with(parent::current(), NULL, $this->options); + } + else { + $splos = new \SplObjectStorage(); + $splos->attach(parent::current()); + $this->qp->setMatches($splos); + } + return $this->qp; + } +} -- cgit v1.2.3