Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

PHP DOM Builder API 2.0

EOOS Automotive R22-08 is released in version v0.10.0

The second official release of EOOS Automotive that is qualified for POSIX and WIN32 compatible operating systems and based on interfaces designed for EOOS RT – real time operating system.

Interface «DomBuilder\Api\Builder»

Elements tree builder access declaration.

  • interface Api\Builder

All superinterfaces:

Object

public Element|false after(string|Element $node);

Inserts an element after each element.

Parameters:
string|Element $node — a string that contains a tag name of new element or an element.

Returns:
Element|false — new inserted element.

public Element|false before(string|Element $node);

Inserts an element before each element.

Parameters:
string|Element $node — a string that contains a tag name of new element or an element.

Returns:
Element|false — new inserted element.

public Element|false insert(string|Element $node);

Inserts an element as the last child of each element.

Parameters:
string|Element $node — a string that contains a tag name of new element or an element.

Returns:
Element|false — new inserted element.

public Element|false prepend(string|Element $node);

Inserts an element as the first child of each element.

Parameters:
string|Element $node — a string that contains a tag name of new element or an element.

Returns:
Element|false — new inserted element.

public Element remove();

Removes each element.

Returns:
Element — removed elements.

Back to class list