PHP Class Elcodi\Admin\CoreBundle\Controller\Abstracts\AbstractStatsController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Afficher le fichier Open project: elcodi/bamboo

Méthodes protégées

Méthode 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

Method Details

getDailyStats() protected méthode

return number of entity instances from today
protected getDailyStats ( string $entity ) : integer
$entity string Entity namespace parameter
Résultat integer Total of today instances

getMonthlyStats() protected méthode

return number of entity instances from the begining of the month
protected getMonthlyStats ( string $entity ) : integer
$entity string Entity namespace parameter
Résultat integer Total of monthly instances

getTotalStats() protected méthode

return number of entity instances from the begining
protected getTotalStats ( string $entity ) : integer
$entity string Entity namespace parameter
Résultat integer Total of instances

getTotalsByInterval() protected méthode

Get total elements of certain entity, given an interval
protected getTotalsByInterval ( string $entity, DateTime $from = null, DateTime $to = null ) : array
$entity string Entity class parameter
$from DateTime From
$to DateTime To
Résultat array