__construct()
_setContent()
addOptionElement()
addRequiredScript()
advanceID()
attachEventDefinition()
attachStyleDefinition()
autoFill()
cDataDropdownWidget()
cHTML()
cHTMLFormElement()
cHTMLSelectElement()
fillCloseSkeleton()
fillSkeleton()
getDefault()
getID()
render()
setAccessKey()
setAlt()
setAttribute()
setClass()
setContentlessTag()
setDefault()
setDisabled()
setEvent()
setID()
setMultiselect()
setSelected()
setSize()
setStyle()
setStyleDefinition()
setTabindex()
toHTML()
toHtml()
unsetEvent()
$_aEventDefinitions
$_aStyleDefinitions
$_content
$_contentlessTag
$_options
$_requiredScripts
$_skeleton_close
$_skeleton_open
$_skeleton_single
$_styledefs
$_tag
class cDataDropdownWidget cDataDropdownWidget generates a dropdown widget for use with the data objects.
| author | Timo A. Hummel |
|---|
__construct() : void
| inherited_from | \cHTML::__construct() |
|---|---|
| inherited_from | \cHTMLFormElement::__construct() |
| inherited_from | \cHTMLSelectElement::__construct() |
_setContent(\$content $content)
| inherited_from | \cHTML::_setContent() |
|---|---|
| inherited_from | \cHTMLFormElement::_setContent() |
| inherited_from | \cHTMLSelectElement::_setContent() |
\$contentstring/object String with the content or an object to render.
addOptionElement(\$index $index, \$element $element) : \none
| inherited_from | \cHTMLSelectElement::addOptionElement() |
|---|
\$indexstring Index of the element
\$elementobject Filled cHTMLOptionElement to add
\noneaddRequiredScript($script)
| inherited_from | \cHTML::addRequiredScript() |
|---|---|
| inherited_from | \cHTMLFormElement::addRequiredScript() |
| inherited_from | \cHTMLSelectElement::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 | \cHTMLFormElement::advanceID() |
| inherited_from | \cHTMLSelectElement::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 | \cHTMLFormElement::attachEventDefinition() |
| inherited_from | \cHTMLSelectElement::attachEventDefinition() |
\$sNamestring defines the name of the event
\$sEventstring defines the event (e.g. onClick)
\$sCodestring 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 | \cHTMLFormElement::attachStyleDefinition() |
| inherited_from | \cHTMLSelectElement::attachStyleDefinition() |
\$sNamestring Name for a style definition
\$sDefinitionstring Definition for the given entity
stringfilled SGML closing skeletonautoFill(\$stuff $stuff) : \none
Array format: $stuff = array( array("value","title"), array("value","title"));
or regular key => value arrays.
| inherited_from | \cHTMLSelectElement::autoFill() |
|---|
\$stuffarray Array with all items
\nonecDataDropdownWidget(\$name $name, \$parameters $parameters) : void
| access | public |
|---|
\$nameName of the widget
\$parametersParameters (see below) valid parameters for this control are: default string Default value which will be selected choices array Values for filling the dropdown
cHTML()
| inherited_from | \cHTML::cHTML() |
|---|---|
| inherited_from | \cHTMLFormElement::cHTML() |
| inherited_from | \cHTMLSelectElement::cHTML() |
cHTMLFormElement(\$name $name, \$id $id, \$disabled $disabled, \$tabindex $tabindex, \$accesskey $accesskey) : \none
| inherited_from | \cHTMLFormElement::cHTMLFormElement() |
|---|---|
| inherited_from | \cHTMLSelectElement::cHTMLFormElement() |
\$namestring Name of the element
\$idstring ID of the element
\$disabledstring Item disabled flag (non-empty to set disabled)
\$tabindexstring Tab index for form elements
\$accesskeystring Key to access the field
\nonecHTMLSelectElement(\$name $name, \$width $width, \$id $id, \$disabled $disabled, \$tabindex $tabindex, \$accesskey $accesskey) : \none
| inherited_from | \cHTMLSelectElement::cHTMLSelectElement() |
|---|
\$namestring Name of the element
\$widthint width of the select element
\$idstring ID of the element
\$disabledstring Item disabled flag (non-empty to set disabled)
\$tabindexstring Tab index for form elements
\$accesskeystring Key to access the field
\nonefillCloseSkeleton() : string
| inherited_from | \cHTML::fillCloseSkeleton() |
|---|---|
| inherited_from | \cHTMLFormElement::fillCloseSkeleton() |
| inherited_from | \cHTMLSelectElement::fillCloseSkeleton() |
stringfilled 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 | \cHTMLFormElement::fillSkeleton() |
| inherited_from | \cHTMLSelectElement::fillSkeleton() |
\$attributesstring Attributes to set
stringfilled SGML opener skeletongetDefault() : \Selected
| inherited_from | \cHTMLSelectElement::getDefault() |
|---|
\Selected"lvalue"getID() : string
| inherited_from | \cHTML::getID() |
|---|---|
| inherited_from | \cHTMLFormElement::getID() |
| inherited_from | \cHTMLSelectElement::getID() |
stringcurrent IDrender() : string
| inherited_from | \cHTML::render() |
|---|---|
| inherited_from | \cHTMLFormElement::render() |
| inherited_from | \cHTMLSelectElement::render() |
stringRendered HTMLsetAccessKey(\$accesskey $accesskey) : \none
| inherited_from | \cHTMLFormElement::setAccessKey() |
|---|---|
| inherited_from | \cHTMLSelectElement::setAccessKey() |
\$accesskeystring The length of the access key. May be A-Z and 0-9.
\nonesetAlt(\$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 | \cHTMLFormElement::setAlt() |
| inherited_from | \cHTMLSelectElement::setAlt() |
\$altstring Text to set as the "alt" attribute
setAttribute(\$sAttributeName $sAttributeName, \$sValue $sValue)
| inherited_from | \cHTML::setAttribute() |
|---|---|
| inherited_from | \cHTMLFormElement::setAttribute() |
| inherited_from | \cHTMLSelectElement::setAttribute() |
\$sAttributeNamestring Name of the attribute
\$sValuestring Value of the attribute
setClass(\$class $class)
| inherited_from | \cHTML::setClass() |
|---|---|
| inherited_from | \cHTMLFormElement::setClass() |
| inherited_from | \cHTMLSelectElement::setClass() |
\$classstring Text to set as the "alt" attribute
setContentlessTag(\type $contentlessTag)
| inherited_from | \cHTML::setContentlessTag() |
|---|---|
| inherited_from | \cHTMLFormElement::setContentlessTag() |
| inherited_from | \cHTMLSelectElement::setContentlessTag() |
\type
setDefault(\$lvalue $lvalue) : \none
| inherited_from | \cHTMLSelectElement::setDefault() |
|---|
\$lvaluestring Specifies the "value" of the cHTMLOptionElement to set
\nonesetDisabled(\$disabled $disabled) : \none
Example: $obj->setDisabled("disabled"); $obj->setDisabled("");
The first example sets the disabled flag, the second one removes the disabled flag.
| inherited_from | \cHTMLFormElement::setDisabled() |
|---|---|
| inherited_from | \cHTMLSelectElement::setDisabled() |
\$disabledstring Sets the disabled-flag if non-empty
\nonesetEvent(\$event $event, \$action $action)
example: $item->setEvent("change","document.forms[0].submit");
| inherited_from | \cHTML::setEvent() |
|---|---|
| inherited_from | \cHTMLFormElement::setEvent() |
| inherited_from | \cHTMLSelectElement::setEvent() |
\$eventstring Type of the event
\$actionstring Function or action to call (JavaScript Code)
setID(\$class $id)
| inherited_from | \cHTML::setID() |
|---|---|
| inherited_from | \cHTMLFormElement::setID() |
| inherited_from | \cHTMLSelectElement::setID() |
\$classstring Text to set as the "id"
setMultiselect()
| inherited_from | \cHTMLSelectElement::setMultiselect() |
|---|
setSelected(array $aElements) : \none
| inherited_from | \cHTMLSelectElement::setSelected() |
|---|
arrayArray with "values" of the cHTMLOptionElement to set
\nonesetSize($size)
| inherited_from | \cHTMLSelectElement::setSize() |
|---|
setStyle(\$class $style)
| inherited_from | \cHTML::setStyle() |
|---|---|
| inherited_from | \cHTMLFormElement::setStyle() |
| inherited_from | \cHTMLSelectElement::setStyle() |
\$classstring Text to set as the "alt" attribute
setStyleDefinition(\$entity $entity, \$definition $definition) : string
| inherited_from | \cHTML::setStyleDefinition() |
|---|---|
| inherited_from | \cHTMLFormElement::setStyleDefinition() |
| inherited_from | \cHTMLSelectElement::setStyleDefinition() |
\$entitystring Entity to define
\$definitionstring Definition for the given entity
stringfilled SGML closing skeletonsetTabindex(\$tabindex $tabindex) : \none
| inherited_from | \cHTMLFormElement::setTabindex() |
|---|---|
| inherited_from | \cHTMLSelectElement::setTabindex() |
\$tabindexint desired tab index
\nonetoHTML()
| inherited_from | \cHTML::toHTML() |
|---|---|
| inherited_from | \cHTMLFormElement::toHTML() |
| inherited_from | \cHTMLSelectElement::toHTML() |
toHtml() : string
| inherited_from | \cHTMLSelectElement::toHtml() |
|---|
stringRendered HTMLunsetEvent(\$event $event)
example: $item->unsetEvent("change");
| inherited_from | \cHTML::unsetEvent() |
|---|---|
| inherited_from | \cHTMLFormElement::unsetEvent() |
| inherited_from | \cHTMLSelectElement::unsetEvent() |
\$eventstring Type of the event
$_aEventDefinitions
| inherited_from | \cHTML::$$_aEventDefinitions |
|---|---|
| inherited_from | \cHTMLFormElement::$$_aEventDefinitions |
| inherited_from | \cHTMLSelectElement::$$_aEventDefinitions |
$_aStyleDefinitions
| inherited_from | \cHTML::$$_aStyleDefinitions |
|---|---|
| inherited_from | \cHTMLFormElement::$$_aStyleDefinitions |
| inherited_from | \cHTMLSelectElement::$$_aStyleDefinitions |
$_content
| inherited_from | \cHTML::$$_content |
|---|---|
| inherited_from | \cHTMLFormElement::$$_content |
| inherited_from | \cHTMLSelectElement::$$_content |
$_contentlessTag : boolean
| access | private |
|---|---|
| inherited_from | \cHTML::$$_contentlessTag |
| inherited_from | \cHTMLFormElement::$$_contentlessTag |
| inherited_from | \cHTMLSelectElement::$$_contentlessTag |
$_requiredScripts : array
| access | private |
|---|---|
| inherited_from | \cHTML::$$_requiredScripts |
| inherited_from | \cHTMLFormElement::$$_requiredScripts |
| inherited_from | \cHTMLSelectElement::$$_requiredScripts |
$_skeleton_close : string
| access | private |
|---|---|
| inherited_from | \cHTML::$$_skeleton_close |
| inherited_from | \cHTMLFormElement::$$_skeleton_close |
| inherited_from | \cHTMLSelectElement::$$_skeleton_close |
$_skeleton_open : string
| access | private |
|---|---|
| inherited_from | \cHTML::$$_skeleton_open |
| inherited_from | \cHTMLFormElement::$$_skeleton_open |
| inherited_from | \cHTMLSelectElement::$$_skeleton_open |
$_skeleton_single : string
| access | private |
|---|---|
| inherited_from | \cHTML::$$_skeleton_single |
| inherited_from | \cHTMLFormElement::$$_skeleton_single |
| inherited_from | \cHTMLSelectElement::$$_skeleton_single |
$_styledefs : string
| access | private |
|---|---|
| inherited_from | \cHTML::$$_styledefs |
| inherited_from | \cHTMLFormElement::$$_styledefs |
| inherited_from | \cHTMLSelectElement::$$_styledefs |
$_tag : string
| access | private |
|---|---|
| inherited_from | \cHTML::$$_tag |
| inherited_from | \cHTMLFormElement::$$_tag |
| inherited_from | \cHTMLSelectElement::$$_tag |