PHP Класс Locker\Data\Analytics\Analytics

Наследование: extends app\locker\data\BaseData, implements Locker\Data\Analytics\AnalyticsInterface
Показать файл Открыть проект

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

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

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

Метод Описание
__construct ( Locker\Repository\Query\QueryRepository $query )
statements ( String $lrs_id, array $options, array $sections = null ) : [[String Gets statements.
timedGrouping ( String $lrs_id, array $options ) : [[String Gets timed grouping of statements.

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

Метод Описание
addDateFilters ( array $options, array $filters ) : [String Adds date filters from $options to $filters.
buildDates ( string $since = '', string $until = '' ) : [String Build $match dates for Mongo aggregation.
constructFilter ( $options )
getDateOption ( array $options, String $key, Mixed $default = '' ) : MongoDate Gets a date option from options.
getOption ( array $options, String $key, Mixed $default = null, callable $modifier = null ) : MongoDate Gets a option from options.
setFilter ( array $options ) : [String Check the filters passed to see if it contains any where criteria.
setInterval ( String $interval = '' ) : String Gets and validates the Mongo interval.
setMongoDate ( String $date ) : MongoDate Turn submitted date into MongoDate object
setType ( String $type = '' ) : String Gets and validates the type.

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

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

public __construct ( Locker\Repository\Query\QueryRepository $query )
$query Locker\Repository\Query\QueryRepository

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

Gets statements.
public statements ( String $lrs_id, array $options, array $sections = null ) : [[String
$lrs_id String Id of the LRS.
$options array
$sections array
Результат [[String

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

Gets timed grouping of statements.
public timedGrouping ( String $lrs_id, array $options ) : [[String
$lrs_id String Id of the LRS.
$options array
Результат [[String

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

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

protected $query