Piwik\Plugins\VisitsSummary\API::checkUniqueIsEnabledOrFail PHP Метод

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

private checkUniqueIsEnabledOrFail ( $period, $metric )
$period
$metric
    private function checkUniqueIsEnabledOrFail($period, $metric)
    {
        if (!SettingsPiwik::isUniqueVisitorsEnabled($period)) {
            throw new \Exception("The metric " . $metric . " is not enabled for the requested period. " . "Please see this FAQ: http://piwik.org/faq/how-to/faq_113/");
        }
    }