Trait schmunk42\giiant\generators\crud\ProviderTrait

Implemented byschmunk42\giiant\generators\crud\Generator

Method Details

activeField() public method

Generates code for active field by using the provider queue.

public mixed|string activeField ( $attribute, $model null )
$attribute
$model null
appendActiveField() public method

public void appendActiveField ( $attribute, $model null )
$attribute
$model
attributeEditable() public method

public void attributeEditable ( $attribute, $model null )
$attribute
$model
attributeFormat() public method

public void attributeFormat ( $attribute, $model null )
$attribute
$model
callProviderQueue() protected method

protected void callProviderQueue ( $func, $args, $generator )
$func
$args
$generator
columnFormat() public method

public void columnFormat ( $attribute, $model null )
$attribute
$model
generateProviderCheckboxListData() public method

public array generateProviderCheckboxListData ( )
return array

List of providers. Keys and values contain the same strings

getCoreProviders() public static method

public static array getCoreProviders ( )
return array

Class names of the providers declared directly under crud/providers folder

initializeProviders() protected method

protected void initializeProviders ( )
partialView() public method

public void partialView ( $name, $model null )
$name
$model
prependActiveField() public method

public void prependActiveField ( $attribute, $model null )
$attribute
$model
relationGrid() public method

public void relationGrid ( $name, $relation, $showAllRecords false )
$name
$relation
$showAllRecords
relationGridEditable() public method

public void relationGridEditable ( $name, $relation, $showAllRecords false )
$name
$relation
$showAllRecords
shorthandAttributeFormat() protected method

protected void shorthandAttributeFormat ( $attribute, $model )
$attribute
$model