PHP Trait schmunk42\giiant\generators\crud\ProviderTrait

Afficher le fichier Open project: schmunk42/yii2-giiant

Méthodes publiques

Méthode Description
activeField ( $attribute, null $model = null ) : mixed | string Generates code for active field by using the provider queue.
appendActiveField ( $attribute, $model = null )
attributeEditable ( $attribute, $model = null )
attributeFormat ( $attribute, $model = null )
columnFormat ( $attribute, $model = null )
generateProviderCheckboxListData ( ) : array
getCoreProviders ( ) : array
partialView ( $name, $model = null )
prependActiveField ( $attribute, $model = null )
relationGrid ( $name, $relation, $showAllRecords = false )
relationGridEditable ( $name, $relation, $showAllRecords = false )

Méthodes protégées

Méthode Description
callProviderQueue ( $func, $args, $generator )
initializeProviders ( )
shorthandAttributeFormat ( $attribute, $model )

Method Details

activeField() public méthode

Generates code for active field by using the provider queue.
public activeField ( $attribute, null $model = null ) : mixed | string
$model null
Résultat mixed | string

appendActiveField() public méthode

public appendActiveField ( $attribute, $model = null )

attributeEditable() public méthode

public attributeEditable ( $attribute, $model = null )

attributeFormat() public méthode

public attributeFormat ( $attribute, $model = null )

callProviderQueue() protected méthode

protected callProviderQueue ( $func, $args, $generator )

columnFormat() public méthode

public columnFormat ( $attribute, $model = null )

generateProviderCheckboxListData() public méthode

public generateProviderCheckboxListData ( ) : array
Résultat array List of providers. Keys and values contain the same strings

getCoreProviders() public static méthode

public static getCoreProviders ( ) : array
Résultat array Class names of the providers declared directly under crud/providers folder

initializeProviders() protected méthode

protected initializeProviders ( )

partialView() public méthode

public partialView ( $name, $model = null )

prependActiveField() public méthode

public prependActiveField ( $attribute, $model = null )

relationGrid() public méthode

public relationGrid ( $name, $relation, $showAllRecords = false )

relationGridEditable() public méthode

public relationGridEditable ( $name, $relation, $showAllRecords = false )

shorthandAttributeFormat() protected méthode

protected shorthandAttributeFormat ( $attribute, $model )