Method | Description | |
---|---|---|
getDailyStats ( string $entity ) : integer | return number of entity instances from today | |
getMonthlyStats ( string $entity ) : integer | return number of entity instances from the begining of the month | |
getTotalStats ( string $entity ) : integer | return number of entity instances from the begining | |
getTotalsByInterval ( string $entity, DateTime $from = null, DateTime $to = null ) : array | Get total elements of certain entity, given an interval |
protected getDailyStats ( string $entity ) : integer | ||
$entity | string | Entity namespace parameter |
return | integer | Total of today instances |
protected getMonthlyStats ( string $entity ) : integer | ||
$entity | string | Entity namespace parameter |
return | integer | Total of monthly instances |
protected getTotalStats ( string $entity ) : integer | ||
$entity | string | Entity namespace parameter |
return | integer | Total of instances |
protected getTotalsByInterval ( string $entity, DateTime $from = null, DateTime $to = null ) : array | ||
$entity | string | Entity class parameter |
$from | DateTime | From |
$to | DateTime | To |
return | array |