[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/_test/vendor/scotteh/php-dom-wrapper/src/Traits/ -> TraversalTrait.php (summary)

Traversal Trait

License: http://opensource.org/licenses/BSD-3-Clause BSD 3 Clause
File Size: 463 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 27 functions

  newNodeList()
  find()
  findXPath()
  getNodesMatchingInput()
  is()
  not()
  filter()
  has()
  preceding()
  precedingAll()
  precedingUntil()
  following()
  followingAll()
  followingUntil()
  siblings()
  children()
  parent()
  eq()
  parents()
  parentsUntil()
  intersect()
  closest()
  contents()
  add()
  _buildNodeListUntil()
  _uniqueNodes()
  _walkPathUntil()

Functions
Functions that are not part of a class:

newNodeList(iterable $nodes = null)   X-Ref

return: NodeList
param: iterable $nodes

find(string $selector, string $prefix = 'descendant::')   X-Ref

return: NodeList
param: string $selector
param: string $prefix

findXPath(string $xpath)   X-Ref

return: NodeList
param: string $xpath

getNodesMatchingInput($input, bool $matchType = true)   X-Ref

return: NodeList
param: string|NodeList|\DOMNode|callable $input
param: bool $matchType

is($input)   X-Ref

return: bool
param: string|NodeList|\DOMNode|callable $input

not($input)   X-Ref

return: NodeList
param: string|NodeList|\DOMNode|callable $input

filter($input)   X-Ref

return: NodeList
param: string|NodeList|\DOMNode|callable $input

has($input)   X-Ref

return: NodeList
param: string|NodeList|\DOMNode|callable $input

preceding($selector = null)   X-Ref

return: \DOMNode|null
param: string|NodeList|\DOMNode|callable $selector

precedingAll($selector = null)   X-Ref

return: NodeList
param: string|NodeList|\DOMNode|callable $selector

precedingUntil($input = null, $selector = null)   X-Ref

return: NodeList
param: string|NodeList|\DOMNode|callable $input
param: string|NodeList|\DOMNode|callable $selector

following($selector = null)   X-Ref

return: \DOMNode|null
param: string|NodeList|\DOMNode|callable $selector

followingAll($selector = null)   X-Ref

return: NodeList
param: string|NodeList|\DOMNode|callable $selector

followingUntil($input = null, $selector = null)   X-Ref

return: NodeList
param: string|NodeList|\DOMNode|callable $input
param: string|NodeList|\DOMNode|callable $selector

siblings($selector = null)   X-Ref

return: NodeList
param: string|NodeList|\DOMNode|callable $selector

children()   X-Ref
NodeList is only array like. Removing items using foreach() has undesired results.

return: NodeList

parent($selector = null)   X-Ref

return: Element|NodeList|null
param: string|NodeList|\DOMNode|callable $selector

eq(int $index)   X-Ref

return: \DOMNode|null
param: int $index

parents(string $selector = null)   X-Ref

return: NodeList
param: string $selector

parentsUntil($input = null, $selector = null)   X-Ref

return: NodeList
param: string|NodeList|\DOMNode|callable $input
param: string|NodeList|\DOMNode|callable $selector

intersect()   X-Ref

return: \DOMNode

closest($input)   X-Ref

return: Element|NodeList|null
param: string|NodeList|\DOMNode|callable $input

contents()   X-Ref
NodeList is only array like. Removing items using foreach() has undesired results.

return: NodeList

add($input)   X-Ref

return: NodeList
param: string|NodeList|\DOMNode $input

_buildNodeListUntil(\DOMNode $baseNode, string $property, $input = null, $selector = null, int $matchType = null)   X-Ref

return: NodeList
param: \DOMNode $baseNode
param: string $property
param: string|NodeList|\DOMNode|callable $input
param: string|NodeList|\DOMNode|callable $selector
param: int $matchType

_uniqueNodes(iterable $nodeLists)   X-Ref

return: NodeList
param: iterable $nodeLists

_walkPathUntil(string $property, $input = null, $selector = null, int $matchType = null)   X-Ref

return: NodeList
param: string $property
param: string|NodeList|\DOMNode|callable $input
param: string|NodeList|\DOMNode|callable $selector
param: int $matchType