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:
authorBenaka Moorthi <benaka.moorthi@gmail.com>2013-07-28 04:47:10 +0400
committerBenaka Moorthi <benaka.moorthi@gmail.com>2013-07-28 04:47:10 +0400
commitd99e37ebc3e98f8eae1a043eb9f94e0a4aa43c9a (patch)
tree042c95d89d5c0f4179f910734c134e0c078e6fd4 /plugins/Actions
parent26051fccef9ee7f8497069fc508da3d30a29813d (diff)
Refs #4040, Modify getReportDisplayProperties to add display properties for all of a plugin's reports to a list rather than to pick out the display properties for a single report.
Diffstat (limited to 'plugins/Actions')
-rw-r--r--plugins/Actions/Actions.php34
1 files changed, 14 insertions, 20 deletions
diff --git a/plugins/Actions/Actions.php b/plugins/Actions/Actions.php
index e7a107adaf..dfcc0fe8ab 100644
--- a/plugins/Actions/Actions.php
+++ b/plugins/Actions/Actions.php
@@ -617,27 +617,21 @@ class Piwik_Actions extends Piwik_Plugin
}
}
- public function getReportDisplayProperties(&$properties, $apiAction)
+ public function getReportDisplayProperties(&$properties)
{
- $reportViewProperties = array(
- 'Actions.getPageUrls' => $this->getDisplayPropertiesForPageUrls(),
- 'Actions.getEntryPageUrls' => $this->getDisplayPropertiesForEntryPageUrls(),
- 'Actions.getExitPageUrls' => $this->getDisplayPropertiesForExitPageUrls(),
- 'Actions.getSiteSearchKeywords' => $this->getDisplayPropertiesForSiteSearchKeywords(),
- 'Actions.getSiteSearchNoResultKeywords' => $this->getDisplayPropertiesForSiteSearchNoResultKeywords(),
- 'Actions.getSiteSearchCategories' => $this->getDisplayPropertiesForSiteSearchCategories(),
- 'Actions.getPageUrlsFollowingSiteSearch' => $this->getDisplayPropertiesForGetPageUrlsOrTitlesFollowingSiteSearch(false),
- 'Actions.getPageTitlesFollowingSiteSearch' => $this->getDisplayPropertiesForGetPageUrlsOrTitlesFollowingSiteSearch(true),
- 'Actions.getPageTitles' => $this->getDisplayPropertiesForGetPageTitles(),
- 'Actions.getEntryPageTitles' => $this->getDisplayPropertiesForGetEntryPageTitles(),
- 'Actions.getExitPageTitles' => $this->getDisplayPropertiesForGetExitPageTitles(),
- 'Actions.getDownloads' => $this->getDisplayPropertiesForGetDownloads(),
- 'Actions.getOutlinks' => $this->getDisplayPropertiesForGetOutlinks(),
- );
-
- if (isset($reportViewProperties[$apiAction])) {
- $properties = $reportViewProperties[$apiAction];
- }
+ $properties['Actions.getPageUrls'] = $this->getDisplayPropertiesForPageUrls();
+ $properties['Actions.getEntryPageUrls'] = $this->getDisplayPropertiesForEntryPageUrls();
+ $properties['Actions.getExitPageUrls'] = $this->getDisplayPropertiesForExitPageUrls();
+ $properties['Actions.getSiteSearchKeywords'] = $this->getDisplayPropertiesForSiteSearchKeywords();
+ $properties['Actions.getSiteSearchNoResultKeywords'] = $this->getDisplayPropertiesForSiteSearchNoResultKeywords();
+ $properties['Actions.getSiteSearchCategories'] = $this->getDisplayPropertiesForSiteSearchCategories();
+ $properties['Actions.getPageUrlsFollowingSiteSearch'] = $this->getDisplayPropertiesForGetPageUrlsOrTitlesFollowingSiteSearch(false);
+ $properties['Actions.getPageTitlesFollowingSiteSearch'] = $this->getDisplayPropertiesForGetPageUrlsOrTitlesFollowingSiteSearch(true);
+ $properties['Actions.getPageTitles'] = $this->getDisplayPropertiesForGetPageTitles();
+ $properties['Actions.getEntryPageTitles'] = $this->getDisplayPropertiesForGetEntryPageTitles();
+ $properties['Actions.getExitPageTitles'] = $this->getDisplayPropertiesForGetExitPageTitles();
+ $properties['Actions.getDownloads'] = $this->getDisplayPropertiesForGetDownloads();
+ $properties['Actions.getOutlinks'] = $this->getDisplayPropertiesForGetOutlinks();
}
private function addBaseDisplayProperties(&$result)