class cDataMultiTextboxWidget
cDataMultiTextboxWidget generates a multi-line textbox widget
Methods
Constructor Function
Initializes the SGML open/close tags
__construct() : void
Inherited
inherited_from |
\cHTML::__construct() |
inherited_from |
\cHTMLTable::__construct() |
_setContent: Sets the content of the object
_setContent(\$content $content)
Inherited
inherited_from |
\cHTML::_setContent() |
inherited_from |
\cHTMLTable::_setContent() |
Parameters
$content
\$content
string/object String with the content or an object to render.
addRequiredScript()
addRequiredScript($script)
Inherited
inherited_from |
\cHTML::addRequiredScript() |
inherited_from |
\cHTMLTable::addRequiredScript() |
Parameters
$script
addTitle()
addTitle($title)
advances to the next ID available in the system.
advanceID()
Inherited
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 |
\cHTMLTable::advanceID() |
attachEventDefinition: Attaches the code for an event
attachEventDefinition(\$sName $sName, \$sEvent $sEvent, \$sCode $sCode)
Inherited
Example to attach an onClick handler:
setEventDefinition("foo", "onClick", "alert('foo');");
inherited_from |
\cHTML::attachEventDefinition() |
inherited_from |
\cHTMLTable::attachEventDefinition() |
Parameters
$sName
\$sName
string defines the name of the event
$sEvent
\$sEvent
string defines the event (e.g. onClick)
$sCode
\$sCode
string defines the code
attachStyleDefinition: Attaches a style definition.
attachStyleDefinition(\$sName $sName, \$sDefinition $sDefinition) : string
Inherited
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 |
\cHTMLTable::attachStyleDefinition() |
Parameters
$sName
\$sName
string Name for a style definition
$sDefinition
\$sDefinition
string Definition for the given entity
Returns
string
filled SGML closing skeleton
cDataMultiTextboxWidget: Creates a multi-line textbox widget
cDataMultiTextboxWidget(\$name $name, \$parameters $parameters) : void
Parameters
$name
\$name
Name of the widget
$parameters
\$parameters
Parameters (see below) valid parameters for this control are: title string Title of the multi-line textbox widget default array Values (=lines) to fill
old Constructor
cHTML()
Inherited
inherited_from |
\cHTML::cHTML() |
inherited_from |
\cHTMLTable::cHTML() |
cHTMLTable()
cHTMLTable()
Inherited
inherited_from |
\cHTMLTable::cHTMLTable() |
fillCloseSkeleton: Fills the close skeleton
fillCloseSkeleton() : string
Inherited
inherited_from |
\cHTML::fillCloseSkeleton() |
inherited_from |
\cHTMLTable::fillCloseSkeleton() |
Returns
string
filled SGML closer skeleton
fillSkeleton: Fills the open SGML tag skeleton
fillSkeleton(\$attributes $attributes) : string
Inherited
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 |
\cHTMLTable::fillSkeleton() |
Parameters
$attributes
\$attributes
string Attributes to set
Returns
string
filled SGML opener skeleton
getID: returns the current ID
getID() : string
Inherited
inherited_from |
\cHTML::getID() |
inherited_from |
\cHTMLTable::getID() |
Returns
string
current ID
render(): Alias for toHtml
render() : string
Inherited
inherited_from |
\cHTML::render() |
inherited_from |
\cHTMLTable::render() |
Returns
string
Rendered HTML
setAlt: sets the alt and title attributes
setAlt(\$alt $alt)
Inherited
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 |
\cHTMLTable::setAlt() |
Parameters
$alt
\$alt
string Text to set as the "alt" attribute
setAttribte: Sets a specific attribute
setAttribute(\$sAttributeName $sAttributeName, \$sValue $sValue)
Inherited
inherited_from |
\cHTML::setAttribute() |
inherited_from |
\cHTMLTable::setAttribute() |
Parameters
$sAttributeName
\$sAttributeName
string Name of the attribute
$sValue
\$sValue
string Value of the attribute
setBorder: Sets the table's border
setBorder(\border $border)
Inherited
inherited_from |
\cHTMLTable::setBorder() |
Parameters
$border
\border
Border size
setCellPadding: Sets the padding between cells
setCellPadding(\$cellpadding $cellpadding)
Inherited
inherited_from |
\cHTMLTable::setCellPadding() |
Parameters
$cellpadding
\$cellpadding
Padding
setCellSpacing: Sets the spacing between cells
setCellSpacing(\$cellspacing $cellspacing)
Inherited
inherited_from |
\cHTMLTable::setCellSpacing() |
Parameters
$cellspacing
\$cellspacing
Spacing
sets the CSS class
setClass(\$class $class)
Inherited
inherited_from |
\cHTML::setClass() |
inherited_from |
\cHTMLTable::setClass() |
Parameters
$class
\$class
string Text to set as the "alt" attribute
setContent: Sets the table's content
setContent(\$content $content)
Inherited
inherited_from |
\cHTMLTable::setContent() |
Parameters
$content
\$content
string/object String with the content or an object to render.
setContentlessTag()
setContentlessTag(\type $contentlessTag)
Inherited
inherited_from |
\cHTML::setContentlessTag() |
inherited_from |
\cHTMLTable::setContentlessTag() |
Parameters
$contentlessTag
\type
adds an "onXXX" javascript event handler
setEvent(\$event $event, \$action $action)
Inherited
example:
$item->setEvent("change","document.forms[0].submit");
inherited_from |
\cHTML::setEvent() |
inherited_from |
\cHTMLTable::setEvent() |
Parameters
$event
\$event
string Type of the event
$action
\$action
string Function or action to call (JavaScript Code)
sets the ID class
setID(\$class $id)
Inherited
inherited_from |
\cHTML::setID() |
inherited_from |
\cHTMLTable::setID() |
Parameters
$id
\$class
string Text to set as the "id"
setPadding()
setPadding($cellpadding)
Inherited
inherited_from |
\cHTMLTable::setPadding() |
Parameters
$cellpadding
setSpacing()
setSpacing($cellspacing)
Inherited
inherited_from |
\cHTMLTable::setSpacing() |
Parameters
$cellspacing
sets the CSS style
setStyle(\$class $style)
Inherited
inherited_from |
\cHTML::setStyle() |
inherited_from |
\cHTMLTable::setStyle() |
Parameters
$style
\$class
string Text to set as the "alt" attribute
addStyleDefinition
setStyleDefinition(\$entity $entity, \$definition $definition) : string
Inherited
inherited_from |
\cHTML::setStyleDefinition() |
inherited_from |
\cHTMLTable::setStyleDefinition() |
Parameters
$entity
\$entity
string Entity to define
$definition
\$definition
string Definition for the given entity
Returns
string
filled SGML closing skeleton
setWidth: Sets the table width
setWidth(\$width $width)
Inherited
inherited_from |
\cHTMLTable::setWidth() |
Parameters
Renders the Table element
toHTML() : string
Inherited
inherited_from |
\cHTMLTable::toHTML() |
Returns
string
Rendered HTML
removes an event handler
unsetEvent(\$event $event)
Inherited
example:
$item->unsetEvent("change");
inherited_from |
\cHTML::unsetEvent() |
inherited_from |
\cHTMLTable::unsetEvent() |
Parameters
$event
\$event
string Type of the event
Properties
Defines which JS events contain which scripts
$_aEventDefinitions
Inherited
inherited_from |
\cHTML::$$_aEventDefinitions |
inherited_from |
\cHTMLTable::$$_aEventDefinitions |
Style definitions
$_aStyleDefinitions
Inherited
inherited_from |
\cHTML::$$_aStyleDefinitions |
inherited_from |
\cHTMLTable::$$_aStyleDefinitions |
The content itself
$_content
Inherited
inherited_from |
\cHTML::$$_content |
inherited_from |
\cHTMLTable::$$_content |
Defines if the current tag is a contentless tag
$_contentlessTag : boolean
Inherited
access |
private |
inherited_from |
\cHTML::$$_contentlessTag |
inherited_from |
\cHTMLTable::$$_contentlessTag |
Defines all scripts which are required by the current element
$_requiredScripts : array
Inherited
access |
private |
inherited_from |
\cHTML::$$_requiredScripts |
inherited_from |
\cHTMLTable::$$_requiredScripts |
Storage of the close SGML tag
$_skeleton_close : string
Inherited
access |
private |
inherited_from |
\cHTML::$$_skeleton_close |
inherited_from |
\cHTMLTable::$$_skeleton_close |
Storage of the open SGML tag template
$_skeleton_open : string
Inherited
access |
private |
inherited_from |
\cHTML::$$_skeleton_open |
inherited_from |
\cHTMLTable::$$_skeleton_open |
Storage of a single SGML tag template
$_skeleton_single : string
Inherited
access |
private |
inherited_from |
\cHTML::$$_skeleton_single |
inherited_from |
\cHTMLTable::$$_skeleton_single |
Defines the style definitions
$_styledefs : string
Inherited
access |
private |
inherited_from |
\cHTML::$$_styledefs |
inherited_from |
\cHTMLTable::$$_styledefs |
Defines which tag to use
$_tag : string
Inherited
access |
private |
inherited_from |
\cHTML::$$_tag |
inherited_from |
\cHTMLTable::$$_tag |