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
|
#
getAttributes( boolean $returnAsString = false )
Returns the assoc array(default) or string of attributes |
public
string
|
|
public
string
|
|
public
string
|
|
public
|
protected static
integer
|
$_idCounter
Id attribute counter, used to generate unique values for id-attributes |
#
0
|
protected static
boolean
|
$_generateXHTML
Flag to generate XHTML valid elements |
|
protected
string
|
$_skeletonOpen
Storage of the open SGML tag template |
#
'<%s%s>'
|
protected
string
|
$_skeletonSingle
Storage of a single SGML tag template |
|
protected
string
|
$_skeletonClose
Storage of the close SGML tag |
#
'</%s>'
|
protected
string
|
$_tag
Defines which tag to use |
|
protected
array
|
$_styleDefs
Defines the style definitions |
#
array()
|
protected
array
|
$_requiredScripts
Defines all scripts which are required by the current element |
#
array()
|
protected
boolean
|
$_contentlessTag
Defines if the current tag is a contentless tag |
#
true
|
protected
array
|
$_eventDefinitions
Defines which JS events contain which scripts |
#
array()
|
protected
array
|
$_styleDefinitions
Style definitions |
#
array()
|
protected
array
|
$_attributes
Attributes |
|
protected
string
|
$_content
The content itself |