PHP Класс Locker\Repository\Statement\EloquentIndexer

Наследование: extends EloquentReader, implements Locker\Repository\Statement\IndexerInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$formatter

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

Метод Описание
__construct ( )
count ( Jenssegers\Mongodb\Eloquent\Builder $builder, IndexOptions $opts ) : Int Counts statements.
format ( Jenssegers\Mongodb\Eloquent\Builder $builder, IndexOptions $opts ) : [Model] Formats statements.
index ( IndexOptions $opts ) : [Model] Gets all of the available models with the options.

Приватные методы

Метод Описание
addWhere ( Jenssegers\Mongodb\Eloquent\Builder $builder, String $key, Mixed $value, $op = '=' ) : Jenssegers\Mongodb\Eloquent\Builder Adds where to builder.
addWheres ( Jenssegers\Mongodb\Eloquent\Builder $builder, array $keys, Mixed $value ) : Jenssegers\Mongodb\Eloquent\Builder Adds wheres to builder.
constructFilterOpts ( Jenssegers\Mongodb\Eloquent\Builder $builder, IndexOptions $opts, array $builders ) : Jenssegers\Mongodb\Eloquent\Builder Extends a given Builder using the given options and option builders.
matchActivity ( String $activity, Jenssegers\Mongodb\Eloquent\Builder $builder, IndexOptions $opts ) : Jenssegers\Mongodb\Eloquent\Builder Constructs a Mongo match using the given activity and options.
matchAgent ( stdClass $agent, Jenssegers\Mongodb\Eloquent\Builder $builder, IndexOptions $opts ) : Jenssegers\Mongodb\Eloquent\Builder Constructs a builder using the given agent and options.
matchAgentProp ( String $prop, Mixed $value, Jenssegers\Mongodb\Eloquent\Builder $builder, IndexOptions $opts ) : Jenssegers\Mongodb\Eloquent\Builder Constructs a builder using the given agent property and value, plus options.

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

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

public __construct ( )

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

Counts statements.
public count ( Jenssegers\Mongodb\Eloquent\Builder $builder, IndexOptions $opts ) : Int
$builder Jenssegers\Mongodb\Eloquent\Builder
$opts IndexOptions
Результат Int Number of statements in Builder.

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

Formats statements.
public format ( Jenssegers\Mongodb\Eloquent\Builder $builder, IndexOptions $opts ) : [Model]
$builder Jenssegers\Mongodb\Eloquent\Builder
$opts IndexOptions
Результат [Model]

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

Gets all of the available models with the options.
public index ( IndexOptions $opts ) : [Model]
$opts IndexOptions
Результат [Model]

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

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

protected $formatter