PHP Class Locker\Repository\Statement\EloquentIndexer

Inheritance: extends EloquentReader, implements Locker\Repository\Statement\IndexerInterface
Mostrar archivo Open project: learninglocker/learninglocker

Protected Properties

Property Type Description
$formatter

Public Methods

Method Description
__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.

Private Methods

Method Description
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.

Method Details

__construct() public method

public __construct ( )

count() public method

Counts statements.
public count ( Jenssegers\Mongodb\Eloquent\Builder $builder, IndexOptions $opts ) : Int
$builder Jenssegers\Mongodb\Eloquent\Builder
$opts IndexOptions
return Int Number of statements in Builder.

format() public method

Formats statements.
public format ( Jenssegers\Mongodb\Eloquent\Builder $builder, IndexOptions $opts ) : [Model]
$builder Jenssegers\Mongodb\Eloquent\Builder
$opts IndexOptions
return [Model]

index() public method

Gets all of the available models with the options.
public index ( IndexOptions $opts ) : [Model]
$opts IndexOptions
return [Model]

Property Details

$formatter protected_oe property

protected $formatter