Public Member Functions | |
setPageType ($pageType) | |
getPageType () | |
Protected Member Functions | |
_initGoogleOptimizerModel () | |
Protected Attributes | |
$_pageType = null |
Definition at line 36 of file Conversion.php.
_initGoogleOptimizerModel | ( | ) | [protected] |
override this method if need something special for type of script
Reimplemented from Mage_GoogleOptimizer_Block_Code.
Definition at line 40 of file Conversion.php.
00041 { 00042 $collection = Mage::getModel('googleoptimizer/code') 00043 ->getCollection(); 00044 00045 if ($this->getPageType()) { 00046 $collection->addFieldToFilter('conversion_page', $this->getPageType()); 00047 } 00048 00049 $conversionCodes = array(); 00050 foreach ($collection as $_item) { 00051 $conversionCodes[] = $_item->getConversionScript(); 00052 } 00053 $this->_setGoogleOptimizerModel( 00054 new Varien_Object(array( 00055 'conversion_script' => implode('', $conversionCodes) 00056 )) 00057 ); 00058 return parent::_initGoogleOptimizerModel(); 00059 }
getPageType | ( | ) |
setPageType | ( | $ | pageType | ) |
$_pageType = null [protected] |
Definition at line 38 of file Conversion.php.