PHP Class TbInput

Used for rendering inputs according to Bootstrap standards.
Inheritance: extends CInputWidget
Afficher le fichier Open project: yinhe/yincart Class Usage Examples

Méthodes publiques

Свойство Type Description
$appendOptions append html attributes.
$appendText text to append.
$captchaOptions captcha html attributes.
$data the data for list inputs.
$enableAjaxValidation This property allows you to disable AJAX valiadtion for certain fields within a form.
$enableClientValidation This property allows you to disable client valiadtion for certain fields within a form.
$errorOptions error html attributes.
$form the associated form widget.
$hintOptions hint html attributes.
$hintText the hint text.
$label the input label text.
$labelOptions label html attributes.
$prependOptions prepend html attributes.
$prependText text to prepend.
$type the input type. Following types are supported: checkbox, checkboxlist, dropdownlist, filefield, password, radiobutton, radiobuttonlist, textarea, textfield, captcha and uneditable.

Méthodes publiques

Méthode Description
init ( ) ### .init()
run ( ) ### .run()

Méthodes protégées

Méthode Description
captcha ( ) : string ### .captcha()
checkBox ( ) : string ### .checkBox()
checkBoxGroupsList ( ) : string ### .checkBoxGroupsList()
checkBoxList ( ) : string ### .checkBoxList()
checkBoxListInline ( ) : string ### .checkBoxListInline()
ckEditor ( ) : mixed ### .ckEditor()
colorpickerField ( ) : string ### .colorpickerField()
dateRangeField ( ) : mixed ### .dateRangeField()
datepickerField ( ) : string ### .datepicketField()
dropDownList ( ) : string ### .dropDownList()
fileField ( ) : string ### .fileField()
getAddonCssClass ( ) : string ### .getAddonCssClass()
getAppend ( ) : string ### .getAppend()
getAttributeId ( string $attribute ) : string ### .getAppend()
getContainerCssClass ( ) : string ### .getContainerCssClass()
getError ( ) : string ### .getError()
getHint ( ) : string ### .getHint()
getLabel ( ) : string ### .getLabel()
getPrepend ( ) : string ### .getPrepend()
hasAddOn ( ) : boolean ### .hasAddOn()
html5Editor ( ) : mixed ### .html5Editor()
markdownEditorJs ( ) : mixed ### .markdownEditorJs()
maskedTextField ( ) : string ### .maskedTextField()
numberField ( ) : string ### . numberField()
passwordField ( ) : string ### .passwordField()
processHtmlOptions ( ) ### .processHtmlOptions()
radioButton ( ) : string ### .radioButton()
radioButtonGroupsList ( ) : string ### .radioButtonGroupsList()
radioButtonList ( ) : string ### .radioButtonList()
radioButtonListInline ( ) : string ### .radioButtonListInline()
redactorJs ( ) : mixed ### .redactorJs()
select2Field ( ) : mixed ### .select2Field()
textArea ( ) : string ### .textArea()
textField ( ) : string ### .textField()
timepickerField ( ) : string ### .timepickerField()
toggleButton ( ) : string ### .toggleButton()
typeAheadField ( ) : mixed Renders a typeAhead field.
uneditableField ( ) : string ### .uneditableField()

Method Details

captcha() abstract protected méthode

Renders a CAPTCHA.
abstract protected captcha ( ) : string
Résultat string the rendered content

checkBox() abstract protected méthode

Renders a checkbox.
abstract protected checkBox ( ) : string
Résultat string the rendered content

checkBoxGroupsList() abstract protected méthode

Renders a list of checkboxes using Button Groups.
abstract protected checkBoxGroupsList ( ) : string
Résultat string the rendered content

checkBoxList() abstract protected méthode

Renders a list of checkboxes.
abstract protected checkBoxList ( ) : string
Résultat string the rendered content

checkBoxListInline() abstract protected méthode

Renders a list of inline checkboxes.
abstract protected checkBoxListInline ( ) : string
Résultat string the rendered content

ckEditor() abstract protected méthode

Renders a bootstrap CKEditor wysiwyg editor.
abstract protected ckEditor ( ) : mixed
Résultat mixed

colorpickerField() abstract protected méthode

Renders a colorpicker field.
abstract protected colorpickerField ( ) : string
Résultat string the rendered content

dateRangeField() abstract protected méthode

Renders a daterange picker field
abstract protected dateRangeField ( ) : mixed
Résultat mixed

datepickerField() abstract protected méthode

Renders a datepicker field.
abstract protected datepickerField ( ) : string
Résultat string the rendered content

dropDownList() abstract protected méthode

Renders a drop down list (select).
abstract protected dropDownList ( ) : string
Résultat string the rendered content

fileField() abstract protected méthode

Renders a file field.
abstract protected fileField ( ) : string
Résultat string the rendered content

getAddonCssClass() protected méthode

Returns the input container CSS classes.
protected getAddonCssClass ( ) : string
Résultat string the CSS class

getAppend() protected méthode

