diff options
-rw-r--r-- | core/ViewDataTable.php | 10 | ||||
-rw-r--r-- | plugins/DBStats/DBStats.php | 12 | ||||
-rw-r--r-- | plugins/Live/Live.php | 16 | ||||
-rw-r--r-- | plugins/Referrers/Referrers.php | 20 | ||||
-rw-r--r-- | plugins/UserSettings/UserSettings.php | 18 | ||||
-rw-r--r-- | plugins/VisitTime/VisitTime.php | 20 | ||||
-rw-r--r-- | plugins/VisitorInterest/VisitorInterest.php | 16 |
7 files changed, 56 insertions, 56 deletions
diff --git a/core/ViewDataTable.php b/core/ViewDataTable.php index 473be55c92..4bf334cf8d 100644 --- a/core/ViewDataTable.php +++ b/core/ViewDataTable.php @@ -52,7 +52,7 @@ class ViewDataTable { /** - * Cache for getDefaultViewTypeForReports result. + * Cache for getDefaultTypeViewDataTable result. * * @var array */ @@ -197,7 +197,7 @@ class ViewDataTable */ private static function getDefaultViewTypeForReport($apiAction) { - $defaultViewTypes = self::getDefaultViewTypeForReports(); + $defaultViewTypes = self::getDefaultTypeViewDataTable(); return isset($defaultViewTypes[$apiAction]) ? $defaultViewTypes[$apiAction] : false; } @@ -205,7 +205,7 @@ class ViewDataTable * Returns a list of default viewDataTables ID to use when determining which visualization to use for multiple * reports. */ - private static function getDefaultViewTypeForReports() + private static function getDefaultTypeViewDataTable() { if (null === self::$defaultViewTypes) { self::$defaultViewTypes = array(); @@ -217,7 +217,7 @@ class ViewDataTable * * Example: * ``` - * public function getDefaultViewTypeForReports(&$defaultViewTypes) + * public function getDefaultTypeViewDataTable(&$defaultViewTypes) * { * $defaultViewTypes['Referrers.getSocials'] = HtmlTable::ID; * $defaultViewTypes['Referrers.getUrlsForSocial'] = Pie::ID; @@ -225,7 +225,7 @@ class ViewDataTable * } * ``` */ - Piwik::postEvent('Visualization.getDefaultViewTypeForReports', array(&self::$defaultViewTypes)); + Piwik::postEvent('Visualization.getDefaultTypeViewDataTable', array(&self::$defaultViewTypes)); } return self::$defaultViewTypes; diff --git a/plugins/DBStats/DBStats.php b/plugins/DBStats/DBStats.php index 52535defda..0a1c2b29d3 100644 --- a/plugins/DBStats/DBStats.php +++ b/plugins/DBStats/DBStats.php @@ -37,11 +37,11 @@ class DBStats extends \Piwik\Plugin public function getListHooksRegistered() { return array( - 'AssetManager.getStylesheetFiles' => 'getStylesheetFiles', - 'Menu.Admin.addItems' => 'addMenu', - 'TaskScheduler.getScheduledTasks' => 'getScheduledTasks', - 'ViewDataTable.configure' => 'configureViewDataTable', - 'Visualization.getDefaultViewTypeForReports' => 'getDefaultViewTypeForReports' + 'AssetManager.getStylesheetFiles' => 'getStylesheetFiles', + 'Menu.Admin.addItems' => 'addMenu', + 'TaskScheduler.getScheduledTasks' => 'getScheduledTasks', + 'ViewDataTable.configure' => 'configureViewDataTable', + 'Visualization.getDefaultTypeViewDataTable' => 'getDefaultTypeViewDataTable' ); } @@ -93,7 +93,7 @@ class DBStats extends \Piwik\Plugin return Option::get(self::TIME_OF_LAST_TASK_RUN_OPTION); } - public function getDefaultViewTypeForReports(&$defaultViewTypes) + public function getDefaultTypeViewDataTable(&$defaultViewTypes) { $defaultViewTypes['DBStats.getDatabaseUsageSummary'] = Pie::ID; $defaultViewTypes['DBStats.getTrackerDataSummary'] = HtmlTable::ID; diff --git a/plugins/Live/Live.php b/plugins/Live/Live.php index 53e735114e..66eca4b35b 100644 --- a/plugins/Live/Live.php +++ b/plugins/Live/Live.php @@ -31,13 +31,13 @@ class Live extends \Piwik\Plugin public function getListHooksRegistered() { return array( - 'AssetManager.getJavaScriptFiles' => 'getJsFiles', - 'AssetManager.getStylesheetFiles' => 'getStylesheetFiles', - 'WidgetsList.addWidgets' => 'addWidget', - 'Menu.Reporting.addItems' => 'addMenu', - 'ViewDataTable.configure' => 'configureViewDataTable', - 'Translate.getClientSideTranslationKeys' => 'getClientSideTranslationKeys', - 'Visualization.getDefaultViewTypeForReports' => 'getDefaultViewTypeForReports' + 'AssetManager.getJavaScriptFiles' => 'getJsFiles', + 'AssetManager.getStylesheetFiles' => 'getStylesheetFiles', + 'WidgetsList.addWidgets' => 'addWidget', + 'Menu.Reporting.addItems' => 'addMenu', + 'ViewDataTable.configure' => 'configureViewDataTable', + 'Translate.getClientSideTranslationKeys' => 'getClientSideTranslationKeys', + 'Visualization.getDefaultTypeViewDataTable' => 'getDefaultTypeViewDataTable' ); } @@ -85,7 +85,7 @@ class Live extends \Piwik\Plugin } } - public function getDefaultViewTypeForReports(&$defaultViewTypes) + public function getDefaultTypeViewDataTable(&$defaultViewTypes) { $defaultViewTypes['Live.getLastVisitsDetails'] = VisitorLog::ID; } diff --git a/plugins/Referrers/Referrers.php b/plugins/Referrers/Referrers.php index 099c0b1075..b452ebc4e3 100644 --- a/plugins/Referrers/Referrers.php +++ b/plugins/Referrers/Referrers.php @@ -37,15 +37,15 @@ class Referrers extends \Piwik\Plugin public function getListHooksRegistered() { $hooks = array( - 'ArchiveProcessor.Day.compute' => 'archiveDay', - 'ArchiveProcessor.Period.compute' => 'archivePeriod', - 'WidgetsList.addWidgets' => 'addWidgets', - 'Menu.Reporting.addItems' => 'addMenus', - 'Goals.getReportsWithGoalMetrics' => 'getReportsWithGoalMetrics', - 'API.getReportMetadata' => 'getReportMetadata', - 'API.getSegmentsMetadata' => 'getSegmentsMetadata', - 'ViewDataTable.configure' => 'configureViewDataTable', - 'Visualization.getDefaultViewTypeForReports' => 'getDefaultViewTypeForReports' + 'ArchiveProcessor.Day.compute' => 'archiveDay', + 'ArchiveProcessor.Period.compute' => 'archivePeriod', + 'WidgetsList.addWidgets' => 'addWidgets', + 'Menu.Reporting.addItems' => 'addMenus', + 'Goals.getReportsWithGoalMetrics' => 'getReportsWithGoalMetrics', + 'API.getReportMetadata' => 'getReportMetadata', + 'API.getSegmentsMetadata' => 'getSegmentsMetadata', + 'ViewDataTable.configure' => 'configureViewDataTable', + 'Visualization.getDefaultTypeViewDataTable' => 'getDefaultTypeViewDataTable' ); return $hooks; } @@ -300,7 +300,7 @@ class Referrers extends \Piwik\Plugin } } - public function getDefaultViewTypeForReports(&$defaultViewTypes) + public function getDefaultTypeViewDataTable(&$defaultViewTypes) { $defaultViewTypes['Referrers.getReferrerType'] = AllColumns::ID; $defaultViewTypes['Referrers.getSocials'] = Pie::ID; diff --git a/plugins/UserSettings/UserSettings.php b/plugins/UserSettings/UserSettings.php index 2f0124952e..6617fe8d05 100644 --- a/plugins/UserSettings/UserSettings.php +++ b/plugins/UserSettings/UserSettings.php @@ -169,19 +169,19 @@ class UserSettings extends \Piwik\Plugin public function getListHooksRegistered() { $hooks = array( - 'ArchiveProcessor.Day.compute' => 'archiveDay', - 'ArchiveProcessor.Period.compute' => 'archivePeriod', - 'WidgetsList.addWidgets' => 'addWidgets', - 'Menu.Reporting.addItems' => 'addMenu', - 'API.getReportMetadata' => 'getReportMetadata', - 'API.getSegmentsMetadata' => 'getSegmentsMetadata', - 'ViewDataTable.configure' => 'configureViewDataTable', - 'Visualization.getDefaultViewTypeForReports' => 'getDefaultViewTypeForReports' + 'ArchiveProcessor.Day.compute' => 'archiveDay', + 'ArchiveProcessor.Period.compute' => 'archivePeriod', + 'WidgetsList.addWidgets' => 'addWidgets', + 'Menu.Reporting.addItems' => 'addMenu', + 'API.getReportMetadata' => 'getReportMetadata', + 'API.getSegmentsMetadata' => 'getSegmentsMetadata', + 'ViewDataTable.configure' => 'configureViewDataTable', + 'Visualization.getDefaultTypeViewDataTable' => 'getDefaultTypeViewDataTable' ); return $hooks; } - public function getDefaultViewTypeForReports(&$defaultViewTypes) + public function getDefaultTypeViewDataTable(&$defaultViewTypes) { $defaultViewTypes['UserSettings.getBrowserType'] = Pie::ID; } diff --git a/plugins/VisitTime/VisitTime.php b/plugins/VisitTime/VisitTime.php index 0f4ad71b28..c33d7cef3f 100644 --- a/plugins/VisitTime/VisitTime.php +++ b/plugins/VisitTime/VisitTime.php @@ -35,15 +35,15 @@ class VisitTime extends \Piwik\Plugin public function getListHooksRegistered() { $hooks = array( - 'ArchiveProcessor.Day.compute' => 'archiveDay', - 'ArchiveProcessor.Period.compute' => 'archivePeriod', - 'WidgetsList.addWidgets' => 'addWidgets', - 'Menu.Reporting.addItems' => 'addMenu', - 'Goals.getReportsWithGoalMetrics' => 'getReportsWithGoalMetrics', - 'API.getReportMetadata' => 'getReportMetadata', - 'API.getSegmentsMetadata' => 'getSegmentsMetadata', - 'ViewDataTable.configure' => 'configureViewDataTable', - 'Visualization.getDefaultViewTypeForReports' => 'getDefaultViewTypeForReports' + 'ArchiveProcessor.Day.compute' => 'archiveDay', + 'ArchiveProcessor.Period.compute' => 'archivePeriod', + 'WidgetsList.addWidgets' => 'addWidgets', + 'Menu.Reporting.addItems' => 'addMenu', + 'Goals.getReportsWithGoalMetrics' => 'getReportsWithGoalMetrics', + 'API.getReportMetadata' => 'getReportMetadata', + 'API.getSegmentsMetadata' => 'getSegmentsMetadata', + 'ViewDataTable.configure' => 'configureViewDataTable', + 'Visualization.getDefaultTypeViewDataTable' => 'getDefaultTypeViewDataTable' ); return $hooks; } @@ -126,7 +126,7 @@ class VisitTime extends \Piwik\Plugin ); } - public function getDefaultViewTypeForReports(&$defaultViewTypes) + public function getDefaultTypeViewDataTable(&$defaultViewTypes) { $defaultViewTypes['VisitTime.getVisitInformationPerServerTime'] = Bar::ID; $defaultViewTypes['VisitTime.getVisitInformationPerLocalTime'] = Bar::ID; diff --git a/plugins/VisitorInterest/VisitorInterest.php b/plugins/VisitorInterest/VisitorInterest.php index ccfe90c03a..a93d203ace 100644 --- a/plugins/VisitorInterest/VisitorInterest.php +++ b/plugins/VisitorInterest/VisitorInterest.php @@ -33,13 +33,13 @@ class VisitorInterest extends \Piwik\Plugin public function getListHooksRegistered() { $hooks = array( - 'ArchiveProcessor.Day.compute' => 'archiveDay', - 'ArchiveProcessor.Period.compute' => 'archivePeriod', - 'WidgetsList.addWidgets' => 'addWidgets', - 'Menu.Reporting.addItems' => 'addMenu', - 'API.getReportMetadata' => 'getReportMetadata', - 'ViewDataTable.configure' => 'configureViewDataTable', - 'Visualization.getDefaultViewTypeForReports' => 'getDefaultViewTypeForReports' + 'ArchiveProcessor.Day.compute' => 'archiveDay', + 'ArchiveProcessor.Period.compute' => 'archivePeriod', + 'WidgetsList.addWidgets' => 'addWidgets', + 'Menu.Reporting.addItems' => 'addMenu', + 'API.getReportMetadata' => 'getReportMetadata', + 'ViewDataTable.configure' => 'configureViewDataTable', + 'Visualization.getDefaultTypeViewDataTable' => 'getDefaultTypeViewDataTable' ); return $hooks; } @@ -155,7 +155,7 @@ class VisitorInterest extends \Piwik\Plugin $out .= '</div>'; } - public function getDefaultViewTypeForReports(&$defaultViewTypes) + public function getDefaultTypeViewDataTable(&$defaultViewTypes) { $defaultViewTypes['VisitorInterest.getNumberOfVisitsPerVisitDuration'] = Cloud::ID; $defaultViewTypes['VisitorInterest.getNumberOfVisitsPerPage'] = Cloud::ID; |