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

Inheritance: extends schmunk42\giiant\base\Provider
Show file Open project: schmunk42/yii2-giiant Class Usage Examples

Public Properties

Property Type Description
$inputWidget can be null (default) or select2
$skipVirtualAttributes wheter to skip non-existing columns in relation grid

Public Methods

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

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

attributeFormat() public method

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

columnFormat() public method

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

relationGrid() public method

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

Property Details

$inputWidget public property

can be null (default) or select2
public $inputWidget

$skipVirtualAttributes public property

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