Dodo
DOm DOcument implementation
Loading...
Searching...
No Matches
Wikimedia\Dodo\Internal\FilteredElementList Class Reference
+ Inheritance diagram for Wikimedia\Dodo\Internal\FilteredElementList:

Public Member Functions

 __construct ( $root, callable $filter)
 FilteredElementList constructor.
 
 _traverse (int $n=null)
 If n is specified, then traverse the tree until we've found the nth item (or until we've found all items).
 
int getLength ()
 
Element null item (int $n)
 
Element namedItem (string $name)
 
- Public Member Functions inherited from Wikimedia\Dodo\HTMLCollection
 __construct ()
 Create a new empty HTMLCollection.
 
- Public Member Functions inherited from Wikimedia::IDLeDOM::HTMLCollection
Iterator< ElementgetIterator ()
 

Public Attributes

array< Element$cache
 

Additional Inherited Members

- Protected Member Functions inherited from Wikimedia\Dodo\Internal\UnimplementedTrait
 _unimplemented ()
 

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Dodo\Internal\FilteredElementList::__construct ( $root,
callable $filter )

FilteredElementList constructor.

Parameters
Element$root
callable(Element):bool$filter

Member Function Documentation

◆ _traverse()

Wikimedia\Dodo\Internal\FilteredElementList::_traverse ( int $n = null)

If n is specified, then traverse the tree until we've found the nth item (or until we've found all items).

If n is not specified, traverse until we've found all items.

Parameters
int | null$n

◆ getLength()

int Wikimedia\Dodo\Internal\FilteredElementList::getLength ( )
Returns
int

Reimplemented from Wikimedia\Dodo\HTMLCollection.

◆ item()

Element null Wikimedia\Dodo\Internal\FilteredElementList::item ( int $n)
Parameters
int$n
Returns
Element|null

Reimplemented from Wikimedia\Dodo\HTMLCollection.

◆ namedItem()

Element Wikimedia\Dodo\Internal\FilteredElementList::namedItem ( string $name)

Reimplemented from Wikimedia\Dodo\HTMLCollection.


The documentation for this class was generated from the following file: