Dom/Query/Result.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Dom  

\Zend_Dom_Query_Result

Package: Zend_Dom\Query
Results for DOM XPath query
Implements
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Uses
 
Version
$Id$  

Properties

>VPropertyprotectedint $_count
Number of results
Details
Type
int
>VPropertyprotectedstring $_cssQuery
CSS Selector query
Details
Type
string
>VPropertyprotected\DOMDocument $_document
Details
Type
\DOMDocument
>VPropertyprotected\DOMNodeList $_nodeList
Details
Type
\DOMNodeList
>VPropertyprotectedint $_position = 0
Current iterator position
Default value0Details
Type
int
>VPropertyprotected\DOMXPath $_xpath
Details
Type
\DOMXPath
>VPropertyprotectedstring $_xpathQuery
XPath query
Details
Type
string

Methods

methodpublic__construct(string $cssQuery, string | array $xpathQuery, \DOMDocument $document, \DOMNodeList $nodeList) : void

Constructor

Parameters
NameTypeDescription
$cssQuerystring
$xpathQuerystring | array
$document\DOMDocument
$nodeList\DOMNodeList
methodpubliccount() : int

Countable: get count

Returns
TypeDescription
int
methodpubliccurrent() : \DOMElement

Iterator: return current element

Returns
TypeDescription
\DOMElement
methodpublicgetCssQuery() : string

Retrieve CSS Query

Returns
TypeDescription
string
methodpublicgetDocument() : \DOMDocument

Retrieve DOMDocument

Returns
TypeDescription
\DOMDocument
methodpublicgetXpathQuery() : string

Retrieve XPath query

Returns
TypeDescription
string
methodpublickey() : int

Iterator: return key of current element

Returns
TypeDescription
int
methodpublicnext() : void

Iterator: move to next element

methodpublicrewind() : void

Iterator: rewind to first element

methodpublicvalid() : bool

Iterator: is current position valid?

Returns
TypeDescription
bool
Documentation was generated by phpDocumentor 2.2.0 .