PHP Trait schmunk42\giiant\generators\crud\ProviderTrait

Show file Open project: schmunk42/yii2-giiant

Public Methods

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

Protected Methods

Method Description
callProviderQueue ( $func, $args, $generator )
initializeProviders ( )
shorthandAttributeFormat ( $attribute, $model )

Method Details

activeField() public method

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

appendActiveField() public method

public appendActiveField ( $attribute, $model = null )

attributeEditable() public method

public attributeEditable ( $attribute, $model = null )

attributeFormat() public method

public attributeFormat ( $attribute, $model = null )

callProviderQueue() protected method

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

columnFormat() public method

public columnFormat ( $attribute, $model = null )

generateProviderCheckboxListData() public method

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

getCoreProviders() public static method

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

initializeProviders() protected method

protected initializeProviders ( )

partialView() public method

public partialView ( $name, $model = null )

prependActiveField() public method

public prependActiveField ( $attribute, $model = null )

relationGrid() public method

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

relationGridEditable() public method

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

shorthandAttributeFormat() protected method

protected shorthandAttributeFormat ( $attribute, $model )