Class: html
Dynamically creates a class named "html" with a method for *each HTML tag.
*Missing tag <var> due to it being a reserved word in PHP.
Usage Example
<?php
echo html::html ( html::head ( html::title ('Page title') ) . html::body { html::h1 ('Page title') . html::p ( 'this ' . html::strong ('is') . ' some ' . html::span ('text', array ('style' => 'background-color: #f00')) ) ) );
?>
Return to Top
Properties
$comment = false
Whether the parser is in a comment or not.
$block = false
Whether the parser is in a block or not.
$list = array ()
The structure created from the previous call to parse().
Return to Top
Methods
_attrs ($attrs = array ())
a ($text = false, $attrs = array ())
abbr ($text = false, $attrs = array ())
acronym ($text = false, $attrs = array ())
address ($text = false, $attrs = array ())
applet ($text = false, $attrs = array ())
area ($text = false, $attrs = array ())
b ($text = false, $attrs = array ())
base ($text = false, $attrs = array ())
basefont ($text = false, $attrs = array ())
bdo ($text = false, $attrs = array ())
bgsound ($text = false, $attrs = array ())
big ($text = false, $attrs = array ())
blockquote ($text = false, $attrs = array ())
body ($text = false, $attrs = array ())
br ($text = false, $attrs = array ())
button ($text = false, $attrs = array ())
caption ($text = false, $attrs = array ())
center ($text = false, $attrs = array ())
cite ($text = false, $attrs = array ())
code ($text = false, $attrs = array ())
col ($text = false, $attrs = array ())
colgroup ($text = false, $attrs = array ())
comment ($text = false, $attrs = array ())
dd ($text = false, $attrs = array ())
del ($text = false, $attrs = array ())
dfn ($text = false, $attrs = array ())
dir ($text = false, $attrs = array ())
div ($text = false, $attrs = array ())
dl ($text = false, $attrs = array ())
dt ($text = false, $attrs = array ())
em ($text = false, $attrs = array ())
embed ($text = false, $attrs = array ())
fieldset ($text = false, $attrs = array ())
font ($text = false, $attrs = array ())
form ($text = false, $attrs = array ())
frame ($text = false, $attrs = array ())
frameset ($text = false, $attrs = array ())
h1 ($text = false, $attrs = array ())
h2 ($text = false, $attrs = array ())
h3 ($text = false, $attrs = array ())
h4 ($text = false, $attrs = array ())
h5 ($text = false, $attrs = array ())
h6 ($text = false, $attrs = array ())
head ($text = false, $attrs = array ())
hr ($text = false, $attrs = array ())
html ($text = false, $attrs = array ())
i ($text = false, $attrs = array ())
iframe ($text = false, $attrs = array ())
ilayer ($text = false, $attrs = array ())
img ($text = false, $attrs = array ())
input ($text = false, $attrs = array ())
ins ($text = false, $attrs = array ())
isindex ($text = false, $attrs = array ())
kbd ($text = false, $attrs = array ())
keygen ($text = false, $attrs = array ())
label ($text = false, $attrs = array ())
layer ($text = false, $attrs = array ())
legend ($text = false, $attrs = array ())
li ($text = false, $attrs = array ())
link ($text = false, $attrs = array ())
listing ($text = false, $attrs = array ())
map ($text = false, $attrs = array ())
marquee ($text = false, $attrs = array ())
menu ($text = false, $attrs = array ())
meta ($text = false, $attrs = array ())
multicol ($text = false, $attrs = array ())
nobr ($text = false, $attrs = array ())
noembed ($text = false, $attrs = array ())
noframes ($text = false, $attrs = array ())
noscript ($text = false, $attrs = array ())
object ($text = false, $attrs = array ())
ol ($text = false, $attrs = array ())
optgroup ($text = false, $attrs = array ())
option ($text = false, $attrs = array ())
p ($text = false, $attrs = array ())
param ($text = false, $attrs = array ())
plaintext ($text = false, $attrs = array ())
pre ($text = false, $attrs = array ())
q ($text = false, $attrs = array ())
s ($text = false, $attrs = array ())
samp ($text = false, $attrs = array ())
script ($text = false, $attrs = array ())
select ($text = false, $attrs = array ())
server ($text = false, $attrs = array ())
small ($text = false, $attrs = array ())
spacer ($text = false, $attrs = array ())
span ($text = false, $attrs = array ())
strike ($text = false, $attrs = array ())
strong ($text = false, $attrs = array ())
style ($text = false, $attrs = array ())
sub ($text = false, $attrs = array ())
sup ($text = false, $attrs = array ())
table ($text = false, $attrs = array ())
tbody ($text = false, $attrs = array ())
td ($text = false, $attrs = array ())
textarea ($text = false, $attrs = array ())
tfoot ($text = false, $attrs = array ())
th ($text = false, $attrs = array ())
thead ($text = false, $attrs = array ())
title ($text = false, $attrs = array ())
tr ($text = false, $attrs = array ())
tt ($text = false, $attrs = array ())
ul ($text = false, $attrs = array ())
wbr ($text = false, $attrs = array ())
xmp ($text = false, $attrs = array ())
Return to Top
|