__construct()
_setContent()
addRequiredScript()
advanceID()
attachEventDefinition()
attachStyleDefinition()
cHTML()
cHTMLLink()
disableAutomaticParameterAppend()
enableAutomaticParameterAppend()
fillCloseSkeleton()
fillSkeleton()
getHref()
getID()
render()
setAlt()
setAnchor()
setAttribute()
setCLink()
setClass()
setContent()
setContentlessTag()
setCustom()
setEvent()
setID()
setLink()
setMultiLink()
setStyle()
setStyleDefinition()
setTargetFrame()
toHTML()
unsetEvent()
$_aEventDefinitions
$_aStyleDefinitions
$_anchor
$_content
$_contentlessTag
$_custom
$_link
$_requiredScripts
$_skeleton_close
$_skeleton_open
$_skeleton_single
$_styledefs
$_tag
HTML Link
author | Timo A. Hummel |
---|
__construct($itemtype, $itemid, $subject, $message) : void
_setContent(\$content $content)
inherited_from | \cHTML::_setContent() |
---|---|
inherited_from | \cHTMLLink::_setContent() |
\$content
string/object String with the content or an object to render.
addRequiredScript($script)
inherited_from | \cHTML::addRequiredScript() |
---|---|
inherited_from | \cHTMLLink::addRequiredScript() |
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() |
---|---|
inherited_from | \cHTMLLink::advanceID() |
attachEventDefinition(\$sName $sName, \$sEvent $sEvent, \$sCode $sCode)
Example to attach an onClick handler: setEventDefinition("foo", "onClick", "alert('foo');");
inherited_from | \cHTML::attachEventDefinition() |
---|---|
inherited_from | \cHTMLLink::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() |
---|---|
inherited_from | \cHTMLLink::attachStyleDefinition() |
\$sName
string Name for a style definition
\$sDefinition
string Definition for the given entity
string
filled SGML closing skeletoncHTML()
inherited_from | \cHTML::cHTML() |
---|---|
inherited_from | \cHTMLLink::cHTML() |
cHTMLLink(\$href $href)
inherited_from | \cHTMLLink::cHTMLLink() |
---|
\$href
String with the location to link to
disableAutomaticParameterAppend()
inherited_from | \cHTMLLink::disableAutomaticParameterAppend() |
---|
enableAutomaticParameterAppend()
inherited_from | \cHTMLLink::enableAutomaticParameterAppend() |
---|
fillCloseSkeleton() : string
inherited_from | \cHTML::fillCloseSkeleton() |
---|---|
inherited_from | \cHTMLLink::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() |
---|---|
inherited_from | \cHTMLLink::fillSkeleton() |
\$attributes
string Attributes to set
string
filled SGML opener skeletongetHref()
inherited_from | \cHTMLLink::getHref() |
---|
getID() : string
inherited_from | \cHTML::getID() |
---|---|
inherited_from | \cHTMLLink::getID() |
string
current IDrender() : string
inherited_from | \cHTML::render() |
---|---|
inherited_from | \cHTMLLink::render() |
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() |
---|---|
inherited_from | \cHTMLLink::setAlt() |
\$alt
string Text to set as the "alt" attribute
setAnchor(\$content $anchor)
Only works for the link types Link and cLink.
inherited_from | \cHTMLLink::setAnchor() |
---|
\$content
string Anchor name
setAttribute(\$sAttributeName $sAttributeName, \$sValue $sValue)
inherited_from | \cHTML::setAttribute() |
---|---|
inherited_from | \cHTMLLink::setAttribute() |
\$sAttributeName
string Name of the attribute
\$sValue
string Value of the attribute
setCLink(\$targetarea $targetarea, \$targetframe $targetframe, \$targetaction $targetaction)
inherited_from | \cHTMLLink::setCLink() |
---|
\$targetarea
string Target backend area
\$targetframe
string Target frame (1-4)
\$targetaction
string Target action
setClass(\$class $class)
inherited_from | \cHTML::setClass() |
---|---|
inherited_from | \cHTMLLink::setClass() |
\$class
string Text to set as the "alt" attribute
setContent(\$content $content)
inherited_from | \cHTMLLink::setContent() |
---|
\$content
string/object String with the content or an object to render.
setContentlessTag(\type $contentlessTag)
inherited_from | \cHTML::setContentlessTag() |
---|---|
inherited_from | \cHTMLLink::setContentlessTag() |
\type
setCustom(\$key $key, \$value $value)
inherited_from | \cHTMLLink::setCustom() |
---|
\$key
string Parameter name
\$value
string Parameter value
setEvent(\$event $event, \$action $action)
example: $item->setEvent("change","document.forms[0].submit");
inherited_from | \cHTML::setEvent() |
---|---|
inherited_from | \cHTMLLink::setEvent() |
\$event
string Type of the event
\$action
string Function or action to call (JavaScript Code)
setID(\$class $id)
inherited_from | \cHTML::setID() |
---|---|
inherited_from | \cHTMLLink::setID() |
\$class
string Text to set as the "id"
setLink(\$href $href)
inherited_from | \cHTMLLink::setLink() |
---|
\$href
String with the location to link to
setMultiLink(\$righttoparea $righttoparea, \$righttopaction $righttopaction, \$rightbottomarea $rightbottomarea, \$rightbottomaction $rightbottomaction)
inherited_from | \cHTMLLink::setMultiLink() |
---|
\$righttoparea
string Area (right top)
\$righttopaction
string Action (right top)
\$rightbottomarea
string Area (right bottom)
\$rightbottomaction
string Action (right bottom)
setStyle(\$class $style)
inherited_from | \cHTML::setStyle() |
---|---|
inherited_from | \cHTMLLink::setStyle() |
\$class
string Text to set as the "alt" attribute
setStyleDefinition(\$entity $entity, \$definition $definition) : string
inherited_from | \cHTML::setStyleDefinition() |
---|---|
inherited_from | \cHTMLLink::setStyleDefinition() |
\$entity
string Entity to define
\$definition
string Definition for the given entity
string
filled SGML closing skeletonsetTargetFrame(\$target $target)
inherited_from | \cHTMLLink::setTargetFrame() |
---|
\$target
string Target frame identifier
toHTML() : string
inherited_from | \cHTMLLink::toHTML() |
---|
string
Rendered HTMLunsetEvent(\$event $event)
example: $item->unsetEvent("change");
inherited_from | \cHTML::unsetEvent() |
---|---|
inherited_from | \cHTMLLink::unsetEvent() |
\$event
string Type of the event
$_aEventDefinitions
inherited_from | \cHTML::$$_aEventDefinitions |
---|---|
inherited_from | \cHTMLLink::$$_aEventDefinitions |
$_aStyleDefinitions
inherited_from | \cHTML::$$_aStyleDefinitions |
---|---|
inherited_from | \cHTMLLink::$$_aStyleDefinitions |
$_anchor
inherited_from | \cHTMLLink::$$_anchor |
---|
$_content
inherited_from | \cHTMLLink::$$_content |
---|
$_contentlessTag : boolean
access | private |
---|---|
inherited_from | \cHTML::$$_contentlessTag |
inherited_from | \cHTMLLink::$$_contentlessTag |
$_custom
inherited_from | \cHTMLLink::$$_custom |
---|
$_link
inherited_from | \cHTMLLink::$$_link |
---|
$_requiredScripts : array
access | private |
---|---|
inherited_from | \cHTML::$$_requiredScripts |
inherited_from | \cHTMLLink::$$_requiredScripts |
$_skeleton_close : string
access | private |
---|---|
inherited_from | \cHTML::$$_skeleton_close |
inherited_from | \cHTMLLink::$$_skeleton_close |
$_skeleton_open : string
access | private |
---|---|
inherited_from | \cHTML::$$_skeleton_open |
inherited_from | \cHTMLLink::$$_skeleton_open |
$_skeleton_single : string
access | private |
---|---|
inherited_from | \cHTML::$$_skeleton_single |
inherited_from | \cHTMLLink::$$_skeleton_single |
$_styledefs : string
access | private |
---|---|
inherited_from | \cHTML::$$_styledefs |
inherited_from | \cHTMLLink::$$_styledefs |
$_tag : string
access | private |
---|---|
inherited_from | \cHTML::$$_tag |
inherited_from | \cHTMLLink::$$_tag |