change author description, refactor module

This commit is contained in:
Daniel Seifert 2013-02-21 13:49:05 +00:00
bovenliggende e44bc7e363
commit 2bb5592b87
11 gewijzigde bestanden met toevoegingen van 23 en 20 verwijderingen

Bestand weergeven

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

Bestand weergeven

@ -15,7 +15,7 @@
*
* @link http://www.oxidmodule.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_
@ -25,8 +25,8 @@ class d3_cfg_googleanalytics extends d3_cfg_mod_
*/
public function render()
{
$this->_aViewData['sListClass'] = 'd3_cfg_googleanalytics_list';
$this->_aViewData['sMainClass'] = 'd3_cfg_googleanalytics_main';
$this->addTplParam('sListClass', 'd3_cfg_googleanalytics_list');
$this->addTplParam('sMainClass', 'd3_cfg_googleanalytics_main');
return parent::render();
}
}

Bestand weergeven

@ -15,7 +15,7 @@
*
* @link http://www.oxidmodule.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

Bestand weergeven

@ -15,7 +15,7 @@
*
* @link http://www.oxidmodule.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

Bestand weergeven

@ -15,7 +15,7 @@
*
* @link http://www.oxidmodule.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

Bestand weergeven

@ -15,7 +15,7 @@
*
* @link http://www.oxidmodule.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

Bestand weergeven

@ -14,7 +14,7 @@
*
* @link http://www.oxidmodule.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 {}

Bestand weergeven

@ -15,15 +15,13 @@
*
* @link http://www.oxidmodule.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
{
private $_sModId = 'd3_googleanalytics';
private $_oSet;
/**
* @return null
*/
@ -31,14 +29,19 @@ class d3_oxcmp_utils_googleAnalytics extends d3_oxcmp_utils_googleAnalytics_pare
{
$ret = parent::render();
// load module config
$this->_oSet = d3_cfg_mod::get($this->_sModId);
/** @var $oParentView oxView */
$oParentView = $this->getParent();
$oParentView->addTplParam('blD3GoogleAnalyticsActive', $this->_oSet->getFieldData('oxactive'));
$oParentView->addTplParam('oD3GASettings', $this->_oSet);
$oParentView->addTplParam('blD3GoogleAnalyticsActive', d3_cfg_mod::get($this->d3getModId())->isActive());
$oParentView->addTplParam('oD3GASettings', d3_cfg_mod::get($this->d3getModId()));
return $ret;
}
/**
* @return string
*/
public function d3getModId()
{
return $this->_sModId;
}
}

Bestand weergeven

@ -15,7 +15,7 @@
*
* @link http://www.oxidmodule.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

Bestand weergeven

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

Bestand weergeven

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