Piwik\Plugins\UserCountry\Reports\GetCountry::configureView PHP Метод

configureView() публичный Метод

public configureView ( ViewDataTable $view )
$view Piwik\Plugin\ViewDataTable
    public function configureView(ViewDataTable $view)
    {
        $view->config->show_exclude_low_population = false;
        $view->config->addTranslation('label', $this->dimension->getName());
        $view->config->documentation = $this->documentation;
        $view->requestConfig->filter_limit = 5;
        if (LocationProvider::getCurrentProviderId() == LocationProvider\DefaultProvider::ID) {
            // if we're using the default location provider, add a note explaining how it works
            $footerMessage = Piwik::translate("General_Note") . ': ' . Piwik::translate('UserCountry_DefaultLocationProviderExplanation', array('<a rel="noreferrer"  target="_blank" href="http://piwik.org/docs/geo-locate/">', '</a>'));
            $view->config->show_footer_message = $footerMessage;
        }
    }