HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
TbButton Class Reference
Inheritance diagram for TbButton:
Collaboration diagram for TbButton:

Public Member Functions

 init ()
 run ()

Public Attributes

const BUTTON_LINK = 'link'
const BUTTON_BUTTON = 'button'
const BUTTON_SUBMIT = 'submit'
const BUTTON_SUBMITLINK = 'submitLink'
const BUTTON_RESET = 'reset'
const BUTTON_AJAXLINK = 'ajaxLink'
const BUTTON_AJAXBUTTON = 'ajaxButton'
const BUTTON_AJAXSUBMIT = 'ajaxSubmit'
const BUTTON_INPUTBUTTON = 'inputButton'
const BUTTON_INPUTSUBMIT = 'inputSubmit'
const BUTTON_TOGGLE_RADIO = 'radio'
const BUTTON_TOGGLE_CHECKBOX = 'checkbox'
const CTX_LINK = 'link'
const CTX_LINK_CLASS = 'link'
const SIZE_LARGE = 'large'
const SIZE_DEFAULT = 'default'
const SIZE_SMALL = 'small'
const SIZE_EXTRA_SMALL = 'extra_small'
 $buttonType = self::BUTTON_BUTTON
 $size
 $icon
 $label
 $url
 $block = false
 $active = false
 $disabled = false
 $encodeLabel = true
 $toggle
 $loadingText
 $completeText
 $items
 $htmlOptions = array()
 $ajaxOptions = array()
 $dropdownOptions = array()
 $visible = true
 $tooltip = false
 $tooltipOptions = array()
- Public Attributes inherited from TbWidget
const CTX_DEFAULT = 'default'
const CTX_PRIMARY = 'primary'
const CTX_SUCCESS = 'success'
const CTX_INFO = 'info'
const CTX_WARNING = 'warning'
const CTX_DANGER = 'danger'
const CTX_DEFAULT_CLASS = 'default'
const CTX_PRIMARY_CLASS = 'primary'
const CTX_SUCCESS_CLASS = 'success'
const CTX_INFO_CLASS = 'info'
const CTX_WARNING_CLASS = 'warning'
const CTX_DANGER_CLASS = 'danger'
 $context = self::CTX_DEFAULT

Protected Member Functions

 createButton ()
 createToggleButton ($toggleType)
 hasDropdown ()
- Protected Member Functions inherited from TbWidget
 isValidContext ($cotext=false)
 getContextClass ($context=false)

Static Protected Attributes

static $sizeClasses

Additional Inherited Members

- Static Protected Member Functions inherited from TbWidget
static addCssClass (&$htmlOptions, $class)

Detailed Description

Definition at line 21 of file TbButton.php.

Member Function Documentation

TbButton::createButton ( )
protected

.createButton()

Creates the button element.

Returns
string the created button.

Definition at line 318 of file TbButton.php.

Here is the call graph for this function:

Here is the caller graph for this function:

TbButton::createToggleButton (   $toggleType)
protected

Definition at line 369 of file TbButton.php.

Here is the caller graph for this function:

TbButton::hasDropdown ( )
protected

.hasDropdown()

Returns whether the button has a dropdown.

Returns
bool the result.

Definition at line 386 of file TbButton.php.

Here is the caller graph for this function:

TbButton::init ( )

.init()

Initializes the widget.

Encode delay option http://getbootstrap.com/2.3.2/javascript.html#tooltips

Definition at line 161 of file TbButton.php.

Here is the call graph for this function:

TbButton::run ( )

.run()

Runs the widget.

Definition at line 288 of file TbButton.php.

Here is the call graph for this function:

Member Data Documentation

TbButton::$active = false

Definition at line 88 of file TbButton.php.

TbButton::$ajaxOptions = array()

Definition at line 128 of file TbButton.php.

TbButton::$block = false

Definition at line 83 of file TbButton.php.

TbButton::$buttonType = self::BUTTON_BUTTON

Definition at line 57 of file TbButton.php.

TbButton::$completeText

Definition at line 113 of file TbButton.php.

TbButton::$disabled = false

Definition at line 93 of file TbButton.php.

TbButton::$dropdownOptions = array()

Definition at line 134 of file TbButton.php.

TbButton::$encodeLabel = true

Definition at line 98 of file TbButton.php.

TbButton::$htmlOptions = array()

Definition at line 123 of file TbButton.php.

TbButton::$icon

Definition at line 68 of file TbButton.php.

TbButton::$items

Definition at line 118 of file TbButton.php.

TbButton::$label

Definition at line 73 of file TbButton.php.

TbButton::$loadingText

Definition at line 108 of file TbButton.php.

TbButton::$size

Definition at line 63 of file TbButton.php.

TbButton::$sizeClasses
staticprotected
Initial value:
[
self::SIZE_LARGE => 'btn-lg'

Definition at line 46 of file TbButton.php.

TbButton::$toggle

Definition at line 103 of file TbButton.php.

TbButton::$tooltip = false

Definition at line 147 of file TbButton.php.

TbButton::$tooltipOptions = array()

Definition at line 154 of file TbButton.php.

TbButton::$url

Definition at line 78 of file TbButton.php.

TbButton::$visible = true

Definition at line 140 of file TbButton.php.

const TbButton::BUTTON_AJAXBUTTON = 'ajaxButton'

Definition at line 30 of file TbButton.php.

const TbButton::BUTTON_AJAXLINK = 'ajaxLink'

Definition at line 29 of file TbButton.php.

const TbButton::BUTTON_AJAXSUBMIT = 'ajaxSubmit'

Definition at line 31 of file TbButton.php.

const TbButton::BUTTON_BUTTON = 'button'

Definition at line 25 of file TbButton.php.

const TbButton::BUTTON_INPUTBUTTON = 'inputButton'

Definition at line 32 of file TbButton.php.

const TbButton::BUTTON_INPUTSUBMIT = 'inputSubmit'

Definition at line 33 of file TbButton.php.

const TbButton::BUTTON_LINK = 'link'

Definition at line 24 of file TbButton.php.

const TbButton::BUTTON_RESET = 'reset'

Definition at line 28 of file TbButton.php.

const TbButton::BUTTON_SUBMIT = 'submit'

Definition at line 26 of file TbButton.php.

const TbButton::BUTTON_SUBMITLINK = 'submitLink'

Definition at line 27 of file TbButton.php.

const TbButton::BUTTON_TOGGLE_CHECKBOX = 'checkbox'

Definition at line 35 of file TbButton.php.

const TbButton::BUTTON_TOGGLE_RADIO = 'radio'

Definition at line 34 of file TbButton.php.

const TbButton::CTX_LINK = 'link'

Definition at line 37 of file TbButton.php.

const TbButton::CTX_LINK_CLASS = 'link'

Definition at line 38 of file TbButton.php.

const TbButton::SIZE_DEFAULT = 'default'

Definition at line 42 of file TbButton.php.

const TbButton::SIZE_EXTRA_SMALL = 'extra_small'

Definition at line 44 of file TbButton.php.

const TbButton::SIZE_LARGE = 'large'

Definition at line 41 of file TbButton.php.

const TbButton::SIZE_SMALL = 'small'

Definition at line 43 of file TbButton.php.


The documentation for this class was generated from the following file: