Download plugins/CustomVariables/Reports/GetCustomVariablesValuesFromNameId.php from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 1.45 kB
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/CustomVariables/Reports/GetCustomVariablesValuesFromNameId.php
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/plugins/CustomVariables/Reports/GetCustomVariablesValuesFromNameId.php
-
curl -L -o GetCustomVariablesValuesFromNameId.php https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/CustomVariables/Reports/GetCustomVariablesValuesFromNameId.php
1.45 kB
| /** | |
| * Matomo - free/libre analytics platform | |
| * | |
| * @link https://matomo.org | |
| * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later | |
| * | |
| */ | |
| namespace Piwik\Plugins\CustomVariables\Reports; | |
| use Piwik\Piwik; | |
| use Piwik\Plugin\ViewDataTable; | |
| use Piwik\Plugins\CustomVariables\Columns\CustomVariableValue; | |
| class GetCustomVariablesValuesFromNameId extends Base | |
| { | |
| protected function init() | |
| { | |
| parent::init(); | |
| $this->dimension = new CustomVariableValue(); | |
| $this->name = Piwik::translate('CustomVariables_CustomVariables'); | |
| $this->documentation = Piwik::translate( | |
| 'CustomVariables_CustomVariablesReportDocumentation', | |
| array('<br />', '<a href="https://matomo.org/docs/custom-variables/" rel="noreferrer noopener" target="_blank">', '</a>') | |
| ); | |
| $this->isSubtableReport = true; | |
| $this->order = 15; | |
| } | |
| public function configureView(ViewDataTable $view) | |
| { | |
| $view->config->columns_to_display = array('label', 'nb_actions', 'nb_visits'); | |
| $view->config->show_goals = true; | |
| $view->config->show_search = false; | |
| $view->config->show_exclude_low_population = false; | |
| $view->config->addTranslation('label', Piwik::translate('CustomVariables_ColumnCustomVariableValue')); | |
| $view->requestConfig->filter_sort_column = 'nb_actions'; | |
| $view->requestConfig->filter_sort_order = 'desc'; | |
| } | |
| } | |