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

Inheritance: extends schmunk42\giiant\base\Provider
Afficher le fichier Open project: schmunk42/yii2-giiant Class Usage Examples

Méthodes publiques

Свойство Type Description
$inputWidget can be null (default) or select2
$skipVirtualAttributes wheter to skip non-existing columns in relation grid

Méthodes publiques

Méthode Description
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.

Method Details

activeField() public méthode

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

attributeFormat() public méthode

Renders a link to the related detail view
public attributeFormat ( $attribute ) : null | string
Résultat null | string

columnFormat() public méthode

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

relationGrid() public méthode

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

Property Details

$inputWidget public_oe property

can be null (default) or select2
public $inputWidget

$skipVirtualAttributes public_oe property

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