PHP 클래스 Locker\Data\Analytics\Analytics

상속: extends app\locker\data\BaseData, implements Locker\Data\Analytics\AnalyticsInterface
파일 보기 프로젝트 열기: learninglocker/learninglocker

보호된 프로퍼티들

프로퍼티 타입 설명
$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