Helper class useful to generate some html tags
author | etessore |
---|---|
version | 1.0.0 |
package | classes |
anchor(string $href, string $label, array $parms) : \the
string
the url to be pointed
string
the text
array
some html attributes in key=>value pairs or a plain string
\the
markup for an html tagclose_tag(string $tag) : string
inherited_from | \HtmlBuilder::close_tag() |
---|
string
the html tag
string
the closing tagdiv(string $inner_html, array $parms)
string
the inner html code
array
additional parameters
doctype()
inherited_from | \HtmlBuilder::doctype() |
---|
image(string $src, array $parms)
string
the image source
array
additional parameters
input(string $name, string $type, array $parms) : string
string
the input name
string
the input type, default text
array
additional parameters
string
html markuplabel(string $inner_html, string $for_name, array $parms) : string
string
the inner text
string
the input name this label is referred to
array
additional parameters
string
html markuplist_item(string $inner_html, array $parms)
string
the inner html
array
the optional attributes for the
open_html(string | array $class)
inherited_from | \HtmlBuilder::open_html() |
---|
string
array
some additional classes
open_tag(string $tag, array $params) : string
inherited_from | \HtmlBuilder::open_tag() |
---|
string
the html tag
array
the additional parameters
string
the opening tagordered_list(string | array $inner_html, array $parms)
string
array
the inner html. If is an array every element will be wrapped inside a
array
the optional attributes for the
<
ol>
script(string $content, array $parms)
string
the inner script content
array
additional parameters
span(string $inner_html, array $parms)
string
the inner html code
array
additional parameters
standard_tag(string $tag, string $inner_html, array $parms)
inherited_from | \HtmlBuilder::standard_tag() |
---|
string
the tag
string
the inner html
array
the additional html tag parameters
unorderd_list(string | array $inner_html, array $parms)
string
array
the inner html. If an array is passed, every element will be wrapped inside a
array
the optional attributes for the
<
ul>
array_to_html_attributes(string $glue, array | string $pieces) : string
author | http://blog.teknober.com/2011/04/13/php-array-to-html-attributes/ |
---|---|
inherited_from | \HtmlBuilder::array_to_html_attributes() |
string
array
string
string
get_html_attributes(string | array $inner_html, array $params) : string
inherited_from | \HtmlBuilder::get_html_attributes() |
---|
string
array
the inner html
array
the parameters
string
the html tag attributes ready to be printed in the DOMparams(array $parms)
inherited_from | \HtmlBuilder::params() |
---|
array
list of html attributes
list_inner_html(string | array $inner_html)
If it is a string it will be returnes as it is. If it is an array every element will be wrapped in a
string
array
the inner html
HTML_VERSION : string
inherited_from | \HtmlBuilder::HTML_VERSION |
---|