Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

PHP DOM Builder API 2.0

Baigudin Software participates in OS DAY 2017 conference

The Baigudin Software Company has participated in OS DAY – a fourth scientific-practical conference, which aims to determine a mission of Russia in developing sphere of operating systems.

Interface «DomBuilder\Api\Traverse»

Elements tree traversal access declaration.

  • interface Api\Traverse

All superinterfaces:

Object

public Element|null child(int $number=0);

Returns child elements.

The method returns a collection of child elements that depends on given sequence number and contains a child element of each element if that element is existed or returns NULL value if no child elements is found.

Parameters:
int $number — a sequence number of child elements.

Returns:
Element|null — child elements.

public Element children();

Returns children of each element.

Returns:
Element — child elements of each element.

public Element|null last();

Returns last child elements.

The method returns a collection of last child elements that contains a last child element of each element if that element is existed or returns NULL value if no last child elements is found.

Returns:
Element|null — last child elements.

public Element|null next();

Returns next elements.

The method returns a collection of next elements that contains a next element of each element if that element is existed or returns NULL value if no next elements is found.

Returns:
Element|null — next elements.

public Element|null parent();

Returns parent elements.

The method returns a collection of parent elements that contains a parent element of each element if that element is existed or returns NULL value if no parent elements is found.

Returns:
Element|null — parent elements.

public Element|null prev();

Returns previous elements.

The method returns a collection of previous elements that contains a previous element of each element if that element is existed or returns NULL value if no previous elements is found.

Returns:
Element|null — previous elements.

public Element root();

Returns root elements of each element.

Returns:
Element — root elements.

Back to class list