Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Dom_Query_Result Class Reference

Public Member Functions

 __construct ($cssQuery, $xpathQuery, DOMDocument $document, DOMNodeList $nodeList)
 Constructor.
 
 getCssQuery ()
 Retrieve CSS Query.
 
 getXpathQuery ()
 Retrieve XPath query.
 
 getDocument ()
 Retrieve DOMDocument.
 
 rewind ()
 Iterator: rewind to first element.
 
 valid ()
 Iterator: is current position valid?
 
 current ()
 Iterator: return current element.
 
 key ()
 Iterator: return key of current element.
 
 next ()
 Iterator: move to next element.
 
 count ()
 Countable: get count.
 

Protected Attributes

 $_count
 
 $_cssQuery
 
 $_document
 
 $_nodeList
 
 $_position = 0
 
 $_xpath
 
 $_xpathQuery
 

Constructor & Destructor Documentation

__construct (   $cssQuery,
  $xpathQuery,
DOMDocument  $document,
DOMNodeList  $nodeList 
)

Constructor.

Parameters
string$cssQuery
string | array$xpathQuery
DOMDocument$document
DOMNodeList$nodeList
Returns
void

Member Function Documentation

count ( )

Countable: get count.

Returns
int
current ( )

Iterator: return current element.

Returns
DOMElement
getCssQuery ( )

Retrieve CSS Query.

Returns
string
getDocument ( )

Retrieve DOMDocument.

Returns
DOMDocument
getXpathQuery ( )

Retrieve XPath query.

Returns
string
key ( )

Iterator: return key of current element.

Returns
int
next ( )

Iterator: move to next element.

Returns
void
rewind ( )

Iterator: rewind to first element.

Returns
void
valid ( )

Iterator: is current position valid?

Returns
bool

Member Data Documentation

$_count
protected
$_cssQuery
protected
$_document
protected
$_nodeList
protected
$_position = 0
protected
$_xpath
protected
$_xpathQuery
protected