API Documentation

Zend/Dom/Query/Result.php

Show: inherited
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-2012 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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Uses
\Iterator  
Version
$Id: Result.php 24594 2012-01-05 21:27:01Z matthew $  

Properties

Propertyprotectedint  $_count= ''

Number of results

Details
Type
int
Propertyprotectedstring  $_cssQuery= ''

CSS Selector query

Details
Type
string
Propertyprotected\DOMDocument  $_document= ''

Details
Type
\DOMDocument
Propertyprotected\DOMNodeList  $_nodeList= ''

Details
Type
\DOMNodeList
Propertyprotectedint  $_position= '0'

Current iterator position

Default value0Details
Type
int
Propertyprotected\DOMXPath  $_xpath= ''

Details
Type
\DOMXPath
Propertyprotectedstring  $_xpathQuery= ''

XPath query

Details
Type
string

Methods

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

Constructor

Parameters
Name Type Description
$cssQuery string
$xpathQuery string|array
$document \DOMDocument
$nodeList \DOMNodeList
methodpubliccount( ) : int

Countable: get count

Returns
Type Description
int
methodpubliccurrent( ) : \DOMElement

Iterator: return current element

Returns
Type Description
\DOMElement
methodpublicgetCssQuery( ) : string

Retrieve CSS Query

Returns
Type Description
string
methodpublicgetDocument( ) : \DOMDocument

Retrieve DOMDocument

Returns
Type Description
\DOMDocument
methodpublicgetXpathQuery( ) : string

Retrieve XPath query

Returns
Type Description
string
methodpublickey( ) : int

Iterator: return key of current element

Returns
Type Description
int
methodpublicnext( ) : void

Iterator: move to next element

methodpublicrewind( ) : void

Iterator: rewind to first element

methodpublicvalid( ) : bool

Iterator: is current position valid?

Returns
Type Description
bool
Documentation was generated by DocBlox 0.15.1.