Craft\RetourService::getAllStatistics PHP Méthode

getAllStatistics() public méthode

public getAllStatistics ( ) : array
Résultat array All of the statistics
    public function getAllStatistics()
    {
        /* -- Cache it in our class; no need to fetch it more than once */
        if (isset($this->cachedStatistics)) {
            return $this->cachedStatistics;
        }
        $result = craft()->db->createCommand()->select('*')->from('retour_stats')->order('hitCount DESC')->limit(1000)->queryAll();
        $this->cachedStatistics = $result;
        return $result;
    }