Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

PHP DOM Builder API 2.0

Baigudin Software registers the copyright of its own operating system – Embedded Object Operating System

The Russian Federal Service for Intellectual Property (Rospatent) registers the copyright of Embedded Object Operating System – Baigudin Software’s own embedded object-oriented 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