Toggle buttons for creating a grouped set of buttons
| author | Timo A. Hummel |
|---|---|
| deprecated | 2012-08-24 Use cHTMLButton instead |
| package | Core |
__construct(mixed $content) : void
Creates an HTML Span element.
| inherited_from | \cHTMLSpan::__construct() |
|---|---|
| inherited_from | \cWidgetButton::__construct() |
mixedString or object with the contents
__toString() : string
| inherited_from | \cHTML::__toString() |
|---|---|
| inherited_from | \cHTMLSpan::__toString() |
| inherited_from | \cWidgetButton::__toString() |
stringGenerated markupaddLinkedItem($item)
| deprecated | 2012-08-24 Use cHTMLButton instead |
|---|
mixed Either another cWidgetMultiToggleButton (or derivates) or the ID of the target button.
addRequiredScript(string $script) : \cHTML
Anyway, scripts are not included twice.
| inherited_from | \cHTML::addRequiredScript() |
|---|---|
| inherited_from | \cHTMLSpan::addRequiredScript() |
| inherited_from | \cWidgetButton::addRequiredScript() |
stringthe script to include
\cHTML$thisadvanceID() : \cHTML
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 | \cHTMLSpan::advanceID() |
| inherited_from | \cWidgetButton::advanceID() |
\cHTML$thisappendContent(string | object | array $content) : \cHTMLDiv
| inherited_from | \cHTMLSpan::appendContent() |
|---|---|
| inherited_from | \cWidgetButton::appendContent() |
stringobjectarrayString with the content or a cHTML object to render or an array of strings / objects.
\cHTMLDiv$thisappendStyleDefinition(string $property, string $value) : \cHTML
Example usage: $element->appendStyleDefinition('margin', '5px');
| inherited_from | \cHTML::appendStyleDefinition() |
|---|---|
| inherited_from | \cHTMLSpan::appendStyleDefinition() |
| inherited_from | \cWidgetButton::appendStyleDefinition() |
stringthe property name, e.g. 'margin'
stringthe value of the property, e.g. '5px'
\cHTML$thisappendStyleDefinitions(array $styles) : \cHTML
Example usage: $element->appendStyleDefinitions(array( 'margin' => '5px', 'padding' => '0' ));
| inherited_from | \cHTML::appendStyleDefinitions() |
|---|---|
| inherited_from | \cHTMLSpan::appendStyleDefinitions() |
| inherited_from | \cWidgetButton::appendStyleDefinitions() |
stringthe styles to append
\cHTML$thisattachEventDefinition(string $name, string $event, string $code) : \cHTML
Example to attach an onClick handler: attachEventDefinition('foo', 'onClick', 'alert("foo");');
| inherited_from | \cHTML::attachEventDefinition() |
|---|---|
| inherited_from | \cHTMLSpan::attachEventDefinition() |
| inherited_from | \cWidgetButton::attachEventDefinition() |
stringDefines the name of the event
stringDefines the event (e.g. onClick)
stringDefines the code
\cHTML$thisattachStyleDefinition(string $name, string $definition) : \cHTML
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 | \cHTMLSpan::attachStyleDefinition() |
| inherited_from | \cWidgetButton::attachStyleDefinition() |
stringName for a style definition
stringDefinition for the given entity
\cHTML$thiscHTML()
| inherited_from | \cHTML::cHTML() |
|---|---|
| inherited_from | \cHTMLSpan::cHTML() |
| inherited_from | \cWidgetButton::cHTML() |
cHTMLSpan($content)
| inherited_from | \cHTMLSpan::cHTMLSpan() |
|---|---|
| inherited_from | \cWidgetButton::cHTMLSpan() |
cWidgetButton($img, $alt, $link)
| inherited_from | \cWidgetButton::cWidgetButton() |
|---|
string Image location
string Alternative text
string Link
cWidgetMultiToggleButton($img, $alt, $link)
| deprecated | 2012-08-24 Use cHTMLButton instead |
|---|
string Image location
string Alternative text
display()
| inherited_from | \cHTML::display() |
|---|---|
| inherited_from | \cHTMLSpan::display() |
| inherited_from | \cWidgetButton::display() |
fillCloseSkeleton() : string
| inherited_from | \cHTML::fillCloseSkeleton() |
|---|---|
| inherited_from | \cHTMLSpan::fillCloseSkeleton() |
| inherited_from | \cWidgetButton::fillCloseSkeleton() |
stringfilled SGML closer skeletonfillSkeleton(string $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 | \cHTMLSpan::fillSkeleton() |
| inherited_from | \cWidgetButton::fillSkeleton() |
stringAttributes to set
stringfilled SGML opener skeletongetAttribute(string $attributeName) : string
| inherited_from | \cHTML::getAttribute() |
|---|---|
| inherited_from | \cHTMLSpan::getAttribute() |
| inherited_from | \cWidgetButton::getAttribute() |
stringAttribute name
stringnull value or null if the attribute does not
existgetAttributes(bool $returnAsString) : array
| inherited_from | \cHTML::getAttributes() |
|---|---|
| inherited_from | \cHTMLSpan::getAttributes() |
| inherited_from | \cWidgetButton::getAttributes() |
boolWhether to return the attributes as string
arraystringgetID() : string
| inherited_from | \cHTML::getID() |
|---|---|
| inherited_from | \cHTMLSpan::getID() |
| inherited_from | \cWidgetButton::getID() |
stringcurrent IDremoveAttribute(string $attributeName) : \cHTML
| inherited_from | \cHTML::removeAttribute() |
|---|---|
| inherited_from | \cHTMLSpan::removeAttribute() |
| inherited_from | \cWidgetButton::removeAttribute() |
stringAttribute name
\cHTML$thisrender() : string
| deprecated | 2012-08-24 Use cHTMLButton instead |
|---|
stringGenerated markupsetAlt(string $alt) : \cHTML
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 | \cHTMLSpan::setAlt() |
| inherited_from | \cWidgetButton::setAlt() |
stringText to set as the "alt" and "title" attribute
\cHTML$thissetAttribute(string $attributeName, string $value) : \cHTML
| inherited_from | \cHTML::setAttribute() |
|---|---|
| inherited_from | \cHTMLSpan::setAttribute() |
| inherited_from | \cWidgetButton::setAttribute() |
stringName of the attribute
stringValue of the attribute
\cHTML$thissetAttributes(array $attributes) : \cHTML
| inherited_from | \cHTML::setAttributes() |
|---|---|
| inherited_from | \cHTMLSpan::setAttributes() |
| inherited_from | \cWidgetButton::setAttributes() |
arrayAssociative array with attributes
\cHTML$thissetBorder($border)
| inherited_from | \cWidgetButton::setBorder() |
|---|
integer border size
setClass(string $class) : \cHTML
| inherited_from | \cHTML::setClass() |
|---|---|
| inherited_from | \cHTMLSpan::setClass() |
| inherited_from | \cWidgetButton::setClass() |
stringText to set as the "class" attribute
\cHTML$thissetContent(string | object | array $content) : \cHTMLSpan
| inherited_from | \cHTMLSpan::setContent() |
|---|---|
| inherited_from | \cWidgetButton::setContent() |
stringobjectarrayString with the content or a cHTML object to render or an array of strings / objects.
\cHTMLSpan$thissetContentlessTag(bool $contentlessTag) : \cHTML
| inherited_from | \cHTML::setContentlessTag() |
|---|---|
| inherited_from | \cHTMLSpan::setContentlessTag() |
| inherited_from | \cWidgetButton::setContentlessTag() |
bool
\cHTML$thissetDefault($default)
Warning: This method doesn't update other buttons.
| deprecated | 2012-08-24 Use cHTMLButton instead |
|---|
boolean If true, this button is a default (e.g. pushed) button.
setEvent(string $event, string $action) : \cHTML
example: $item->setEvent('change','document.forms[0].submit');
| inherited_from | \cHTML::setEvent() |
|---|---|
| inherited_from | \cHTMLSpan::setEvent() |
| inherited_from | \cWidgetButton::setEvent() |
stringType of the event, e. g. "change" for "onchange"
stringFunction or action to call (JavaScript Code)
\cHTML$thissetGenerateXHTML(bool $value)
| inherited_from | \cHTML::setGenerateXHTML() |
|---|---|
| inherited_from | \cHTMLSpan::setGenerateXHTML() |
| inherited_from | \cWidgetButton::setGenerateXHTML() |
bool
setHint($object, $hint)
| deprecated | 2012-08-24 Use cHTMLButton instead |
|---|
string ID of the object which receives the hint
string Text to display
setHover($hover)
| inherited_from | \cWidgetButton::setHover() |
|---|
boolean True if hovering should be used
setID(string $id) : \cHTML
| inherited_from | \cHTML::setID() |
|---|---|
| inherited_from | \cHTMLSpan::setID() |
| inherited_from | \cWidgetButton::setID() |
stringText to set as the "id"
\cHTML$thissetIndent($indent)
| inherited_from | \cWidgetButton::setIndent() |
|---|
boolean True if indenting should be used
setStyle(string $style) : \cHTML
| inherited_from | \cHTML::setStyle() |
|---|---|
| inherited_from | \cHTMLSpan::setStyle() |
| inherited_from | \cWidgetButton::setStyle() |
stringText to set as the "style" attribute
\cHTML$thissetStyleDefinition(string $entity, string $definition) : \cHTML
| inherited_from | \cHTML::setStyleDefinition() |
|---|---|
| inherited_from | \cHTMLSpan::setStyleDefinition() |
| inherited_from | \cWidgetButton::setStyleDefinition() |
stringEntity to define
stringDefinition for the given entity
\cHTML$thissetTag(string $tag) : \cHTML
| inherited_from | \cHTML::setTag() |
|---|---|
| inherited_from | \cHTMLSpan::setTag() |
| inherited_from | \cWidgetButton::setTag() |
stringThe new tag
\cHTML$thistoHTML() : string
| inherited_from | \cHTML::toHTML() |
|---|---|
| inherited_from | \cHTMLSpan::toHTML() |
| inherited_from | \cWidgetButton::toHTML() |
stringGenerated markupunsetEvent(string $event) : \cHTML
example: $item->unsetEvent('change');
| inherited_from | \cHTML::unsetEvent() |
|---|---|
| inherited_from | \cHTMLSpan::unsetEvent() |
| inherited_from | \cWidgetButton::unsetEvent() |
stringType of the event
\cHTML$thisupdateAttribute(string $name, string $value) : \cHTML
| inherited_from | \cHTML::updateAttribute() |
|---|---|
| inherited_from | \cHTMLSpan::updateAttribute() |
| inherited_from | \cWidgetButton::updateAttribute() |
stringthe name of the attribute
stringthe value of the attribute with the given name
\cHTML$thisupdateAttributes(array $attributes) : \cHTML
| inherited_from | \cHTML::updateAttributes() |
|---|---|
| inherited_from | \cHTMLSpan::updateAttributes() |
| inherited_from | \cWidgetButton::updateAttributes() |
arrayAssociative array with attributes
\cHTML$this_appendContent(string | object | array $content) : \cHTML
| inherited_from | \cHTML::_appendContent() |
|---|---|
| inherited_from | \cHTMLSpan::_appendContent() |
| inherited_from | \cWidgetButton::_appendContent() |
stringobjectarrayString with the content or an object to render or an array of strings/objects.
\cHTML$this_getAttrString(array $attributes) : string
| inherited_from | \cHTML::_getAttrString() |
|---|---|
| inherited_from | \cHTMLSpan::_getAttrString() |
| inherited_from | \cWidgetButton::_getAttrString() |
arrayAssociative array with attributes
stringAttribute string in HTML format_parseAttributes(array $attributes) : array
| inherited_from | \cHTML::_parseAttributes() |
|---|---|
| inherited_from | \cHTMLSpan::_parseAttributes() |
| inherited_from | \cWidgetButton::_parseAttributes() |
arrayAssociative array with attributes
arraythe parsed attributes_setContent(string | object | array $content) : \cHTML
| inherited_from | \cHTML::_setContent() |
|---|---|
| inherited_from | \cHTMLSpan::_setContent() |
| inherited_from | \cWidgetButton::_setContent() |
stringobjectarrayString with the content or a cHTML object to render or an array of strings / objects.
\cHTML$this$_img : object
| access | private |
|---|---|
| inherited_from | \cWidgetButton::$$_img |
$_link : object
| access | private |
|---|---|
| inherited_from | \cWidgetButton::$$_link |
$_attributes : array
| inherited_from | \cHTML::$$_attributes |
|---|---|
| inherited_from | \cHTMLSpan::$$_attributes |
| inherited_from | \cWidgetButton::$$_attributes |
$_content : string
| inherited_from | \cHTML::$$_content |
|---|---|
| inherited_from | \cHTMLSpan::$$_content |
| inherited_from | \cWidgetButton::$$_content |
$_contentlessTag : bool
| inherited_from | \cHTML::$$_contentlessTag |
|---|---|
| inherited_from | \cHTMLSpan::$$_contentlessTag |
| inherited_from | \cWidgetButton::$$_contentlessTag |
$_eventDefinitions : array
| inherited_from | \cHTML::$$_eventDefinitions |
|---|---|
| inherited_from | \cHTMLSpan::$$_eventDefinitions |
| inherited_from | \cWidgetButton::$$_eventDefinitions |
$_generateXHTML : bool
| inherited_from | \cHTML::$$_generateXHTML |
|---|---|
| inherited_from | \cHTMLSpan::$$_generateXHTML |
| inherited_from | \cWidgetButton::$$_generateXHTML |
$_idCounter : int
| inherited_from | \cHTML::$$_idCounter |
|---|---|
| inherited_from | \cHTMLSpan::$$_idCounter |
| inherited_from | \cWidgetButton::$$_idCounter |
$_requiredScripts : array
| inherited_from | \cHTML::$$_requiredScripts |
|---|---|
| inherited_from | \cHTMLSpan::$$_requiredScripts |
| inherited_from | \cWidgetButton::$$_requiredScripts |
$_skeletonClose : string
| inherited_from | \cHTML::$$_skeletonClose |
|---|---|
| inherited_from | \cHTMLSpan::$$_skeletonClose |
| inherited_from | \cWidgetButton::$$_skeletonClose |
$_skeletonOpen : string
| inherited_from | \cHTML::$$_skeletonOpen |
|---|---|
| inherited_from | \cHTMLSpan::$$_skeletonOpen |
| inherited_from | \cWidgetButton::$$_skeletonOpen |
$_skeletonSingle : string
| inherited_from | \cHTML::$$_skeletonSingle |
|---|---|
| inherited_from | \cHTMLSpan::$$_skeletonSingle |
| inherited_from | \cWidgetButton::$$_skeletonSingle |
$_styleDefinitions : array
| inherited_from | \cHTML::$$_styleDefinitions |
|---|---|
| inherited_from | \cHTMLSpan::$$_styleDefinitions |
| inherited_from | \cWidgetButton::$$_styleDefinitions |
$_styleDefs : array
| inherited_from | \cHTML::$$_styleDefs |
|---|---|
| inherited_from | \cHTMLSpan::$$_styleDefs |
| inherited_from | \cWidgetButton::$$_styleDefs |
$_tag : string
| inherited_from | \cHTML::$$_tag |
|---|---|
| inherited_from | \cHTMLSpan::$$_tag |
| inherited_from | \cWidgetButton::$$_tag |