PHP Class WhEditableField

Makes editable single attribute of model.
Author: Antonio Ramirez ([email protected])
Author: Vitaliy Potapov ([email protected])
Inheritance: extends WhEditable
Datei anzeigen Open project: 2amigos/yiiwheels Class Usage Examples

Public Properties

Property Type Description
$attribute attribute name.
$model ActiveRecord to be updated.

Public Methods

Method Description
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

Method Details

getSelector() public method

Returns selector
public getSelector ( ) : null | string
return null | string

init() public method

initialization of widget
public init ( )

isMongo() public static method

Checks is model is instance of mongo model see: http://www.yiiframework.com/extension/yiimongodbsuite
public static isMongo ( mixed $model ) : boolean
$model mixed
return boolean

resolveModels() public static method

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
return array

Property Details

$attribute public_oe property

attribute name.
public $attribute

$model public_oe property

ActiveRecord to be updated.
public $model