Documentation

DomIterator
in package
implements RecursiveIterator

Dom iterator class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2021 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
3.3.0

Interfaces, Classes and Traits

RecursiveIterator

Table of Contents

$nodeList  : DOMNodeList
Node List
$position  : int
Current position
__construct()  : mixed
Constructor
current()  : DOMNode
Get current method
getChildren()  : DomIterator
Get children method
hasChildren()  : bool
Has children method
key()  : int
Key method
next()  : mixed
Next method
rewind()  : mixed
Rewind method
valid()  : bool
Is valid method

Properties

Methods

__construct()

Constructor

public __construct(DOMNode $domNode) : mixed

Instantiate the DOM iterator object

Parameters
$domNode : DOMNode
Return values
mixed

current()

Get current method

public current() : DOMNode
Return values
DOMNode

hasChildren()

Has children method

public hasChildren() : bool
Return values
bool

key()

Key method

public key() : int
Return values
int

next()

Next method

public next() : mixed
Return values
mixed

rewind()

Rewind method

public rewind() : mixed
Return values
mixed

valid()

Is valid method

public valid() : bool
Return values
bool

Search results