PHP 클래스 TbInput

Used for rendering inputs according to Bootstrap standards.
상속: extends CInputWidget
파일 보기 프로젝트 열기: yinhe/yincart 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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.

공개 메소드들

메소드 설명
init ( ) ### .init()
run ( ) ### .run()

보호된 메소드들

메소드 설명
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()

메소드 상세

captcha() 추상적인 보호된 메소드

Renders a CAPTCHA.
abstract protected captcha ( ) : string
리턴 string the rendered content

checkBox() 추상적인 보호된 메소드

Renders a checkbox.
abstract protected checkBox ( ) : string
리턴 string the rendered content

checkBoxGroupsList() 추상적인 보호된 메소드

Renders a list of checkboxes using Button Groups.
abstract protected checkBoxGroupsList ( ) : string
리턴 string the rendered content

checkBoxList() 추상적인 보호된 메소드

Renders a list of checkboxes.
abstract protected checkBoxList ( ) : string
리턴 string the rendered content

checkBoxListInline() 추상적인 보호된 메소드

Renders a list of inline checkboxes.
abstract protected checkBoxListInline ( ) : string
리턴 string the rendered content

ckEditor() 추상적인 보호된 메소드

Renders a bootstrap CKEditor wysiwyg editor.
abstract protected ckEditor ( ) : mixed
리턴 mixed

colorpickerField() 추상적인 보호된 메소드

Renders a colorpicker field.
abstract protected colorpickerField ( ) : string
리턴 string the rendered content

dateRangeField() 추상적인 보호된 메소드

Renders a daterange picker field
abstract protected dateRangeField ( ) : mixed
리턴 mixed

datepickerField() 추상적인 보호된 메소드

Renders a datepicker field.
abstract protected datepickerField ( ) : string
리턴 string the rendered content

dropDownList() 추상적인 보호된 메소드

Renders a drop down list (select).
abstract protected dropDownList ( ) : string
리턴 string the rendered content

fileField() 추상적인 보호된 메소드

Renders a file field.
abstract protected fileField ( ) : string
리턴 string the rendered content

getAddonCssClass() 보호된 메소드

Returns the input container CSS classes.
protected getAddonCssClass ( ) : string
리턴 string the CSS class

getAppend() 보호된 메소드

Returns the append element for the input.
protected getAppend ( ) : string
리턴 string the element

getAttributeId() 보호된 메소드

Returns the id that should be used for the specified attribute
protected getAttributeId ( string $attribute ) : string
$attribute string the attribute
리턴 string the id

getContainerCssClass() 보호된 메소드

Returns the container CSS class for the input.
protected getContainerCssClass ( ) : string
리턴 string the CSS class

getError() 보호된 메소드

Returns the error text for the input.
protected getError ( ) : string
리턴 string the error text

getHint() 보호된 메소드

Returns the hint text for the input.
protected getHint ( ) : string
리턴 string the hint text

getLabel() 보호된 메소드

Returns the label for the input.
protected getLabel ( ) : string
리턴 string the label

getPrepend() 보호된 메소드

Returns the prepend element for the input.
protected getPrepend ( ) : string
리턴 string the element

hasAddOn() 보호된 메소드

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

html5Editor() 추상적인 보호된 메소드

Renders a bootstrap wysihtml5 editor.
abstract protected html5Editor ( ) : mixed
리턴 mixed

init() 공개 메소드

Initializes the widget.
public init ( )

markdownEditorJs() 추상적인 보호된 메소드

Renders a markdownEditorJS wysiwyg field.
abstract protected markdownEditorJs ( ) : mixed
리턴 mixed

maskedTextField() 추상적인 보호된 메소드

Renders a masked text field.
abstract protected maskedTextField ( ) : string
리턴 string the rendered content

numberField() 추상적인 보호된 메소드

Renders a number field.
abstract protected numberField ( ) : string
리턴 string the rendered content

passwordField() 추상적인 보호된 메소드

Renders a password field.
abstract protected passwordField ( ) : string
리턴 string the rendered content

processHtmlOptions() 보호된 메소드

Processes the html options.
protected processHtmlOptions ( )

radioButton() 추상적인 보호된 메소드

Renders a radio button.
abstract protected radioButton ( ) : string
리턴 string the rendered content

radioButtonGroupsList() 추상적인 보호된 메소드

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

radioButtonList() 추상적인 보호된 메소드

Renders a list of radio buttons.
abstract protected radioButtonList ( ) : string
리턴 string the rendered content

radioButtonListInline() 추상적인 보호된 메소드

Renders a list of inline radio buttons.
abstract protected radioButtonListInline ( ) : string
리턴 string the rendered content

redactorJs() 추상적인 보호된 메소드

Renders a redactorJS wysiwyg field.
abstract protected redactorJs ( ) : mixed
리턴 mixed

run() 공개 메소드

Runs the widget.
public run ( )

select2Field() 추상적인 보호된 메소드

Renders a select2 field.
abstract protected select2Field ( ) : mixed
리턴 mixed

textArea() 추상적인 보호된 메소드

Renders a textarea.
abstract protected textArea ( ) : string
리턴 string the rendered content

textField() 추상적인 보호된 메소드

Renders a text field.
abstract protected textField ( ) : string
리턴 string the rendered content

timepickerField() 추상적인 보호된 메소드

Renders a timepicker field.
abstract protected timepickerField ( ) : string
리턴 string the rendered content

toggleButton() 추상적인 보호된 메소드

Renders a toggle button.
abstract protected toggleButton ( ) : string
리턴 string the rendered content

typeAheadField() 추상적인 보호된 메소드

Renders a typeAhead field.
abstract protected typeAheadField ( ) : mixed
리턴 mixed

uneditableField() 추상적인 보호된 메소드

Renders an uneditable field.
abstract protected uneditableField ( ) : string
리턴 string the rendered content

프로퍼티 상세

$appendOptions 공개적으로 프로퍼티

append html attributes.
public $appendOptions

$appendText 공개적으로 프로퍼티

text to append.
public $appendText

$captchaOptions 공개적으로 프로퍼티

captcha html attributes.
public $captchaOptions

$data 공개적으로 프로퍼티

the data for list inputs.
public $data

$enableAjaxValidation 공개적으로 프로퍼티

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

$enableClientValidation 공개적으로 프로퍼티

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

$errorOptions 공개적으로 프로퍼티

error html attributes.
public $errorOptions

$form 공개적으로 프로퍼티

the associated form widget.
public $form

$hintOptions 공개적으로 프로퍼티

hint html attributes.
public $hintOptions

$hintText 공개적으로 프로퍼티

the hint text.
public $hintText

$label 공개적으로 프로퍼티

the input label text.
public $label

$labelOptions 공개적으로 프로퍼티

label html attributes.
public $labelOptions

$prependOptions 공개적으로 프로퍼티

prepend html attributes.
public $prependOptions

$prependText 공개적으로 프로퍼티

text to prepend.
public $prependText

$type 공개적으로 프로퍼티

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