PHP Class Controllers\Api\Statements

Inheritance: extends Controllers\Api\Base
Afficher le fichier Open project: learninglocker/learninglocker

Protected Properties

Свойство Type Description
$activity
$query

Méthodes publiques

Méthode Description
__construct ( Locker\Repository\Query\QueryRepository $query ) Constructs a new StatementController.
aggregate ( ) : Aggregate Filters statements using the aggregate method.
aggregateObject ( ) : Aggregate Aggregates by object.
aggregateTime ( ) : Aggregate Aggregates by time.
index ( ) : Json Return raw statements based on filter
insert ( ) : Json<[String]> Inserts new statements based on existing ones in one query using our existing aggregation.
void ( )
where ( ) : [Statement] Filters statements using the where method.

Private Methods

Méthode Description
convertDte ( $value )
convertOid ( $value )
getParam ( $param )
getPipeline ( )

Method Details

__construct() public méthode

Constructs a new StatementController.
public __construct ( Locker\Repository\Query\QueryRepository $query )
$query Locker\Repository\Query\QueryRepository

aggregate() public méthode

Filters statements using the aggregate method.
public aggregate ( ) : Aggregate
Résultat Aggregate http://php.net/manual/en/mongocollection.aggregate.php#refsect1-mongocollection.aggregate-examples

aggregateObject() public méthode

Aggregates by object.
public aggregateObject ( ) : Aggregate
Résultat Aggregate http://php.net/manual/en/mongocollection.aggregate.php#refsect1-mongocollection.aggregate-examples

aggregateTime() public méthode

Aggregates by time.
public aggregateTime ( ) : Aggregate
Résultat Aggregate http://php.net/manual/en/mongocollection.aggregate.php#refsect1-mongocollection.aggregate-examples

index() public méthode

Return raw statements based on filter
public index ( ) : Json
Résultat Json $results

insert() public méthode

Inserts new statements based on existing ones in one query using our existing aggregation.
public insert ( ) : Json<[String]>
Résultat Json<[String]>

void() public méthode

public void ( )

where() public méthode

Filters statements using the where method.
public where ( ) : [Statement]
Résultat [Statement]

Property Details

$activity protected_oe property

protected $activity

$query protected_oe property

protected $query