PHP Class Gitamin\Services\DataCollector\Eloquent\DataCollector

Inheritance: implements Gitamin\Services\DataCollector\Contracts\DataCollectorInterface, implements Gitamin\Services\DataCollector\Contracts\CriteriaInterface
Afficher le fichier Open project: gitaminhq/gitamin

Protected Properties

Свойство Type Description
$app Illuminate\Container\Container
$criteria array
$model mixed
$skipCriteria boolean

Méthodes publiques

Méthode Description
__call ( $method, $args ) : mixed
__construct ( Illuminate\Container\Container $app )
all ( array $columns = ['*'] ) : mixed
applyCriteria ( )
create ( array $data ) : mixed
delete ( $id ) : mixed
find ( $id, array $columns = ['*'] ) : mixed
findAllBy ( $attribute, $value, array $columns = ['*'] ) : mixed
findBy ( $attribute, $value, array $columns = ['*'] ) : mixed
findOrFail ( $id, array $columns = ['*'] ) : mixed
findOrNew ( $id, array $columns = ['*'] ) : mixed
findWhere ( array $where, array $columns = ['*'] ) : Illuminate\Database\Eloquent\Collection | null
getByCriteria ( Criteria $criteria )
getCriteria ( ) : mixed
lists ( string $value, string $key = null ) : array
makeModel ( ) : Model Creates instance of model.
pushCriteria ( Criteria $criteria )
raw ( mixed $value ) : Illuminate\Database\Query\Expression Get a new raw query expression.
resetCriteria ( )
resetScope ( )
skipCriteria ( boolean $flag = true )
update ( array $data, $id, string $attribute = 'id' ) : mixed

Méthodes protégées

Méthode Description
model ( $modelName = null )

Method Details

__call() public méthode

public __call ( $method, $args ) : mixed
$method
$args
Résultat mixed

__construct() public méthode

public __construct ( Illuminate\Container\Container $app )
$app Illuminate\Container\Container

all() public méthode

public all ( array $columns = ['*'] ) : mixed
$columns array
Résultat mixed

applyCriteria() public méthode

public applyCriteria ( )

create() public méthode

public create ( array $data ) : mixed
$data array
Résultat mixed

delete() public méthode

public delete ( $id ) : mixed
$id
Résultat mixed

find() public méthode

public find ( $id, array $columns = ['*'] ) : mixed
$id
$columns array
Résultat mixed

findAllBy() public méthode

public findAllBy ( $attribute, $value, array $columns = ['*'] ) : mixed
$attribute
$value
$columns array
Résultat mixed

findBy() public méthode

public findBy ( $attribute, $value, array $columns = ['*'] ) : mixed
$attribute
$value
$columns array
Résultat mixed

findOrFail() public méthode

public findOrFail ( $id, array $columns = ['*'] ) : mixed
$id
$columns array
Résultat mixed

findOrNew() public méthode

public findOrNew ( $id, array $columns = ['*'] ) : mixed
$id
$columns array
Résultat mixed

findWhere() public méthode

public findWhere ( array $where, array $columns = ['*'] ) : Illuminate\Database\Eloquent\Collection | null
$where array
$columns array
Résultat Illuminate\Database\Eloquent\Collection | null

getByCriteria() public méthode

public getByCriteria ( Criteria $criteria )
$criteria Gitamin\Services\DataCollector\Criteria\Criteria

getCriteria() public méthode

public getCriteria ( ) : mixed
Résultat mixed

lists() public méthode

public lists ( string $value, string $key = null ) : array
$value string
$key string
Résultat array

makeModel() public méthode

Creates instance of model.
public makeModel ( ) : Model
Résultat Illuminate\Database\Eloquent\Model

model() abstract protected méthode

abstract protected model ( $modelName = null )

pushCriteria() public méthode

public pushCriteria ( Criteria $criteria )
$criteria Gitamin\Services\DataCollector\Criteria\Criteria

raw() public méthode

Get a new raw query expression.
public raw ( mixed $value ) : Illuminate\Database\Query\Expression
$value mixed
Résultat Illuminate\Database\Query\Expression

resetCriteria() public méthode

public resetCriteria ( )

resetScope() public méthode

public resetScope ( )

skipCriteria() public méthode

public skipCriteria ( boolean $flag = true )
$flag boolean

update() public méthode

public update ( array $data, $id, string $attribute = 'id' ) : mixed
$data array
$id
$attribute string
Résultat mixed

Property Details

$app protected_oe property

protected Container,Illuminate\Container $app
Résultat Illuminate\Container\Container

$criteria protected_oe property

protected array $criteria
Résultat array

$model protected_oe property

protected mixed $model
Résultat mixed

$skipCriteria protected_oe property

protected bool $skipCriteria
Résultat boolean