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

Public Member Functions

 init ()
 run ()

Public Attributes

const TYPE_CHECKBOX = 'checkbox'
const TYPE_CHECKBOXLIST = 'checkboxlist'
const TYPE_CHECKBOXLIST_INLINE = 'checkboxlist_inline'
const TYPE_CHECKBOXGROUPSLIST = 'checkboxgroupslist'
const TYPE_DROPDOWN = 'dropdownlist'
const TYPE_FILE = 'filefield'
const TYPE_PASSWORD = 'password'
const TYPE_PASSFIELD = 'passfield'
const TYPE_RADIO = 'radiobutton'
const TYPE_RADIOLIST = 'radiobuttonlist'
const TYPE_RADIOLIST_INLINE = 'radiobuttonlist_inline'
const TYPE_RADIOBUTTONGROUPSLIST = 'radiobuttongroupslist'
const TYPE_TEXTAREA = 'textarea'
const TYPE_TEXT = 'text'
const TYPE_MASKEDTEXT = 'maskedtextfield'
const TYPE_CAPTCHA = 'captcha'
const TYPE_UNEDITABLE = 'uneditable'
const TYPE_DATEPICKER = 'datepicker'
const TYPE_DATETIMEPICKER = 'datetimepicker'
const TYPE_REDACTOR = 'redactor'
const TYPE_MARKDOWNEDITOR = 'markdowneditor'
const TYPE_HTML5EDITOR = 'wysihtml5'
const TYPE_DATERANGEPICKER = 'daterangepicker'
const TYPE_TOGGLEBUTTON = 'togglebutton'
const TYPE_COLORPICKER = 'colorpicker'
const TYPE_CKEDITOR = 'ckeditor'
const TYPE_TIMEPICKER = 'timepicker'
const TYPE_SELECT2 = 'select2'
const TYPE_TYPEAHEAD = 'typeahead'
const TYPE_NUMBER = 'numberfield'
const TYPE_CUSTOM = 'custom'
 $form
 $label
 $type
 $data = array()
 $prependText
 $appendText
 $hintText
 $labelOptions = array()
 $prependOptions = array()
 $appendOptions = array()
 $hintOptions = array()
 $errorOptions = array()
 $captchaOptions = array()
 $enableAjaxValidation = true
 $enableClientValidation = true

Protected Member Functions

 processHtmlOptions ()
 getLabel ()
 getPrepend ()
 getAppend ()
 getAttributeId ($attribute)
 getError ()
 getHint ()
 getContainerCssClass ()
 getAddonCssClass ()
 hasAddOn ()
 checkBox ()
 toggleButton ()
 checkBoxList ()
 checkBoxListInline ()
 checkBoxGroupsList ()
 dropDownList ()
 fileField ()
 passwordField ()
 passfieldField ()
 radioButton ()
 radioButtonList ()
 radioButtonListInline ()
 radioButtonGroupsList ()
 textArea ()
 textField ()
 maskedTextField ()
 captcha ()
 uneditableField ()
 datepickerField ()
 datetimepickerField ()
 redactorJs ()
 markdownEditorJs ()
 ckEditor ()
 html5Editor ()
 dateRangeField ()
 colorpickerField ()
 timepickerField ()
 select2Field ()
 typeAheadField ()
 numberField ()
 customField ()
 getSeparatedSelectableInput ()

Detailed Description

Definition at line 17 of file TbInput.php.

Member Function Documentation

TbInput::captcha ( )
abstractprotected

.captcha()

Renders a CAPTCHA.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

TbInput::checkBox ( )
abstractprotected

.checkBox()

Renders a checkbox.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

TbInput::checkBoxGroupsList ( )
abstractprotected

.checkBoxGroupsList()

Renders a list of checkboxes using Button Groups.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

TbInput::checkBoxList ( )
abstractprotected

.checkBoxList()

Renders a list of checkboxes.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

TbInput::checkBoxListInline ( )
abstractprotected