Returns the append element for the input.
protected getAppend ( ) : string
Résultat string the element

getAttributeId() protected méthode

Returns the id that should be used for the specified attribute
protected getAttributeId ( string $attribute ) : string
$attribute string the attribute
Résultat string the id

getContainerCssClass() protected méthode

Returns the container CSS class for the input.
protected getContainerCssClass ( ) : string
Résultat string the CSS class

getError() protected méthode

Returns the error text for the input.
protected getError ( ) : string
Résultat string the error text

getHint() protected méthode

Returns the hint text for the input.
protected getHint ( ) : string
Résultat string the hint text

getLabel() protected méthode

Returns the label for the input.
protected getLabel ( ) : string
Résultat string the label

getPrepend() protected méthode

Returns the prepend element for the input.
protected getPrepend ( ) : string
Résultat string the element

hasAddOn() protected méthode

Returns whether the input has an add-on (prepend and/or append).
protected hasAddOn ( ) : boolean
Résultat boolean the result

html5Editor() abstract protected méthode

Renders a bootstrap wysihtml5 editor.
abstract protected html5Editor ( ) : mixed
Résultat mixed

init() public méthode

Initializes the widget.
public init ( )

markdownEditorJs() abstract protected méthode

Renders a markdownEditorJS wysiwyg field.
abstract protected markdownEditorJs ( ) : mixed
Résultat mixed

maskedTextField() abstract protected méthode

Renders a masked text field.
abstract protected maskedTextField ( ) : string
Résultat string the rendered content

numberField() abstract protected méthode

Renders a number field.
abstract protected numberField ( ) : string
Résultat string the rendered content

passwordField() abstract protected méthode

Renders a password field.
abstract protected passwordField ( ) : string
Résultat string the rendered content

processHtmlOptions() protected méthode

Processes the html options.
protected processHtmlOptions ( )

radioButton() abstract protected méthode

Renders a radio button.
abstract protected radioButton ( ) : string
Résultat string the rendered content

radioButtonGroupsList() abstract protected méthode

Renders a list of radio buttons using Button Groups.
abstract protected radioButtonGroupsList ( ) : string
Résultat string the rendered content

radioButtonList() abstract protected méthode

Renders a list of radio buttons.
abstract protected radioButtonList ( ) : string
Résultat string the rendered content

radioButtonListInline() abstract protected méthode

Renders a list of inline radio buttons.
abstract protected radioButtonListInline ( ) : string
Résultat string the rendered content

redactorJs() abstract protected méthode

Renders a redactorJS wysiwyg field.
abstract protected redactorJs ( ) : mixed
Résultat mixed

run() public méthode

Runs the widget.
public run ( )

select2Field() abstract protected méthode

Renders a select2 field.
abstract protected select2Field ( ) : mixed
Résultat mixed

textArea() abstract protected méthode

Renders a textarea.
abstract protected textArea ( ) : string
Résultat string the rendered content

textField() abstract protected méthode

Renders a text field.
abstract protected textField ( ) : string
Résultat string the rendered content

timepickerField() abstract protected méthode

Renders a timepicker field.
abstract protected timepickerField ( ) : string
Résultat string the rendered content

toggleButton() abstract protected méthode

Renders a toggle button.
abstract protected toggleButton ( ) : string
Résultat string the rendered content

typeAheadField() abstract protected méthode

Renders a typeAhead field.
abstract protected typeAheadField ( ) : mixed
Résultat mixed

uneditableField() abstract protected méthode

Renders an uneditable field.
abstract protected uneditableField ( ) : string
Résultat string the rendered content

Property Details

$appendOptions public_oe property

append html attributes.
public $appendOptions

$appendText public_oe property

text to append.
public $appendText

$captchaOptions public_oe property

captcha html attributes.
public $captchaOptions

$data public_oe property

the data for list inputs.
public $data

$enableAjaxValidation public_oe property

This property allows you to disable AJAX valiadtion for certain fields within a form.
See also: http://www.yiiframework.com/doc/api/1.1/CActiveForm#error-detail
public $enableAjaxValidation

$enableClientValidation public_oe property

This property allows you to disable client valiadtion for certain fields within a form.
See also: http://www.yiiframework.com/doc/api/1.1/CActiveForm#error-detail
public $enableClientValidation

$errorOptions public_oe property

error html attributes.
public $errorOptions

$form public_oe property

the associated form widget.
public $form

$hintOptions public_oe property

hint html attributes.
public $hintOptions

$hintText public_oe property

the hint text.
public $hintText

$label public_oe property

the input label text.
public $label

$labelOptions public_oe property

label html attributes.
public $labelOptions

$prependOptions public_oe property

prepend html attributes.
public $prependOptions

$prependText public_oe property

text to prepend.
public $prependText

$type public_oe property

the input type. Following types are supported: checkbox, checkboxlist, dropdownlist, filefield, password, radiobutton, radiobuttonlist, textarea, textfield, captcha and uneditable.
public $type