PHP DOM Builder API 2.0
- Core\Element\Double
- Core\Element\DoubleBlock
- Core\Element\DoubleInline
- Core\Element\Field
- Core\Element\Root
- Core\Element\Single
- Element\A
- Element\Abbr
- Element\Address
- Element\Area
- Element\Article
- Element\Aside
- Element\Audio
- Element\B
- Element\Base
- Element\Bdi
- Element\Bdo
- Element\Blockquote
- Element\Body
- Element\Br
- Element\Button
- Element\Canvas
- Element\Caption
- Element\Cite
- Element\Code
- Element\Col
- Element\Colgroup
- Element\Command
- Element\Datalist
- Element\Dd
- Element\Del
- Element\Details
- Element\Dfn
- Element\Div
- Element\Dl
- Element\Dt
- Element\Em
- Element\Embed
- Element\Fieldset
- Element\Figcaption
- Element\Figure
- Element\Footer
- Element\Form
- Element\H1
- Element\H2
- Element\H3
- Element\H4
- Element\H5
- Element\H6
- Element\Head
- Element\Header
- Element\Hgroup
- Element\Hr
- Element\Html
- Element\I
- Element\Iframe
- Element\Img
- Element\Input
- Element\Ins
- Element\Kbd
- Element\Keygen
- Element\Label
- Element\Legend
- Element\Li
- Element\Link
- Element\Map
- Element\Mark
- Element\Menu
- Element\Meta
- Element\Meter
- Element\Nav
- Element\Noscript
- Element\Object
- Element\Ol
- Element\Optgroup
- Element\Option
- Element\Output
- Element\P
- Element\Param
- Element\Pre
- Element\Progress
- Element\Q
- Element\Rp
- Element\Rt
- Element\Ruby
- Element\S
- Element\Samp
- Element\Script
- Element\Section
- Element\Select
- Element\Small
- Element\Source
- Element\Span
- Element\Strong
- Element\Style
- Element\Sub
- Element\Summary
- Element\Sup
- Element\Table
- Element\Tbody
- Element\Td
- Element\Textarea
- Element\Tfoot
- Element\Th
- Element\Thead
- Element\Time
- Element\Title
- Element\Tr
- Element\Track
- Element\U
- Element\Ul
- Element\Variable
- Element\Video
- Element\Wbr
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.
Abstract class «DomBuilder\Element»
Main class for Document Object Model operating.
The root class of some html elements that declares abstarct and static methods for operating with DOM tree and HTML document.
- abstract class Element
All implemented interfaces:
Object Builder Property Attribute Traverse Fetch Search Tester
static Element create(string $name='');
static bool docCompress(bool $docCompress=NULL);
static string docLanguage(string $docLang=NULL);
static string docType(string $docType=NULL);
static bool isList(object $node);
static bool isNode(object $node);
public static Element create(string $name='');
Creates a new element.
The method returns the default element node container if argument is defaulted or special element node container for given tag name if the first character of argument is not a slash or back slash character. It means that the method builds a class relatively of self namespace, otherwise a class is built by full given name relatively of root namespace. Note: Relative classes of root namespace may be some extensions of this library.
Parameters:
string $name — a tag name of new element.
Returns:
Element — created element.
public static bool docCompress(bool $docCompress=NULL);
Returns and sets document compress flag.
Parameters:
bool $docCompress — new document compress flag.
Returns:
bool — document compress flag.
public static string docLanguage(string $docLang=NULL);
Returns and sets document language.
This value is used as default value for lang attribute.
Parameters:
string $docLang — document language.
Returns:
string — current document language.
public static string docType(string $docType=NULL);
Returns and sets HTML document type.
Parameters:
string $docType — one of DOC_XHTML_10, DOC_HTML_401, or DOC_HTML_5 constans.
Returns:
string — HTML document type.
public static bool isList(object $node);
Tests if given object is an elements list container.
Parameters:
object $node — tested object.
Returns:
bool — true if object is an elements list.
public static bool isNode(object $node);
Tests if given object is an element node container.
Parameters:
object $node — tested object.
Returns:
bool — true if object is an element node.
public static Element newList();
Creates a new elements list container.
Returns:
Element — created elements list container.
public static Element newNode(string $name='');
Creates a new element node container.
The method returns the default element node container if argument is defaulted or special element node container for given tag name
Parameters:
string $name — a tag name of new element.
Returns:
Element — created element node container.
public static bool printError(bool $printError=NULL);
Returns and sets a print errors flag.
Parameters:
bool $printError — new print errors flag.
Returns:
bool — print errors flag.