PHP 클래스 schmunk42\giiant\generators\crud\providers\core\RelationProvider

상속: extends schmunk42\giiant\base\Provider
파일 보기 프로젝트 열기: schmunk42/yii2-giiant 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$inputWidget can be null (default) or select2
$skipVirtualAttributes wheter to skip non-existing columns in relation grid

공개 메소드들

메소드 설명
activeField ( $attribute ) : null | string Formatter for relation form inputs.
attributeFormat ( $attribute ) : null | string Formatter for detail view relation attributes.
columnFormat ( $attribute, $model ) : null | string Formatter for relation grid columns.
relationGrid ( $name, $relation, boolean $showAllRecords = false ) : mixed | string Renders a grid view for a given relation.

메소드 상세

activeField() 공개 메소드

Renders a drop-down list for a hasOne/belongsTo relation
public activeField ( $attribute ) : null | string
리턴 null | string

attributeFormat() 공개 메소드

Renders a link to the related detail view
public attributeFormat ( $attribute ) : null | string
리턴 null | string

columnFormat() 공개 메소드

Renders a link to the related detail view
public columnFormat ( $attribute, $model ) : null | string
$model ActiveRecord
리턴 null | string

relationGrid() 공개 메소드

Renders a grid view for a given relation.
public relationGrid ( $name, $relation, boolean $showAllRecords = false ) : mixed | string
$name
$relation
$showAllRecords boolean
리턴 mixed | string

프로퍼티 상세

$inputWidget 공개적으로 프로퍼티

can be null (default) or select2
public $inputWidget

$skipVirtualAttributes 공개적으로 프로퍼티

wheter to skip non-existing columns in relation grid
부터: 0.6
public $skipVirtualAttributes