PHP Class TbForm

Inheritance: extends CForm
Show file Open project: yinhe/yincart Class Usage Examples

Public Properties

Property Type Description
$buttonElementClass the name of the class for representing a form button element. Defaults to 'CFormButtonElement'.
$inputElementClass the name of the class for representing a form input element. Defaults to 'TbFormInputElement'.

Public Methods

Method Description
createForm ( array $config, $parent, array $options = [], CModel $model = null ) : mixed Create the TbForm and assign the TbActiveForm with options as activeForm
renderButtons ( ) : string Render the buttons as TbFormButtonElement
renderElement ( mixed $element ) : string Override parent Remove wrapper with class="row .

Method Details

createForm() public static method

Create the TbForm and assign the TbActiveForm with options as activeForm
public static createForm ( array $config, $parent, array $options = [], CModel $model = null ) : mixed
$config array
$parent
$options array
$model CModel
return mixed

renderButtons() public method

Render the buttons as TbFormButtonElement
public renderButtons ( ) : string
return string

renderElement() public method

.."
public renderElement ( mixed $element ) : string
$element mixed
return string

Property Details

$buttonElementClass public property

the name of the class for representing a form button element. Defaults to 'CFormButtonElement'.
public $buttonElementClass

$inputElementClass public property

the name of the class for representing a form input element. Defaults to 'TbFormInputElement'.
public $inputElementClass