PHP Class TbFormInputElement

Inheritance: extends CFormElement
Show file Open project: yinhe/yincart

Public Properties

Property Type Description
$htmlOptionTypes map the htmlOptions input type: not supported by YiiBooster yet
$tbActiveFormMethods Map element->type to TbActiveForm method
$wrapBootstrapTags boolean Wrap control-group/controls tags around custom types (CInputWidget or CJuiInputWidget)

Public Methods

Method Description
render ( ) Render this element using the mapped method from $tbActiveFormMethods
renderControlLabel ( ) Render the label with class="control-label" for custom types

Protected Methods

Method Description
getActiveFormWidget ( ) : boolean Get the TbActiveForm instance
prepareHtmlOptions ( array $options ) : mixed Prepare the htmlOptions before calling the TbActiveForm method

Method Details

getActiveFormWidget() protected method

Get the TbActiveForm instance
protected getActiveFormWidget ( ) : boolean
return boolean

prepareHtmlOptions() protected method

Prepare the htmlOptions before calling the TbActiveForm method
protected prepareHtmlOptions ( array $options ) : mixed
$options array
return mixed

render() public method

Render this element using the mapped method from $tbActiveFormMethods
public render ( )

renderControlLabel() public method

Render the label with class="control-label" for custom types
public renderControlLabel ( )

Property Details

$htmlOptionTypes public static property

map the htmlOptions input type: not supported by YiiBooster yet
public static $htmlOptionTypes

$tbActiveFormMethods public static property

Map element->type to TbActiveForm method
public static $tbActiveFormMethods

$wrapBootstrapTags public property

Wrap control-group/controls tags around custom types (CInputWidget or CJuiInputWidget)
public bool $wrapBootstrapTags
return boolean