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
PHP DOM Builder is unveiled in second revision
In 2014 year PHP DOM Builder library was unveiled at the first time within the framework of Baigudin Software project. Two years have been left after that moment and today we are glad to offer the second generation that is PHP DOM Builder Revision 2.
Interface «DomBuilder\Api\Field»
Form field elements access declaration.
bool|Element error(bool $value=NULL);
string|Element errorStr(string $value=NULL, string $lang=NULL);
bool|Element fill(bool $value=NULL);
string|Element name(string $value=NULL, string $lang=NULL);
string|Element reg(string $value=NULL);
Element setRequest(string $value=NULL);
string|Element value(string $value=NULL, string $lang=NULL);
public Element check();
Checks this field for errors.
Returns:
Element — this element.
public bool|Element error(bool $value=NULL);
Returns or sets a error flag.
Parameters:
bool $value — error flag.
Returns:
bool|Element — a current error flag or this element.
public string|Element errorStr(string $value=NULL, string $lang=NULL);
Returns or sets a error string.
Parameters:
string $value — error string.
string $lang — language key for given string.
Returns:
string|Element — a current error string or this element.
public bool|Element fill(bool $value=NULL);
Returns or sets a flag of necessarily filling field.
Parameters:
bool $value — filling flag.
Returns:
bool|Element — a current filling flag or this element.
public string|Element name(string $value=NULL, string $lang=NULL);
Returns or sets a field name.
Parameters:
string $value — field name.
string $lang — language key for given html string.
Returns:
string|Element — a current field name or this element.
public string|Element reg(string $value=NULL);
Returns or sets a regular expression for checking.
Parameters:
string $value — regular expression.
Returns:
string|Element — a current expression or this element.
public Element setRequest(string $value=NULL);
Sets a new request value.
Parameters:
string $value — new request value.
Returns:
Element — this element.
public string|Element value(string $value=NULL, string $lang=NULL);
Sets a default value or returns request value.
Parameters:
string $value — default field value.
string $lang — language key for given default field value.
Returns:
string|Element — a gotten value from request or this element.