Piwik\Plugins\UserCountry\Controller::setUpdaterManageVars PHP Метод

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

Sets some variables needed by the _updaterManage.twig template.
private setUpdaterManageVars ( View $view )
$view Piwik\View
    private function setUpdaterManageVars($view)
    {
        $urls = GeoIPAutoUpdater::getConfiguredUrls();
        $view->geoIPLocUrl = $urls['loc'];
        $view->geoIPIspUrl = $urls['isp'];
        $view->geoIPOrgUrl = $urls['org'];
        $view->geoIPUpdatePeriod = GeoIPAutoUpdater::getSchedulePeriod();
        $view->geoLiteUrl = GeoIp::GEO_LITE_URL;
        $lastRunTime = GeoIPAutoUpdater::getLastRunTime();
        if ($lastRunTime !== false) {
            $view->lastTimeUpdaterRun = '<strong>' . $lastRunTime->toString() . '</strong>';
        }
        $view->nextRunTime = GeoIPAutoUpdater::getNextRunTime();
    }