Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
languagephp
$cHtml = new cHTML();
// cHTML object has the id 'm1';

$cHtml->setId('testId');
// cHTML object has the id 'testId';

Image Added

At the first inheritance level are the classes cHTMLFormElement, cHTMLContentElement, cHTMLIframe and cHTMLImage.

 

 

Image Removed

cHTMLFormElement

 

 

cHTMLContentElement

 

 

cHTMLIFrame

 

 

cHTMLImage