.checkBoxListInline()

Renders a list of inline checkboxes.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

TbInput::ckEditor ( )
abstractprotected

.ckEditor()

Renders a bootstrap CKEditor wysiwyg editor.

Returns
mixed

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

TbInput::colorpickerField ( )
abstractprotected

.colorpickerField()

Renders a colorpicker field.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

TbInput::customField ( )
abstractprotected

. customField()

Renders a pre-rendered custom field.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

TbInput::datepickerField ( )
abstractprotected

.datepicketField()

Renders a datepicker field.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, TbInputVertical, and TbInputInline.

Here is the caller graph for this function:

TbInput::dateRangeField ( )
abstractprotected

.dateRangeField()

Renders a daterange picker field

Returns
mixed

Reimplemented in TbInputHorizontal, TbInputVertical, and TbInputInline.

Here is the caller graph for this function:

TbInput::datetimepickerField ( )
abstractprotected

.datetimepicketField()

Renders a datetimepicker field.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, TbInputVertical, and TbInputInline.

Here is the caller graph for this function:

TbInput::dropDownList ( )
abstractprotected

.dropDownList()

Renders a drop down list (select).

Returns
string the rendered content

Reimplemented in TbInputHorizontal, TbInputVertical, and TbInputInline.

Here is the caller graph for this function:

TbInput::fileField ( )
abstractprotected

.fileField()

Renders a file field.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

TbInput::getAddonCssClass ( )
protected

.getAddonCssClass()

Returns the input container CSS classes.

Returns
string the CSS class

Definition at line 535 of file TbInput.php.

Here is the caller graph for this function:

TbInput::getAppend ( )
protected

.getAppend()

Returns the append element for the input.

Returns
string the element

Definition at line 431 of file TbInput.php.

Here is the call graph for this function:

Here is the caller graph for this function:

TbInput::getAttributeId (   $attribute)
protected

.getAppend()

Returns the id that should be used for the specified attribute

Parameters
string$attributethe attribute
Returns
string the id

Definition at line 467 of file TbInput.php.

Here is the caller graph for this function:

TbInput::getContainerCssClass ( )
protected

.getContainerCssClass()

Returns the container CSS class for the input.

Returns
string the CSS class

Definition at line 523 of file TbInput.php.

Here is the caller graph for this function:

TbInput::getError ( )
protected

.getError()

Returns the error text for the input.

Returns
string the error text

Definition at line 481 of file TbInput.php.

Here is the caller graph for this function:

TbInput::getHint ( )
protected

.getHint()

Returns the hint text for the input.

Returns
string the hint text

Definition at line 499 of file TbInput.php.

Here is the caller graph for this function:

TbInput::getLabel ( )
protected

.getLabel()

Returns the label for the input.

Returns
string the label

Reimplemented in TbInputHorizontal.

Definition at line 379 of file TbInput.php.

Here is the caller graph for this function:

TbInput::getPrepend ( )
protected

.getPrepend()

Returns the prepend element for the input.

Returns
string the element

Definition at line 397 of file TbInput.php.

Here is the call graph for this function:

Here is the caller graph for this function:

TbInput::getSeparatedSelectableInput ( )
protected

Obtain separately hidden and visible field

See Also
TbInputVertical::checkBox
TbInputHorizontal::checkBox
TbInputVertical::radioButton
TbInputHorizontal::radioButton
Exceptions
CException
Returns
array

Definition at line 874 of file TbInput.php.

Here is the caller graph for this function:

TbInput::hasAddOn ( )
protected

.hasAddOn()

Returns whether the input has an add-on (prepend and/or append).

Returns
boolean the result

Definition at line 555 of file TbInput.php.

Here is the caller graph for this function:

TbInput::html5Editor ( )
abstractprotected

.html5Editor()

Renders a bootstrap wysihtml5 editor.

Returns
mixed

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

TbInput::init ( )

.init()

Initializes the widget.

