Public Member Functions | |
__construct () | |
render (Varien_Data_Form_Element_Abstract $element) | |
getElement () | |
getStoreViews () | |
getJsonStoreViews () | |
getJsonConversionPagesUrl () |
Definition at line 34 of file Conversion.php.
__construct | ( | ) |
Constructor
By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes
Reimplemented from Varien_Object.
Definition at line 36 of file Conversion.php.
getElement | ( | ) |
Reimplemented from Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset_Element.
Definition at line 47 of file Conversion.php.
getJsonConversionPagesUrl | ( | ) |
Definition at line 68 of file Conversion.php.
00069 { 00070 $storeViewsUrls = array(); 00071 foreach ($this->getStoreViews() as $_store) { 00072 Mage::helper('googleoptimizer')->setStoreId($_store->getId()); 00073 $storeViewsUrls[$_store->getCode()] = Mage::helper('googleoptimizer')->getConversionPagesUrl()->getData(); 00074 } 00075 $storeViewsUrls = new Varien_Object($storeViewsUrls); 00076 return $storeViewsUrls->toJson(); 00077 }
getJsonStoreViews | ( | ) |
Definition at line 58 of file Conversion.php.
00059 { 00060 $storeViews = array(); 00061 foreach ($this->getStoreViews() as $_store) { 00062 $storeViews[] = $_store->getCode(); 00063 } 00064 $storeViews = new Varien_Object($storeViews); 00065 return $storeViews->toJson(); 00066 }
getStoreViews | ( | ) |
Definition at line 52 of file Conversion.php.
00053 { 00054 $storeViews = Mage::app()->getStores(); 00055 return $storeViews; 00056 }
render | ( | Varien_Data_Form_Element_Abstract $ | element | ) |
Reimplemented from Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset_Element.
Definition at line 41 of file Conversion.php.
00042 { 00043 $this->_element = $element; 00044 return $this->toHtml(); 00045 }