PHP Class FluentDOM\Iterators\IndexIterator

Inheritance: implements SeekableIterator
Afficher le fichier Open project: fluentdom/fluentdom

Protected Properties

Свойство Type Description
$_position integer internal position pointer variable

Méthodes publiques

Méthode Description
__construct ( Countable $owner )
key ( ) : integer Get current iterator pointer
next ( ) : void Move iterator pointer to next element
rewind ( ) Reset iterator pointer
seek ( integer $position ) Move iterator pointer to specified element

Méthodes protégées

Méthode Description
getOwner ( ) : Countable Return the owner object

Method Details

__construct() public méthode

public __construct ( Countable $owner )
$owner Countable

getOwner() protected méthode

Return the owner object
protected getOwner ( ) : Countable
Résultat Countable

key() public méthode

Get current iterator pointer
public key ( ) : integer
Résultat integer

next() public méthode

Move iterator pointer to next element
public next ( ) : void
Résultat void

rewind() public méthode

Reset iterator pointer
public rewind ( )

seek() public méthode

Move iterator pointer to specified element
public seek ( integer $position )
$position integer

Property Details

$_position protected_oe property

internal position pointer variable
protected int $_position
Résultat integer