Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-03-28 03:42:39 +0400
committermattab <matthieu.aubry@gmail.com>2013-03-28 03:42:40 +0400
commitae4b03163792f0b6e933933e5d37df87dc3fd566 (patch)
treed1d7510a9728f587d3d63ebd03e4ecf3d904838b /plugins/CustomVariables/Controller.php
parent158c2150f5f2e13ece459b8d131244c11b763997 (diff)
Mass conversion of all files to the newly agreed coding standard: PSR 1/2
Converting Piwik core source files, PHP, JS, TPL, CSS More info: http://piwik.org/participate/coding-standards/
Diffstat (limited to 'plugins/CustomVariables/Controller.php')
-rw-r--r--plugins/CustomVariables/Controller.php78
1 files changed, 39 insertions, 39 deletions
diff --git a/plugins/CustomVariables/Controller.php b/plugins/CustomVariables/Controller.php
index eca9bc2b62..ea00259d3e 100644
--- a/plugins/CustomVariables/Controller.php
+++ b/plugins/CustomVariables/Controller.php
@@ -15,44 +15,44 @@
*/
class Piwik_CustomVariables_Controller extends Piwik_Controller
{
-
- function index($fetch = false)
- {
- return Piwik_View::singleReport(
- Piwik_Translate('CustomVariables_CustomVariables'),
- $this->getCustomVariables(true), $fetch);
- }
-
- function getCustomVariables($fetch = false)
- {
- $view = Piwik_ViewDataTable::factory();
- $view->init( $this->pluginName, __FUNCTION__, "CustomVariables.getCustomVariables", "getCustomVariablesValuesFromNameId" );
-
- $this->setPeriodVariablesView($view);
- $view->enableShowGoals();
-
- $view->setColumnsToDisplay( array('label','nb_visits', 'nb_actions') );
- $view->setColumnTranslation('label', Piwik_Translate('CustomVariables_ColumnCustomVariableName'));
- $view->setSortedColumn( 'nb_visits' );
- $view->setLimit( 10 );
- $view->setFooterMessage( Piwik_Translate('CustomVariables_TrackingHelp', array('<a target="_blank" href="http://piwik.org/docs/custom-variables/">', '</a>')) );
- $this->setMetricsVariablesView($view);
- return $this->renderView($view, $fetch);
- }
-
- function getCustomVariablesValuesFromNameId( $fetch = false)
- {
- $view = Piwik_ViewDataTable::factory();
- $view->init( $this->pluginName, __FUNCTION__, 'CustomVariables.getCustomVariablesValuesFromNameId' );
-
- $view->disableSearchBox();
- $view->enableShowGoals();
- $view->disableExcludeLowPopulation();
- $view->setColumnsToDisplay( array('label','nb_visits', 'nb_actions') );
- $view->setColumnTranslation('label', Piwik_Translate('CustomVariables_ColumnCustomVariableValue'));
-
- return $this->renderView($view, $fetch);
- }
-
+
+ function index($fetch = false)
+ {
+ return Piwik_View::singleReport(
+ Piwik_Translate('CustomVariables_CustomVariables'),
+ $this->getCustomVariables(true), $fetch);
+ }
+
+ function getCustomVariables($fetch = false)
+ {
+ $view = Piwik_ViewDataTable::factory();
+ $view->init($this->pluginName, __FUNCTION__, "CustomVariables.getCustomVariables", "getCustomVariablesValuesFromNameId");
+
+ $this->setPeriodVariablesView($view);
+ $view->enableShowGoals();
+
+ $view->setColumnsToDisplay(array('label', 'nb_visits', 'nb_actions'));
+ $view->setColumnTranslation('label', Piwik_Translate('CustomVariables_ColumnCustomVariableName'));
+ $view->setSortedColumn('nb_visits');
+ $view->setLimit(10);
+ $view->setFooterMessage(Piwik_Translate('CustomVariables_TrackingHelp', array('<a target="_blank" href="http://piwik.org/docs/custom-variables/">', '</a>')));
+ $this->setMetricsVariablesView($view);
+ return $this->renderView($view, $fetch);
+ }
+
+ function getCustomVariablesValuesFromNameId($fetch = false)
+ {
+ $view = Piwik_ViewDataTable::factory();
+ $view->init($this->pluginName, __FUNCTION__, 'CustomVariables.getCustomVariablesValuesFromNameId');
+
+ $view->disableSearchBox();
+ $view->enableShowGoals();
+ $view->disableExcludeLowPopulation();
+ $view->setColumnsToDisplay(array('label', 'nb_visits', 'nb_actions'));
+ $view->setColumnTranslation('label', Piwik_Translate('CustomVariables_ColumnCustomVariableValue'));
+
+ return $this->renderView($view, $fetch);
+ }
+
}