Class cHTML
Base class for all CONTENIDO HTML classes
Direct known subclasses
cGuiFoldingRow, cHTMLContentElement, cHTMLFormElement, cHTMLIFrame, cHTMLImageIndirect known subclasses
cGuiObjectPager, cHTMLAlignmentTable, cHTMLDiv, cHTMLErrorMessageList, cHTMLFieldset, cHTMLFoldableErrorMessage, cHTMLFooter, cHTMLForm, cHTMLHeader, cHTMLHgroup, cHTMLHiddenField, cHTMLInfoMessage, cHTMLAlphaImage, cHTMLInputSelectElement, cHTMLLabel, cHTMLLanguageLink, cHTMLLegend, cHTMLLink, cHTMLList, cHTMLListItem, cHTMLNav, cHTMLOptgroup, cHTMLOptionElement, cHTMLArticle, cHTMLParagraph, cHTMLPasswordbox, cHTMLRadiobutton, cHTMLScript, cHTMLSection, cHTMLSelectElement, cHTMLSpan, cHTMLTable, cHTMLTableBody, cHTMLTableData, cHTMLAside, cHTMLTableHead, cHTMLTableHeader, cHTMLTableRow, cHTMLTextarea, cHTMLTextbox, cHTMLTime, cHTMLUpload, cHTMLVideo, NoteLink, NoteList, cHTMLAudio, NoteListItem, NoteView, TODOLink, cHTMLButton, cHTMLButtonLink, cHTMLCanvas, cHTMLCheckboxCopyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Simon Sprankel
Located at classes/html/class.html.php
public
|
|
public static
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
string
|
|
public
|
#
appendStyleDefinition( string $property, string $value )
Appends the given style definition to the HTML element. Example usage: $element->appendStyleDefinition('margin', '5px'); |
public
|
#
appendStyleDefinitions( array $styles )
Appends the given style definitions to the HTML element. Example usage: $element->appendStyleDefinitions(array( 'margin' => '5px', 'padding' => '0' )); |
public
|
#
addRequiredScript( string $script )
Adds a required script to the current element. Anyway, scripts are not included twice. |
protected
|
|
protected
|
#
_appendContent( string|object|array $content )
Adds the given content to the already existing content of this object. |
public
|
|
public
|
|
public
|
|
protected
array
|
|
public
|
|
public
string
|
|
public
|
#
updateAttribute( string $name, string $value )
Updates the passed attribute without changing the other existing attributes |
public
|
#
updateAttributes( array $attributes )
Updates the passed attributes without changing the other existing attributes |
protected
string
|
|
public
array|string
|
#
getAttributes( boolean $returnAsString = false )
Returns the assoc array(default) or string of attributes |
public
string
|
|
public
string
|
|
public
string
|
|
public
|
protected static
integer
|
$_idCounter | 0 |
#
Id attribute counter, used to generate unique values for id-attributes |
protected static
boolean
|
$_generateXHTML |
|
#
Flag to generate XHTML valid elements |
protected
string
|
$_skeletonOpen | '<%s%s>' |
#
Storage of the open SGML tag template |
protected
string
|
$_skeletonSingle |
|
#
Storage of a single SGML tag template |
protected
string
|
$_skeletonClose | '</%s>' |
#
Storage of the close SGML tag |
protected
string
|
$_tag |
|
#
Defines which tag to use |
protected
array
|
$_styleDefs | array() |
#
Defines the style definitions |
protected
array
|
$_requiredScripts | array() |
#
Defines all scripts which are required by the current element |
protected
boolean
|
$_contentlessTag | true |
#
Defines if the current tag is a contentless tag |
protected
array
|
$_eventDefinitions | array() |
#
Defines which JS events contain which scripts |
protected
array
|
$_styleDefinitions | array() |
#
Style definitions |
protected
array
|
$_attributes |
|
#
Attributes |
protected
string
|
$_content |
|
#
The content itself |