PHP Класс TbForm

Наследование: extends CForm
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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'.

Открытые методы

Метод Описание
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 .

Описание методов

createForm() публичный статический Метод

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
Результат mixed

renderButtons() публичный Метод

Render the buttons as TbFormButtonElement
public renderButtons ( ) : string
Результат string

renderElement() публичный Метод

.."
public renderElement ( mixed $element ) : string
$element mixed
Результат string

Описание свойств

$buttonElementClass публичное свойство

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

$inputElementClass публичное свойство

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