CONTENIDO HTML generation
cHTML
The central element is the cHTML class with the elementary features to generate valid html tags including content, attributes.
The cHtml class provides to set ids automatically. The Ids will be in the format 'm1', the number will be incremented for every new instance. If you don´t want to use this feature it is possible to set the id manually with the public method setID(id).
Code examples:
Code Block | ||
---|---|---|
| ||
$cHtml = new cHTML();
// cHTML object has the id 'm1';
$cHtml->setId('testId');
// cHTML object has the id 'testId'; |
At the first inheritance level are the classes cHTMLFormElement, cHTMLContentElement, cHTMLIframe and cHTMLImage.
cHTMLFormElement
cHTMLContentElement
cHTMLIFrame
cHTMLImage