Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

PHP DOM Builder API

We have participated 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\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