PHP Class Encore\Admin\Grid\Model

Afficher le fichier Open project: z-song/laravel-admin

Protected Properties

Свойство Type Description
$data array
$model Illuminate\Database\Eloquent\Model Eloquent model instance of the grid model.
$perPage * 20 items per page as default.
$queries array Array of queries of the eloquent model.
$sort array Sort parameters of the model.

Méthodes publiques

Méthode Description
__call ( $method, $arguments )
__construct ( Model $model ) Create a new grid model instance.
__get ( $key )
addConditions ( array $conditions ) : void Add conditions to grid model.
buildData ( ) : array Build.
eloquent ( ) : Model Get the eloquent model of the grid model.
getTable ( ) : string Get table of the model.

Méthodes protégées

Méthode Description
findQueryByMethod ( $method ) : static Find query by method name.
get ( )
joinParameters ( Illuminate\Database\Eloquent\Relations\Relation $relation ) : array Build join parameters.
setPaginate ( ) : void Set the grid paginate.
setRelationSort ( string $column ) : void Set relation sort.
setSort ( ) : void Set the grid sort.

Method Details

__call() public méthode

public __call ( $method, $arguments )

__construct() public méthode

Create a new grid model instance.
public __construct ( Model $model )
$model Illuminate\Database\Eloquent\Model

__get() public méthode

public __get ( $key )

addConditions() public méthode

Add conditions to grid model.
public addConditions ( array $conditions ) : void
$conditions array
Résultat void

buildData() public méthode

Build.
public buildData ( ) : array
Résultat array

eloquent() public méthode

Get the eloquent model of the grid model.
public eloquent ( ) : Model
Résultat Illuminate\Database\Eloquent\Model

findQueryByMethod() protected méthode

Find query by method name.
protected findQueryByMethod ( $method ) : static
$method
Résultat static

get() protected méthode

protected get ( )

getTable() public méthode

Get table of the model.
public getTable ( ) : string
Résultat string

joinParameters() protected méthode

Build join parameters.
protected joinParameters ( Illuminate\Database\Eloquent\Relations\Relation $relation ) : array
$relation Illuminate\Database\Eloquent\Relations\Relation
Résultat array

setPaginate() protected méthode

Set the grid paginate.
protected setPaginate ( ) : void
Résultat void

setRelationSort() protected méthode

Set relation sort.
protected setRelationSort ( string $column ) : void
$column string
Résultat void

setSort() protected méthode

Set the grid sort.
protected setSort ( ) : void
Résultat void

Property Details

$data protected_oe property

protected array $data
Résultat array

$model protected_oe property

Eloquent model instance of the grid model.
protected Model,Illuminate\Database\Eloquent $model
Résultat Illuminate\Database\Eloquent\Model

$perPage protected_oe property

* 20 items per page as default.
protected $perPage

$queries protected_oe property

Array of queries of the eloquent model.
protected array $queries
Résultat array

$sort protected_oe property

Sort parameters of the model.
protected array $sort
Résultat array