PHP Class Controllers\Api\Statements

Inheritance: extends Controllers\Api\Base
Datei anzeigen Open project: learninglocker/learninglocker

Protected Properties

Property Type Description
$activity
$query

Public Methods

Method 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

Method Description
convertDte ( $value )
convertOid ( $value )
getParam ( $param )
getPipeline ( )

Method Details

__construct() public method

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

aggregate() public method

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

aggregateObject() public method

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

aggregateTime() public method

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

index() public method

Return raw statements based on filter
public index ( ) : Json
return Json $results

insert() public method

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

void() public method

public void ( )

where() public method

Filters statements using the where method.
public where ( ) : [Statement]
return [Statement]

Property Details

$activity protected_oe property

protected $activity

$query protected_oe property

protected $query