Documentation

DomIterator
in package
implements RecursiveIterator

Dom iterator class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

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

license

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

version
4.0.0

Table of Contents

Interfaces

RecursiveIterator

Properties

$nodeList  : DOMNodeList|null
Node List
$position  : int
Current position

Methods

__construct()  : mixed
Constructor
current()  : DOMNode
Get current method
getChildren()  : DomIterator
Get children method
hasChildren()  : bool
Has children method
key()  : int
Key method
next()  : void
Next method
rewind()  : void
Rewind method
valid()  : bool
Is valid method

Properties

$nodeList

Node List

protected DOMNodeList|null $nodeList = null

$position

Current position

protected int $position = 0

Methods

__construct()

Constructor

public __construct(DOMNode $domNode) : mixed

Instantiate the DOM iterator object

Parameters
$domNode : DOMNode

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

valid()

Is valid method

public valid() : bool
Return values
bool

        
On this page

Search results