Exceptions
CExceptionif the widget could not be initialized.

Definition at line 141 of file TbInput.php.

Here is the call graph for this function:

TbInput::markdownEditorJs ( )
abstractprotected

.markdownEditorJs()

Renders a markdownEditorJS wysiwyg field.

Returns
mixed

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

TbInput::maskedTextField ( )
abstractprotected

.maskedTextField()

Renders a masked text field.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, TbInputVertical, and TbInputInline.

Here is the caller graph for this function:

TbInput::numberField ( )
abstractprotected

. numberField()

Renders a number field.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

TbInput::passfieldField ( )
abstractprotected

.passfieldField()

Renders a Pass*Field field.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

TbInput::passwordField ( )
abstractprotected

.passwordField()

Renders a password field.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, TbInputVertical, and TbInputInline.

Here is the caller graph for this function:

TbInput::processHtmlOptions ( )
protected

.processHtmlOptions()

Processes the html options.

Definition at line 172 of file TbInput.php.

Here is the caller graph for this function:

TbInput::radioButton ( )
abstractprotected

.radioButton()

Renders a radio button.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

TbInput::radioButtonGroupsList ( )
abstractprotected

.radioButtonGroupsList()

Renders a list of radio buttons using Button Groups.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

TbInput::radioButtonList ( )
abstractprotected

.radioButtonList()

Renders a list of radio buttons.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

TbInput::radioButtonListInline ( )
abstractprotected

.radioButtonListInline()

Renders a list of inline radio buttons.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

TbInput::redactorJs ( )
abstractprotected

.redactorJs()

Renders a redactorJS wysiwyg field.

Returns
mixed

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

TbInput::run ( )

.run()

Runs the widget.

Exceptions
CExceptionif the widget type is invalid.

Reimplemented in TbInputHorizontal.

Definition at line 239 of file TbInput.php.

Here is the call graph for this function:

TbInput::select2Field ( )
abstractprotected

.select2Field()

Renders a select2 field.

Returns
mixed

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

TbInput::textArea ( )
abstractprotected

.textArea()

Renders a textarea.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, TbInputVertical, and TbInputInline.

Here is the caller graph for this function:

TbInput::textField ( )
abstractprotected

.textField()

Renders a text field.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, TbInputVertical, and TbInputInline.

Here is the caller graph for this function:

TbInput::timepickerField ( )
abstractprotected

.timepickerField()

Renders a timepicker field.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

TbInput::toggleButton ( )
abstractprotected

.toggleButton()

Renders a toggle button.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

TbInput::typeAheadField ( )
abstractprotected

Renders a typeAhead field.

Returns
mixed

Reimplemented in TbInputHorizontal, TbInputVertical, and TbInputInline.

Here is the caller graph for this function:

TbInput::uneditableField ( )
abstractprotected

.uneditableField()

Renders an uneditable field.

Returns
string the rendered content

Reimplemented in TbInputHorizontal, and TbInputVertical.

Here is the caller graph for this function:

Member Data Documentation

TbInput::$appendOptions = array()

Definition at line 103 of file TbInput.php.

TbInput::$appendText

Definition at line 83 of file TbInput.php.

TbInput::$captchaOptions = array()

Definition at line 118 of file TbInput.php.

TbInput::$data = array()

Definition at line 73 of file TbInput.php.

TbInput::$enableAjaxValidation = true

Definition at line 125 of file TbInput.php.

TbInput::$enableClientValidation = true

Definition at line 132 of file TbInput.php.

TbInput::$errorOptions = array()

Definition at line 113 of file TbInput.php.

TbInput::$form

Definition at line 55 of file TbInput.php.

TbInput::$hintOptions = array()

Definition at line 108 of file TbInput.php.

TbInput::$hintText

Definition at line 88 of file TbInput.php.

TbInput::$label

Definition at line 60 of file TbInput.php.

TbInput::$labelOptions = array()

Definition at line 93 of file TbInput.php.

