''
,'bln_endtag' => '1'
,'attributes' => ''
,'contents' => ''
);
function cls_htmlbase($in_props) {
while (list($key, $value) = each($this->defaults)) {
$this->props[$key] = $value;
}
while (list($key, $value) = each($in_props)) {
$this->props[$key] = $value;
}
}
function get_classname() {
return("cls_htmlbase");
}
function generate() {
$tag_name = $this->props['tag_name'];
$buffer = "<$tag_name>";
// add children to buffer.
if ($this->props['bln_endtag'] == '1') {
$buffer .= "$tag_name>";
}
return($buffer);
}
}
?>