__construct()
_setContent()
addRequiredScript()
addScript()
advanceID()
attachEventDefinition()
attachStyleDefinition()
cHTML()
cPage()
fillCloseSkeleton()
fillSkeleton()
getID()
render()
setAlt()
setAttribute()
setClass()
setContent()
setContentlessTag()
setEncoding()
setEvent()
setExtra()
setID()
setMargin()
setMarkScript()
setMessageBox()
setReload()
setStyle()
setStyleDefinition()
setSubnav()
toHTML()
unsetEvent()
$_aEventDefinitions
$_aStyleDefinitions
$_content
$_contentlessTag
$_encoding
$_margin
$_requiredScripts
$_scripts
$_skeleton_close
$_skeleton_open
$_skeleton_single
$_styledefs
$_subnav
$_tag
$extra
Regular page
author | Timo A. Hummel |
---|
__construct() : void
inherited_from | \cHTML::__construct() |
---|
_setContent(\$content $content)
inherited_from | \cHTML::_setContent() |
---|
\$content
string/object String with the content or an object to render.
addRequiredScript($script)
inherited_from | \cHTML::addRequiredScript() |
---|
addScript(\$name $name, \$script $script)
\$name
string Script identifier
\$script
string Script code
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.
inherited_from | \cHTML::advanceID() |
---|
attachEventDefinition(\$sName $sName, \$sEvent $sEvent, \$sCode $sCode)
Example to attach an onClick handler: setEventDefinition("foo", "onClick", "alert('foo');");
inherited_from | \cHTML::attachEventDefinition() |
---|
\$sName
string defines the name of the event
\$sEvent
string defines the event (e.g. onClick)
\$sCode
string defines the code
attachStyleDefinition(\$sName $sName, \$sDefinition $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;"
inherited_from | \cHTML::attachStyleDefinition() |
---|
\$sName
string Name for a style definition
\$sDefinition
string Definition for the given entity
string
filled SGML closing skeletoncHTML()
inherited_from | \cHTML::cHTML() |
---|
cPage($object)
none
fillCloseSkeleton() : string
inherited_from | \cHTML::fillCloseSkeleton() |
---|
string
filled SGML closer skeletonfillSkeleton(\$attributes $attributes) : string
fillSkeleton fills the SGML opener tag with the specified attributes. Attributes need to be passed in the stringyfied variant.
inherited_from | \cHTML::fillSkeleton() |
---|
\$attributes
string Attributes to set
string
filled SGML opener skeletongetID() : string
inherited_from | \cHTML::getID() |
---|
string
current IDrender($print) : string
none
string
Rendered HTMLsetAlt(\$alt $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.
inherited_from | \cHTML::setAlt() |
---|
\$alt
string Text to set as the "alt" attribute
setAttribute(\$sAttributeName $sAttributeName, \$sValue $sValue)
inherited_from | \cHTML::setAttribute() |
---|
\$sAttributeName
string Name of the attribute
\$sValue
string Value of the attribute
setClass(\$class $class)
inherited_from | \cHTML::setClass() |
---|
\$class
string Text to set as the "alt" attribute
setContent(\$content $content)
\$content
mixed Object with a render method or a string containing the content
setContentlessTag(\type $contentlessTag)
inherited_from | \cHTML::setContentlessTag() |
---|
\type
setEncoding($encoding)
setEvent(\$event $event, \$action $action)
example: $item->setEvent("change","document.forms[0].submit");
inherited_from | \cHTML::setEvent() |
---|
\$event
string Type of the event
\$action
string Function or action to call (JavaScript Code)
setExtra($extra)
setID(\$class $id)
inherited_from | \cHTML::setID() |
---|
\$class
string Text to set as the "id"
setMargin(\$margin $margin)
\$margin
int Margin width
setMarkScript($item)
setMessageBox()
setReload($location)
none
setStyle(\$class $style)
inherited_from | \cHTML::setStyle() |
---|
\$class
string Text to set as the "alt" attribute
setStyleDefinition(\$entity $entity, \$definition $definition) : string
inherited_from | \cHTML::setStyleDefinition() |
---|
\$entity
string Entity to define
\$definition
string Definition for the given entity
string
filled SGML closing skeletonsetSubnav(\$append $append, $marea)
\$append
URL to append
toHTML()
inherited_from | \cHTML::toHTML() |
---|
unsetEvent(\$event $event)
example: $item->unsetEvent("change");
inherited_from | \cHTML::unsetEvent() |
---|
\$event
string Type of the event
$_aEventDefinitions
inherited_from | \cHTML::$$_aEventDefinitions |
---|
$_aStyleDefinitions
inherited_from | \cHTML::$$_aStyleDefinitions |
---|
$_content : string
access | private |
---|
$_contentlessTag : boolean
access | private |
---|---|
inherited_from | \cHTML::$$_contentlessTag |
$_encoding : string
access | private |
---|
$_margin : int
access | private |
---|
$_requiredScripts : array
access | private |
---|---|
inherited_from | \cHTML::$$_requiredScripts |
$_scripts : array
access | private |
---|
$_skeleton_close : string
access | private |
---|---|
inherited_from | \cHTML::$$_skeleton_close |
$_skeleton_open : string
access | private |
---|---|
inherited_from | \cHTML::$$_skeleton_open |
$_skeleton_single : string
access | private |
---|---|
inherited_from | \cHTML::$$_skeleton_single |
$_styledefs : string
access | private |
---|---|
inherited_from | \cHTML::$$_styledefs |
$_tag : string
access | private |
---|---|
inherited_from | \cHTML::$$_tag |
$extra : string
access | private |
---|