PHP Class TbForm

Inheritance: extends CForm
Afficher le fichier Open project: yinhe/yincart Class Usage Examples

Méthodes publiques

Свойство 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'.

Méthodes publiques

Méthode 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 méthode

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
Résultat mixed

renderButtons() public méthode

Render the buttons as TbFormButtonElement
public renderButtons ( ) : string
Résultat string

renderElement() public méthode

.."
public renderElement ( mixed $element ) : string
$element mixed
Résultat string

Property Details

$buttonElementClass public_oe property

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

$inputElementClass public_oe property

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