PrototypeTraversalTrait
Tags
Table of Contents
- ancestors() : NodeList
- childElements() : NodeList
- descendantOf() : bool
- descendants() : NodeList
- down() : PrototypeTraversal|null
- firstDescendant() : PrototypeTraversal|null
- next() : PrototypeTraversal|null
- nextSiblings() : NodeList
- previous() : PrototypeTraversal|null
- previousSiblings() : NodeList
- recursivelyFind() : PrototypeTraversal|null
- select() : NodeList
- siblings() : NodeList
- up() : PrototypeTraversal|null
Methods
ancestors()
public
ancestors() : NodeList
Tags
Return values
NodeList —childElements()
public
childElements([int $nodeType = null ]) : NodeList
Parameters
- $nodeType : int = null
Tags
Return values
NodeList —descendantOf()
public
descendantOf(DOMNode $ancestor) : bool
Parameters
- $ancestor : DOMNode
Tags
Return values
bool —descendants()
public
descendants() : NodeList
Tags
Return values
NodeList —down()
public
down([mixed $expression = null ][, int $index = null ]) : PrototypeTraversal|null
Parameters
- $expression : mixed = null
- $index : int = null
Tags
Return values
PrototypeTraversal|null —firstDescendant()
public
firstDescendant() : PrototypeTraversal|null
Tags
Return values
PrototypeTraversal|null —next()
public
next([mixed $expression = null ][, int $index = null ]) : PrototypeTraversal|null
Parameters
- $expression : mixed = null
- $index : int = null
Tags
Return values
PrototypeTraversal|null —nextSiblings()
public
nextSiblings() : NodeList
Tags
Return values
NodeList —previous()
public
previous([mixed $expression = null ][, int $index = null ]) : PrototypeTraversal|null
Parameters
- $expression : mixed = null
- $index : int = null
Tags
Return values
PrototypeTraversal|null —previousSiblings()
public
previousSiblings() : NodeList
Tags
Return values
NodeList —recursivelyFind()
public
recursivelyFind([string $selector = null ][, int $index = null ][, string $property = null ][, int $nodeType = XML_ELEMENT_NODE ]) : PrototypeTraversal|null
Parameters
- $selector : string = null
- $index : int = null
- $property : string = null
- $nodeType : int = XML_ELEMENT_NODE
Tags
Return values
PrototypeTraversal|null —select()
public
select([array<string|int, mixed> $selectors = null ]) : NodeList
Parameters
- $selectors : array<string|int, mixed> = null
Tags
Return values
NodeList —siblings()
public
siblings() : NodeList
Tags
Return values
NodeList —up()
public
up([mixed $expression = null ][, int $index = null ]) : PrototypeTraversal|null
Parameters
- $expression : mixed = null
- $index : int = null