PHP Class Locker\Repository\Report\EloquentRepository

Inheritance: extends Locker\Repository\Base\EloquentRepository, implements Locker\Repository\Report\Repository
Datei anzeigen Open project: learninglocker/learninglocker

Protected Properties

Property Type Description
$defaults
$model

Public Methods

Method Description
setQuery ( $lrs_id, [type] $query, [type] $field, [type] $wheres ) Sets the query.
statements ( String $id, array $opts ) : [[String Gets the statements selected by the report with the given ID and options.

Protected Methods

Method Description
constructStore ( Model $model, array $data, array $opts ) : Model Constructs a store.
constructUpdate ( Model $model, array $data, array $opts ) : Model Constructs a update.
format ( Model $model )
validateData ( array $data ) Validates data.

Method Details

constructStore() protected method

Constructs a store.
protected constructStore ( Model $model, array $data, array $opts ) : Model
$model Illuminate\Database\Eloquent\Model Model to be stored.
$data array
$opts array
return Illuminate\Database\Eloquent\Model

constructUpdate() protected method

Constructs a update.
protected constructUpdate ( Model $model, array $data, array $opts ) : Model
$model Illuminate\Database\Eloquent\Model Model to be updated.
$data array
$opts array
return Illuminate\Database\Eloquent\Model

format() protected method

protected format ( Model $model )
$model Illuminate\Database\Eloquent\Model

setQuery() public method

Sets the query.
public setQuery ( $lrs_id, [type] $query, [type] $field, [type] $wheres )
$query [type]
$field [type]
$wheres [type]

statements() public method

Gets the statements selected by the report with the given ID and options.
public statements ( String $id, array $opts ) : [[String
$id String ID to match.
$opts array
return [[String

validateData() protected method

Validates data.
protected validateData ( array $data )
$data array

Property Details

$defaults protected_oe property

protected $defaults

$model protected_oe property

protected $model