Piwik\Plugins\VisitFrequency\Reports\Get::getSparklineTranslations PHP Метод

getSparklineTranslations() приватный Метод

    private function getSparklineTranslations()
    {
        $translations = array('nb_visits_returning' => 'ReturnVisits', 'nb_actions_returning' => 'ReturnActions', 'nb_actions_per_visit_returning' => 'ReturnAvgActions', 'avg_time_on_site_returning' => 'ReturnAverageVisitDuration', 'bounce_rate_returning' => 'ReturnBounceRate');
        foreach ($translations as $metric => $key) {
            $translations[$metric] = Piwik::translate('VisitFrequency_' . $key);
        }
        return $translations;
    }