Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

PHP DOM Builder API

Baigudin Software has successfully started in Kaspersky Start program

Baigudin Software has been successfully started in Kaspersky Start program by Kaspersky Lab and performs the BOOS Core operating kernel to it.

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