PHP 클래스 WhEditableField

Makes editable single attribute of model.
저자: Antonio Ramirez ([email protected])
저자: Vitaliy Potapov ([email protected])
상속: extends WhEditable
파일 보기 프로젝트 열기: 2amigos/yiiwheels 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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