CONTENIDO HTML generation
CONTENIDO provides the feature to build html code in your php script with the use of objects. So it is possible to generate valid markup without writing the code by yourself.
The big advantage of such a central functionality is that the changes at one place effect all other usages, for example to set a default attribut in the whole CONTENIDO markup. Because of these potential it is highly recommended to use the cHTML classes to build your html code.
cHTMLFormElement
The cHTMLFormElement class represents a form element. All the inheritanced classes are logically grouped by the form context.
Specified elements:
Class | Description | HTML element | ||
---|---|---|---|---|
The cHTMLButton class represents a button. | <button></button> | cHTMLSelectElement | cHTMLSelectElement||
cHTMLCheckbox | cHTMLCheckbox class represents a checkbox. | <input type="checkbox" /> | ||
cHTMLHiddenField | cHTMLHiddenField class represents a | select elementhidden form field. | <select></select><input type="hidden" /> | |
cHTMLOptionElement | cHTMLOptionElement class represents a select option element. | <option></option> | ||
cHTMLPasswordbox | cHTMLPasswordbox class represents a password form field. | <input type="password" /> | ||
cHTMLHiddenFieldcHTMLRadiobutton | cHTMLHiddenField cHTMLRadiobutton class represents a hidden form fieldradio button. | <input type="hidden radio" /> | ||
cHTMLUploadcHTMLSelectElement | cHTMLUpload cHTMLSelectElement class represents a file upload select element. | <input type="file" /><select></select> | ||
cHTMLTextarea | cHTMLTextarea class represents a textarea. | <textarea></textarea> | ||
cHTMLRadiobuttoncHTMLTextbox | cHTMLRadiobutton cHTMLTextbox class represents a radio buttontextbox. | <input type="radio text" /> | ||
cHTMLCheckboxcHTMLUpload | cHTMLCheckbox cHTMLUpload class represents a checkboxfile upload element. | <input type="checkbox file" />cHTMLTextbox | cHTMLTextbox class represents a textbox. | <input type="text" /> |
cHTMLContentElement
The cHTMLContentElement class represents a content element.
cHTMLCanvas | DescriptioncHTMLOptgroup | cHTMLOptgroupcHTMLCanvas class can be used for creating | optgrops.cHTMLFieldsetgraphics. | <canvas></canvas> | |
cHTMLDiv | cHTMLDiv class represents a div element. | <div></div> | |||
cHTMLFieldset | cHTMLFieldset class represents a fieldset element. | cHTMLTableHeader | cHTMLTableHead<fieldset></fieldset> | ||
cHTMLFooter | HTMLFooter class represents a | table headfooter. | cHTMLSection | cHTMLSection <footer></footer> | |
cHTMLForm | cHTMLForm class represents a section within an articleform. | cHTMLListItem | cHTMLListItem <form></form> | ||
cHTMLHeader | cHTMLHeader class represents a list item. | cHTMLTableBody | cHTMLTableBody header. | <header></header> | |
cHTMLHgroup | cHTMLHgroup class represents a table body. | cHTMLTime | cHTMLTime set of related headlines. | <hgroup></hgroup> | |
cHTMLLabel | cHTMLLabel class represents a date/time. | cHTMLNav | cHTMLNav form label. | <label></label> | |
cHTMLLegend | cHTMLLegend class represents a navigation. | cHTMLForm | cHTMLForm legend element. | <legend></legend> | |
cHTMLLink | cHTMLLink class represents a formlink. | ||||
cHTMLCanvas | cHTMLCanvas class can be used for creating graphics. | ||||
cHTMLList<a></a> | |||||
cHTMLList | cHTMLList class represents a list. | cHTMLTableData | cHTMLTableData | <ul></ul>, <ol></ol> | |
cHTMLListItem | cHTMLListItem class represents a table datelist item. | ||||
cHTMLArticle | cHTMLArticle class represents an HTML5 article element. | ||||
cHTMLSpan | cHTMLSpan <li></li> | ||||
cHTMLNav | cHTMLNav class represents a span elementnavigation. | ||||
cHTMLAside | cHTMLAside class represents content which is related to the surrounding content. | ||||
cHTMLLabel | cHTMLLabel class represents a form label. | ||||
cHTMLLink | |||||
cHTMLLink class represents a link. | |||||
cHTMLLabel | cHTMLLabel class represents a form label. | ||||
cHTMLLegend | cHTMLLegend class represents a legend element. | ||||
cHTMLScript | cHTMLScript class represents a script. | ||||
cHTMLParagraph | cHTMLParagraph class represents a paragraph. | ||||
cHTMLHeader | cHTMLHeader class represents a header. | ||||
cHTMLFooter | HTMLFooter class represents a footer. | ||||
cHTMLHgroup | cHTMLHgroup class represents a set of related headlines. | ||||
cHTMLDiv | cHTMLDiv class represents a div element. | ||||
cHTMLTableRow | cHTMLTableRow class represents a table row. | ||||
cHTMLVideo | cHTMLVideo class represents a video. | ||||
cHTMLAudio | cHTMLAudio class specifies sound content. | ||||
cHTMLTable | cHTMLTable class represents a table. |
cHTMLIFrame
cHTMLImage
<input type="password"
<nav></nav> | |||
cHTMLOptgroup | cHTMLOptgroup class can be used for creating optgrops. | <optgroup></optgroup> | |
cHTMLParagraph | cHTMLParagraph class represents a paragraph. | <p></p> | |
cHTMLScript | cHTMLScript class represents a script. | <script></script> | |
cHTMLSection | cHTMLSection class represents a section within an article. | <section></section> | |
cHTMLSpan | cHTMLSpan class represents a span element. | <span></span> | |
cHTMLTable | cHTMLTable class represents a table. | <table></table> | |
cHTMLTableBody | cHTMLTableBody class represents a table body. | <tbody></tbody> | |
cHTMLTableData | cHTMLTableData class represents a table date. | <td></td> | |
cHTMLTableHeader | cHTMLTableHead class represents a table head. | <th></th> | |
cHTMLTime | cHTMLTime class represents a date/time. | <time></time> | |
cHTMLVideo | cHTMLVideo class represents a video. | <video></video> |
cHTMLIFrame
The cHTMLIFrame class represents an iframe.
Method | Description |
---|---|
setSrc(string $src) | This method sets the source of the iframe. |
setWidth(string $width) | This method sets the width of the iframe. |
setHeight(string $height) | This method sets the height of the iframe. |
setBorder(string $border) | This method sets the border of the iframe. |
cHTMLImage
The cHTMLImage class represents an image.
Method | Description |
---|---|
setSrc(string $src) | This method sets the source of the image. |
setWidth(string $width) | This method sets the width of the image. |
setHeight(string $height) | This method sets the height of the image. |
setBorder(string $border) | This method sets the border of the image. |