PHP Class app\locker\data\dashboards\BaseDashboard

Inheritance: extends app\locker\data\BaseData
Show file Open project: learninglocker/learninglocker

Protected Properties

Property Type Description
$has_lrs
$lrs_repo

Public Methods

Method Description
__construct ( EloquentRepository $lrs_repo = null )
actorCount ( ) : count. Count the number of distinct actors within LRS statements.
getGraphData ( DateTime $startDate = null, DateTime $endDate = null )
getStatementNumbersByDate ( DateTime $startDate = null, DateTime $endDate = null ) Get a count of statements on each day the lrs has been active.
getStats ( ) Set all stats array.
statementAvgCount ( ) Using the number of days the LRS has been running with statements work out the average number of statements per day.
statementCount ( ) : count Count all statements in Learning Locker

Protected Methods

Method Description
statementDays ( ) Get a count of all the days from the first day a statement was submitted to Lrs.

Method Details

__construct() public method

public __construct ( EloquentRepository $lrs_repo = null )
$lrs_repo Locker\Repository\Lrs\EloquentRepository

actorCount() public method

Count the number of distinct actors within LRS statements.
public actorCount ( ) : count.
return count.

getGraphData() public method

public getGraphData ( DateTime $startDate = null, DateTime $endDate = null )
$startDate DateTime
$endDate DateTime

getStatementNumbersByDate() public method

Get a count of statements on each day the lrs has been active.
public getStatementNumbersByDate ( DateTime $startDate = null, DateTime $endDate = null )
$startDate DateTime
$endDate DateTime

getStats() public method

Set all stats array.
public getStats ( )

statementAvgCount() public method

Using the number of days the LRS has been running with statements work out the average number of statements per day.
public statementAvgCount ( )

statementCount() public method

Count all statements in Learning Locker
public statementCount ( ) : count
return count

statementDays() protected method

Get a count of all the days from the first day a statement was submitted to Lrs.
protected statementDays ( )

Property Details

$has_lrs protected property

protected $has_lrs

$lrs_repo protected property

protected $lrs_repo