Class schmunk42\giiant\generators\crud\providers\RelationProvider

Inheritanceschmunk42\giiant\generators\crud\providers\RelationProvider » schmunk42\giiant\base\Provider » yii\base\Object

Public Methods

Hide inherited methods

MethodDescriptionDefined By
activeField() Formatter for relation form inputs schmunk42\giiant\generators\crud\providers\RelationProvider
attributeFormat() Formatter for detail view relation attributes schmunk42\giiant\generators\crud\providers\RelationProvider
columnFormat() Formatter for relation grid columns schmunk42\giiant\generators\crud\providers\RelationProvider
relationGrid() Renders a grid view for a given relation schmunk42\giiant\generators\crud\providers\RelationProvider

Property Details

$inputWidget public property

Can be null (default) or select2

public null $inputWidget null

Method Details

activeField() public method

Formatter for relation form inputs

Renders a drop-down list for a hasOne/belongsTo relation

public null|string activeField ( $attribute )
$attribute
attributeFormat() public method

Formatter for detail view relation attributes

Renders a link to the related detail view

public null|string attributeFormat ( $attribute )
$attribute
columnFormat() public method

Formatter for relation grid columns

Renders a link to the related detail view

public null|string columnFormat ( $attribute, $model )
$attribute
$model

ActiveRecord

relationGrid() public method

Renders a grid view for a given relation

public mixed|string relationGrid ( $name, $relation, $showAllRecords false )
$name
$relation
$showAllRecords bool