change author description, refactor module

This commit is contained in:
Daniel Seifert 2013-02-21 13:49:05 +00:00
parent e44bc7e363
commit 2bb5592b87
11 changed files with 23 additions and 20 deletions

View File

@ -15,7 +15,7 @@
* *
* @link http://www.oxidmodule.com * @link http://www.oxidmodule.com
* @link http://www.shopmodule.com * @link http://www.shopmodule.com
* @copyright (C) D3 Data Development * @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
*/ */
/** /**

View File

@ -15,7 +15,7 @@
* *
* @link http://www.oxidmodule.com * @link http://www.oxidmodule.com
* @link http://www.shopmodule.com * @link http://www.shopmodule.com
* @copyright (C) D3 Data Development * @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
*/ */
class d3_cfg_googleanalytics extends d3_cfg_mod_ class d3_cfg_googleanalytics extends d3_cfg_mod_
@ -25,8 +25,8 @@ class d3_cfg_googleanalytics extends d3_cfg_mod_
*/ */
public function render() public function render()
{ {
$this->_aViewData['sListClass'] = 'd3_cfg_googleanalytics_list'; $this->addTplParam('sListClass', 'd3_cfg_googleanalytics_list');
$this->_aViewData['sMainClass'] = 'd3_cfg_googleanalytics_main'; $this->addTplParam('sMainClass', 'd3_cfg_googleanalytics_main');
return parent::render(); return parent::render();
} }
} }

View File

@ -15,7 +15,7 @@
* *
* @link http://www.oxidmodule.com * @link http://www.oxidmodule.com
* @link http://www.shopmodule.com * @link http://www.shopmodule.com
* @copyright (C) D3 Data Development * @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
*/ */
class d3_cfg_googleanalytics_campaigns extends d3_cfg_mod_main class d3_cfg_googleanalytics_campaigns extends d3_cfg_mod_main

View File

@ -15,7 +15,7 @@
* *
* @link http://www.oxidmodule.com * @link http://www.oxidmodule.com
* @link http://www.shopmodule.com * @link http://www.shopmodule.com
* @copyright (C) D3 Data Development * @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
*/ */
class d3_cfg_googleanalytics_licence extends d3_cfg_mod_licence class d3_cfg_googleanalytics_licence extends d3_cfg_mod_licence

View File

@ -15,7 +15,7 @@
* *
* @link http://www.oxidmodule.com * @link http://www.oxidmodule.com
* @link http://www.shopmodule.com * @link http://www.shopmodule.com
* @copyright (C) D3 Data Development * @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
*/ */
class d3_cfg_googleanalytics_list extends d3_cfg_mod_list class d3_cfg_googleanalytics_list extends d3_cfg_mod_list

View File

@ -15,7 +15,7 @@
* *
* @link http://www.oxidmodule.com * @link http://www.oxidmodule.com
* @link http://www.shopmodule.com * @link http://www.shopmodule.com
* @copyright (C) D3 Data Development * @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
*/ */
class d3_cfg_googleanalytics_main extends d3_cfg_mod_main class d3_cfg_googleanalytics_main extends d3_cfg_mod_main

View File

@ -14,7 +14,7 @@
* *
* @link http://www.oxidmodule.com * @link http://www.oxidmodule.com
* @link http://www.shopmodule.com * @link http://www.shopmodule.com
* @copyright (C) D3 Data Development * @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
*/ */
class d3_oxcmp_utils_googleAnalytics_parent extends oxcmp_utils {} class d3_oxcmp_utils_googleAnalytics_parent extends oxcmp_utils {}

View File

@ -15,15 +15,13 @@
* *
* @link http://www.oxidmodule.com * @link http://www.oxidmodule.com
* @link http://www.shopmodule.com * @link http://www.shopmodule.com
* @copyright (C) D3 Data Development * @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
*/ */
class d3_oxcmp_utils_googleAnalytics extends d3_oxcmp_utils_googleAnalytics_parent class d3_oxcmp_utils_googleAnalytics extends d3_oxcmp_utils_googleAnalytics_parent
{ {
private $_sModId = 'd3_googleanalytics'; private $_sModId = 'd3_googleanalytics';
private $_oSet;
/** /**
* @return null * @return null
*/ */
@ -31,14 +29,19 @@ class d3_oxcmp_utils_googleAnalytics extends d3_oxcmp_utils_googleAnalytics_pare
{ {
$ret = parent::render(); $ret = parent::render();
// load module config
$this->_oSet = d3_cfg_mod::get($this->_sModId);
/** @var $oParentView oxView */ /** @var $oParentView oxView */
$oParentView = $this->getParent(); $oParentView = $this->getParent();
$oParentView->addTplParam('blD3GoogleAnalyticsActive', $this->_oSet->getFieldData('oxactive')); $oParentView->addTplParam('blD3GoogleAnalyticsActive', d3_cfg_mod::get($this->d3getModId())->isActive());
$oParentView->addTplParam('oD3GASettings', $this->_oSet); $oParentView->addTplParam('oD3GASettings', d3_cfg_mod::get($this->d3getModId()));
return $ret; return $ret;
} }
/**
* @return string
*/
public function d3getModId()
{
return $this->_sModId;
}
} }

View File

@ -15,7 +15,7 @@
* *
* @link http://www.oxidmodule.com * @link http://www.oxidmodule.com
* @link http://www.shopmodule.com * @link http://www.shopmodule.com
* @copyright (C) D3 Data Development * @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
*/ */
class d3_oxorder_googleanalytics extends d3_oxorder_googleanalytics_parent class d3_oxorder_googleanalytics extends d3_oxorder_googleanalytics_parent

View File

@ -15,7 +15,7 @@
* *
* @link http://www.oxidmodule.com * @link http://www.oxidmodule.com
* @link http://www.shopmodule.com * @link http://www.shopmodule.com
* @copyright (C) D3 Data Development * @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
*/ */
$sLangName = "Deutsch"; $sLangName = "Deutsch";

View File

@ -15,7 +15,7 @@
* *
* @link http://www.oxidmodule.com * @link http://www.oxidmodule.com
* @link http://www.shopmodule.com * @link http://www.shopmodule.com
* @copyright (C) D3 Data Development * @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
*/ */
$sLangName = "English"; $sLangName = "English";