TbInput::$prependOptions = array()

Definition at line 98 of file TbInput.php.

TbInput::$prependText

Definition at line 78 of file TbInput.php.

TbInput::$type

Definition at line 68 of file TbInput.php.

const TbInput::TYPE_CAPTCHA = 'captcha'

Definition at line 35 of file TbInput.php.

const TbInput::TYPE_CHECKBOX = 'checkbox'

Definition at line 20 of file TbInput.php.

const TbInput::TYPE_CHECKBOXGROUPSLIST = 'checkboxgroupslist'

Definition at line 23 of file TbInput.php.

const TbInput::TYPE_CHECKBOXLIST = 'checkboxlist'

Definition at line 21 of file TbInput.php.

const TbInput::TYPE_CHECKBOXLIST_INLINE = 'checkboxlist_inline'

Definition at line 22 of file TbInput.php.

const TbInput::TYPE_CKEDITOR = 'ckeditor'

Definition at line 45 of file TbInput.php.

const TbInput::TYPE_COLORPICKER = 'colorpicker'

Definition at line 44 of file TbInput.php.

const TbInput::TYPE_CUSTOM = 'custom'

Definition at line 50 of file TbInput.php.

const TbInput::TYPE_DATEPICKER = 'datepicker'

Definition at line 37 of file TbInput.php.

const TbInput::TYPE_DATERANGEPICKER = 'daterangepicker'

Definition at line 42 of file TbInput.php.

const TbInput::TYPE_DATETIMEPICKER = 'datetimepicker'

Definition at line 38 of file TbInput.php.

const TbInput::TYPE_DROPDOWN = 'dropdownlist'

Definition at line 24 of file TbInput.php.

const TbInput::TYPE_FILE = 'filefield'

Definition at line 25 of file TbInput.php.

const TbInput::TYPE_HTML5EDITOR = 'wysihtml5'

Definition at line 41 of file TbInput.php.

const TbInput::TYPE_MARKDOWNEDITOR = 'markdowneditor'

Definition at line 40 of file TbInput.php.

const TbInput::TYPE_MASKEDTEXT = 'maskedtextfield'

Definition at line 34 of file TbInput.php.

const TbInput::TYPE_NUMBER = 'numberfield'

Definition at line 49 of file TbInput.php.

const TbInput::TYPE_PASSFIELD = 'passfield'

Definition at line 27 of file TbInput.php.

const TbInput::TYPE_PASSWORD = 'password'

Definition at line 26 of file TbInput.php.

const TbInput::TYPE_RADIO = 'radiobutton'

Definition at line 28 of file TbInput.php.

const TbInput::TYPE_RADIOBUTTONGROUPSLIST = 'radiobuttongroupslist'

Definition at line 31 of file TbInput.php.

const TbInput::TYPE_RADIOLIST = 'radiobuttonlist'

Definition at line 29 of file TbInput.php.

const TbInput::TYPE_RADIOLIST_INLINE = 'radiobuttonlist_inline'

Definition at line 30 of file TbInput.php.

const TbInput::TYPE_REDACTOR = 'redactor'

Definition at line 39 of file TbInput.php.

const TbInput::TYPE_SELECT2 = 'select2'

Definition at line 47 of file TbInput.php.

const TbInput::TYPE_TEXT = 'text'

Definition at line 33 of file TbInput.php.

const TbInput::TYPE_TEXTAREA = 'textarea'

Definition at line 32 of file TbInput.php.

const TbInput::TYPE_TIMEPICKER = 'timepicker'

Definition at line 46 of file TbInput.php.

const TbInput::TYPE_TOGGLEBUTTON = 'togglebutton'

Definition at line 43 of file TbInput.php.

const TbInput::TYPE_TYPEAHEAD = 'typeahead'

Definition at line 48 of file TbInput.php.

const TbInput::TYPE_UNEDITABLE = 'uneditable'

Definition at line 36 of file TbInput.php.


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