diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-07-03 03:54:27 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2015-10-06 18:25:13 +0300 |
commit | 9ba8f216fd7856ce5fef06bf82ecb8f8a2e7e630 (patch) | |
tree | 6ce07d18a85d00b39ab720abe042361c0775aead /plugins/Referrers/Categories | |
parent | 8ccc9dc05da021325cdbf141a548637fa52f16b2 (diff) |
generate pages instead of implementing them in each controller
Diffstat (limited to 'plugins/Referrers/Categories')
6 files changed, 112 insertions, 0 deletions
diff --git a/plugins/Referrers/Categories/AllReferrersSubcategory.php b/plugins/Referrers/Categories/AllReferrersSubcategory.php new file mode 100644 index 0000000000..277fc762dd --- /dev/null +++ b/plugins/Referrers/Categories/AllReferrersSubcategory.php @@ -0,0 +1,19 @@ +<?php +/** + * Piwik - free/libre analytics platform + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + * + */ +namespace Piwik\Plugins\Referrers\Categories; + +use Piwik\Category\Subcategory; + +class AllReferrersSubcategory extends Subcategory +{ + protected $categoryId = 'Referrers_Referrers'; + protected $id = 'Referrers_WidgetGetAll'; + protected $order = 5; + +} diff --git a/plugins/Referrers/Categories/CampaignsSubcategory.php b/plugins/Referrers/Categories/CampaignsSubcategory.php new file mode 100644 index 0000000000..5878a0a9e2 --- /dev/null +++ b/plugins/Referrers/Categories/CampaignsSubcategory.php @@ -0,0 +1,19 @@ +<?php +/** + * Piwik - free/libre analytics platform + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + * + */ +namespace Piwik\Plugins\Referrers\Categories; + +use Piwik\Category\Subcategory; + +class CampaignsSubcategory extends Subcategory +{ + protected $categoryId = 'Referrers_Referrers'; + protected $id = 'Referrers_Campaigns'; + protected $order = 20; + +} diff --git a/plugins/Referrers/Categories/ReferrersCategory.php b/plugins/Referrers/Categories/ReferrersCategory.php new file mode 100644 index 0000000000..34c8f053ba --- /dev/null +++ b/plugins/Referrers/Categories/ReferrersCategory.php @@ -0,0 +1,17 @@ +<?php +/** + * Piwik - free/libre analytics platform + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + * + */ +namespace Piwik\Plugins\Referrers\Categories; + +use Piwik\Category\Category; + +class ReferrersCategory extends Category +{ + protected $id = 'Referrers_Referrers'; + protected $order = 15; +} diff --git a/plugins/Referrers/Categories/ReferrersOverviewSubcategory.php b/plugins/Referrers/Categories/ReferrersOverviewSubcategory.php new file mode 100644 index 0000000000..9cd6dafbdc --- /dev/null +++ b/plugins/Referrers/Categories/ReferrersOverviewSubcategory.php @@ -0,0 +1,19 @@ +<?php +/** + * Piwik - free/libre analytics platform + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + * + */ +namespace Piwik\Plugins\Referrers\Categories; + +use Piwik\Category\Subcategory; + +class ReferrersOverviewSubcategory extends Subcategory +{ + protected $categoryId = 'Referrers_Referrers'; + protected $id = 'General_Overview'; + protected $order = 2; + +} diff --git a/plugins/Referrers/Categories/SearchEnginesSubcategory.php b/plugins/Referrers/Categories/SearchEnginesSubcategory.php new file mode 100644 index 0000000000..c8bfc478e6 --- /dev/null +++ b/plugins/Referrers/Categories/SearchEnginesSubcategory.php @@ -0,0 +1,19 @@ +<?php +/** + * Piwik - free/libre analytics platform + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + * + */ +namespace Piwik\Plugins\Referrers\Categories; + +use Piwik\Category\Subcategory; + +class SearchEnginesSubcategory extends Subcategory +{ + protected $categoryId = 'Referrers_Referrers'; + protected $id = 'Referrers_SubmenuSearchEngines'; + protected $order = 10; + +} diff --git a/plugins/Referrers/Categories/WebsitesSubcategory.php b/plugins/Referrers/Categories/WebsitesSubcategory.php new file mode 100644 index 0000000000..8b045bd5d4 --- /dev/null +++ b/plugins/Referrers/Categories/WebsitesSubcategory.php @@ -0,0 +1,19 @@ +<?php +/** + * Piwik - free/libre analytics platform + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + * + */ +namespace Piwik\Plugins\Referrers\Categories; + +use Piwik\Category\Subcategory; + +class WebsitesSubcategory extends Subcategory +{ + protected $categoryId = 'Referrers_Referrers'; + protected $id = 'Referrers_SubmenuWebsites'; + protected $order = 15; + +} |