PHP Класс WhEditableField

Makes editable single attribute of model.
Автор: Antonio Ramirez ([email protected])
Автор: Vitaliy Potapov ([email protected])
Наследование: extends WhEditable
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$attribute attribute name.
$model ActiveRecord to be updated.

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

Метод Описание
getSelector ( ) : null | string Returns selector
init ( ) initialization of widget
isMongo ( mixed $model ) : boolean Checks is model is instance of mongo model see: http://www.yiiframework.com/extension/yiimongodbsuite
resolveModels ( mixed $model, mixed $attribute ) : array Resolves model and returns array of values: - staticModel: static class of model, need for checki safety of attribute - real model: containing attribute. Can be null - attribute: it will be without dots for activerecords

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

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

Returns selector
public getSelector ( ) : null | string
Результат null | string

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

initialization of widget
public init ( )

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

Checks is model is instance of mongo model see: http://www.yiiframework.com/extension/yiimongodbsuite
public static isMongo ( mixed $model ) : boolean
$model mixed
Результат boolean

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

Resolves model and returns array of values: - staticModel: static class of model, need for checki safety of attribute - real model: containing attribute. Can be null - attribute: it will be without dots for activerecords
public static resolveModels ( mixed $model, mixed $attribute ) : array
$model mixed
$attribute mixed
Результат array

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

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

attribute name.
public $attribute

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

ActiveRecord to be updated.
public $model