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/CoreHome/Categories | |
parent | 8ccc9dc05da021325cdbf141a548637fa52f16b2 (diff) |
generate pages instead of implementing them in each controller
Diffstat (limited to 'plugins/CoreHome/Categories')
-rw-r--r-- | plugins/CoreHome/Categories/ActionsCategory.php | 17 | ||||
-rw-r--r-- | plugins/CoreHome/Categories/DevicesSubcategory.php | 19 | ||||
-rw-r--r-- | plugins/CoreHome/Categories/EngagementSubcategory.php | 19 | ||||
-rw-r--r-- | plugins/CoreHome/Categories/SoftwareSubcategory.php | 19 | ||||
-rw-r--r-- | plugins/CoreHome/Categories/VisitorsCategory.php | 17 | ||||
-rw-r--r-- | plugins/CoreHome/Categories/VisitorsOverviewSubcategory.php | 19 |
6 files changed, 110 insertions, 0 deletions
diff --git a/plugins/CoreHome/Categories/ActionsCategory.php b/plugins/CoreHome/Categories/ActionsCategory.php new file mode 100644 index 0000000000..e995df110d --- /dev/null +++ b/plugins/CoreHome/Categories/ActionsCategory.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\CoreHome\Categories; + +use Piwik\Category\Category; + +class ActionsCategory extends Category +{ + protected $id = 'General_Actions'; + protected $order = 10; +} diff --git a/plugins/CoreHome/Categories/DevicesSubcategory.php b/plugins/CoreHome/Categories/DevicesSubcategory.php new file mode 100644 index 0000000000..9d68e5b30c --- /dev/null +++ b/plugins/CoreHome/Categories/DevicesSubcategory.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\CoreHome\Categories; + +use Piwik\Category\Subcategory; + +class DevicesSubcategory extends Subcategory +{ + protected $categoryId = 'General_Visitors'; + protected $id = 'DevicesDetection_Devices'; + protected $order = 15; + +} diff --git a/plugins/CoreHome/Categories/EngagementSubcategory.php b/plugins/CoreHome/Categories/EngagementSubcategory.php new file mode 100644 index 0000000000..1a4f4b1d40 --- /dev/null +++ b/plugins/CoreHome/Categories/EngagementSubcategory.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\CoreHome\Categories; + +use Piwik\Category\Subcategory; + +class EngagementSubcategory extends Subcategory +{ + protected $categoryId = 'General_Visitors'; + protected $id = 'VisitorInterest_Engagement'; + protected $order = 30; + +} diff --git a/plugins/CoreHome/Categories/SoftwareSubcategory.php b/plugins/CoreHome/Categories/SoftwareSubcategory.php new file mode 100644 index 0000000000..34188afe97 --- /dev/null +++ b/plugins/CoreHome/Categories/SoftwareSubcategory.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\CoreHome\Categories; + +use Piwik\Category\Subcategory; + +class SoftwareSubcategory extends Subcategory +{ + protected $categoryId = 'General_Visitors'; + protected $id = 'DevicesDetection_Software'; + protected $order = 20; + +} diff --git a/plugins/CoreHome/Categories/VisitorsCategory.php b/plugins/CoreHome/Categories/VisitorsCategory.php new file mode 100644 index 0000000000..c4604c4035 --- /dev/null +++ b/plugins/CoreHome/Categories/VisitorsCategory.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\CoreHome\Categories; + +use Piwik\Category\Category; + +class VisitorsCategory extends Category +{ + protected $id = 'General_Visitors'; + protected $order = 5; +} diff --git a/plugins/CoreHome/Categories/VisitorsOverviewSubcategory.php b/plugins/CoreHome/Categories/VisitorsOverviewSubcategory.php new file mode 100644 index 0000000000..3db3e260d2 --- /dev/null +++ b/plugins/CoreHome/Categories/VisitorsOverviewSubcategory.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\CoreHome\Categories; + +use Piwik\Category\Subcategory; + +class VisitorsOverviewSubcategory extends Subcategory +{ + protected $categoryId = 'General_Visitors'; + protected $id = 'General_Overview'; + protected $order = 2; + +} |