diff options
author | sgiehl <stefan@piwik.org> | 2015-01-13 01:13:14 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2015-01-13 01:13:14 +0300 |
commit | a0ce768662bea281f88fb64b90a9fca4d668fd41 (patch) | |
tree | 17fd24f16111dc61fd04d4f4d63b950d97b7e4c3 /plugins/UserLanguage/Reports/GetLanguageCode.php | |
parent | e2b9956e4bd92ca9e234d10d527be9e8caf2b68f (diff) |
refs #3962 - moved language reports to their own plugin
Diffstat (limited to 'plugins/UserLanguage/Reports/GetLanguageCode.php')
-rw-r--r-- | plugins/UserLanguage/Reports/GetLanguageCode.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/plugins/UserLanguage/Reports/GetLanguageCode.php b/plugins/UserLanguage/Reports/GetLanguageCode.php new file mode 100644 index 0000000000..9b2ab021d9 --- /dev/null +++ b/plugins/UserLanguage/Reports/GetLanguageCode.php @@ -0,0 +1,33 @@ +<?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\UserLanguage\Reports; + +use Piwik\Piwik; +use Piwik\Plugins\UserLanguage\Columns\Language; + +class GetLanguageCode extends GetLanguage +{ + protected function init() + { + parent::init(); + $this->dimension = new Language(); + $this->name = Piwik::translate('UserLanguage_LanguageCode'); + $this->documentation = ''; + $this->order = 11; + $this->widgetTitle = 'UserLanguage_LanguageCode'; + } + + public function getRelatedReports() + { + return array( + new GetLanguage() + ); + } + +} |