Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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:

$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

 

 

  • No labels