Base class for all Contenido HTML classes
author | Timo A. Hummel |
---|
__toString() : string
string
Generated markup_setContent($content)
string/object String with the content or an object to render.
addRequiredScript($script)
advanceID()
This function is useful if you need to use HTML elements in a loop, but don't want to re-create new objects each time.
attachEventDefinition($sName, $sEvent, $sCode)
Example to attach an onClick handler: setEventDefinition("foo", "onClick", "alert('foo');");
string defines the name of the event
string defines the event (e.g. onClick)
string defines the code
attachStyleDefinition($sName, $sDefinition) : string
This function is not restricted to a single style, e.g. you can set multiple style definitions as-is to the handler.
$example->attachStyle("myIdentifier", "border: 1px solid black; white-space: nowrap"); $example->attachStyle("myIdentifier2", "padding: 0px");
Results in:
style="border: 1px solid black; white-space: nowrap; padding: 0px;"
string Name for a style definition
string Definition for the given entity
string
filled SGML closing skeletoncHTML()
fillCloseSkeleton() : string
string
filled SGML closer skeletonfillSkeleton($attributes) : string
fillSkeleton fills the SGML opener tag with the specified attributes. Attributes need to be passed in the stringyfied variant.
string Attributes to set
string
filled SGML opener skeletongetID() : string
string
current IDrender() : string
string
Rendered HTMLsetAlt($alt)
Sets the "alt" and "title" tags. Usually, "alt" is used for accessibility and "title" for mouse overs.
To set the text for all browsers for mouse over, set "alt" and "title". IE behaves incorrectly and shows "alt" on mouse over. Mozilla browsers only show "title" as mouse over.
string Text to set as the "alt" attribute
setAttribute($sAttributeName, $sValue)
string Name of the attribute
string Value of the attribute
setClass($class)
string Text to set as the "alt" attribute
setContentlessTag($contentlessTag)
setEvent($event, $action)
example: $item->setEvent("change","document.forms[0].submit");
string Type of the event
string Function or action to call (JavaScript Code)
setGenerateXHTML(bool $value)
bool
setID($id)
setStyle($style)
setStyleDefinition($entity, $definition) : string
deprecated | name change, use attachStyleDefinition |
---|
string Entity to define
string Definition for the given entity
string
filled SGML closing skeletontoHTML()
unsetEvent($event)
example: $item->unsetEvent("change");
string Type of the event
$_aEventDefinitions
$_aStyleDefinitions
$_content
$_contentlessTag : boolean
access | private |
---|
$_requiredScripts : array
access | private |
---|
$_skeleton_close : string
access | private |
---|
$_skeleton_open : string
access | private |
---|
$_skeleton_single : string
access | private |
---|
$_styledefs : string
access | private |
---|
$_tag : string
access | private |
---|