Craft\RetourService::getAllStatistics PHP Method

getAllStatistics() public method

public getAllStatistics ( ) : array
return 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;
    }