PHP Класс Rinvex\Repository\Repositories\BaseRepository

Наследование: implements Rinvex\Repository\Contracts\RepositoryContract, implements Rinvex\Repository\Contracts\CacheableContract, use trait Rinvex\Repository\Traits\Cacheable
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$container Illuminate\Contracts\Container\Container The IoC container instance.
$limit integer The "limit" value of the query.
$model string The repository model.
$offset integer The "offset" value of the query.
$orderBy array The column to order results by.
$relations array The relations to eager load on query execution.
$repositoryId string The repository identifier.
$where array The query where clauses.
$whereIn array The query whereIn clauses.
$whereNotIn array The query whereNotIn clauses.

Открытые методы

Метод Описание
__call ( string $method, array $parameters ) : mixed Dynamically pass missing methods to the model.
__callStatic ( $method, $parameters ) : mixed Dynamically pass missing static methods to the model.
getContainer ( string | null $service = null ) : object Get the IoC container instance or any of it's services.
getModel ( ) : string Get the repository model.
getRepositoryId ( ) : string Get the repository identifier.
limit ( integer $limit ) Set the "limit" value of the query.
offset ( integer $offset ) Set the "offset" value of the query.
orderBy ( string $attribute, string $direction = 'asc' ) Add an "order by" clause to the query.
setContainer ( Illuminate\Contracts\Container\Container $container ) Set the IoC container instance.
setModel ( string $model ) Set the repository model.
setRepositoryId ( string $repositoryId ) Set the repository identifier.
where ( string $attribute, string $operator = null, mixed $value = null, string $boolean = 'and' ) Add a basic where clause to the query.
whereIn ( string $attribute, mixed $values, string $boolean = 'and', boolean $not = false ) Add a "where in" clause to the query.
whereNotIn ( string $attribute, mixed $values, string $boolean = 'and' ) Add a "where not in" clause to the query.
with ( array $relations ) Set the relationships that should be eager loaded.

Защищенные методы

Метод Описание
executeCallback ( string $class, string $method, array $args, Closure $closure ) : mixed Execute given callback and return the result.
prepareQuery ( object $model ) : object Prepare query.
resetRepository ( ) Reset repository to it's defaults.

Описание методов

__call() публичный Метод

Dynamically pass missing methods to the model.
public __call ( string $method, array $parameters ) : mixed
$method string
$parameters array
Результат mixed

__callStatic() публичный статический Метод

Dynamically pass missing static methods to the model.
public static __callStatic ( $method, $parameters ) : mixed
$method
$parameters
Результат mixed

executeCallback() защищенный Метод

Execute given callback and return the result.
protected executeCallback ( string $class, string $method, array $args, Closure $closure ) : mixed
$class string
$method string
$args array
$closure Closure
Результат mixed

getContainer() публичный Метод

Get the IoC container instance or any of it's services.
public getContainer ( string | null $service = null ) : object
$service string | null
Результат object

getModel() публичный Метод

Get the repository model.
public getModel ( ) : string
Результат string

getRepositoryId() публичный Метод

Get the repository identifier.
public getRepositoryId ( ) : string
Результат string

limit() публичный Метод

Set the "limit" value of the query.
public limit ( integer $limit )
$limit integer

offset() публичный Метод

Set the "offset" value of the query.
public offset ( integer $offset )
$offset integer

orderBy() публичный Метод

Add an "order by" clause to the query.
public orderBy ( string $attribute, string $direction = 'asc' )
$attribute string
$direction string

prepareQuery() защищенный Метод

Prepare query.
protected prepareQuery ( object $model ) : object
$model object
Результат object

resetRepository() защищенный Метод

Reset repository to it's defaults.
protected resetRepository ( )

setContainer() публичный Метод

Set the IoC container instance.
public setContainer ( Illuminate\Contracts\Container\Container $container )
$container Illuminate\Contracts\Container\Container

setModel() публичный Метод

Set the repository model.
public setModel ( string $model )
$model string

setRepositoryId() публичный Метод

Set the repository identifier.
public setRepositoryId ( string $repositoryId )
$repositoryId string

where() публичный Метод

Add a basic where clause to the query.
public where ( string $attribute, string $operator = null, mixed $value = null, string $boolean = 'and' )
$attribute string
$operator string
$value mixed
$boolean string

whereIn() публичный Метод

Add a "where in" clause to the query.
public whereIn ( string $attribute, mixed $values, string $boolean = 'and', boolean $not = false )
$attribute string
$values mixed
$boolean string
$not boolean

whereNotIn() публичный Метод

Add a "where not in" clause to the query.
public whereNotIn ( string $attribute, mixed $values, string $boolean = 'and' )
$attribute string
$values mixed
$boolean string

with() публичный Метод

Set the relationships that should be eager loaded.
public with ( array $relations )
$relations array

Описание свойств

$container защищенное свойство

The IoC container instance.
protected Container,Illuminate\Contracts\Container $container
Результат Illuminate\Contracts\Container\Container

$limit защищенное свойство

The "limit" value of the query.
protected int $limit
Результат integer

$model защищенное свойство

The repository model.
protected string $model
Результат string

$offset защищенное свойство

The "offset" value of the query.
protected int $offset
Результат integer

$orderBy защищенное свойство

The column to order results by.
protected array $orderBy
Результат array

$relations защищенное свойство

The relations to eager load on query execution.
protected array $relations
Результат array

$repositoryId защищенное свойство

The repository identifier.
protected string $repositoryId
Результат string

$where защищенное свойство

The query where clauses.
protected array $where
Результат array

$whereIn защищенное свойство

The query whereIn clauses.
protected array $whereIn
Результат array

$whereNotIn защищенное свойство

The query whereNotIn clauses.
protected array $whereNotIn
Результат array