Mage_GoogleOptimizer_Block_Adminhtml_Cms_Page_Edit_Renderer_Conversion Class Reference

Inheritance diagram for Mage_GoogleOptimizer_Block_Adminhtml_Cms_Page_Edit_Renderer_Conversion:

Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset_Element Mage_Adminhtml_Block_Template Varien_Data_Form_Element_Renderer_Interface Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 render (Varien_Data_Form_Element_Abstract $element)
 getElement ()
 getStoreViews ()
 getJsonStoreViews ()
 getJsonConversionPagesUrl ()


Detailed Description

Definition at line 34 of file Conversion.php.


Constructor & Destructor Documentation

__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.

00037     {
00038         $this->setTemplate('googleoptimizer/cms/edit/renderer/conversion.phtml');
00039     }


Member Function Documentation

getElement (  ) 

Reimplemented from Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset_Element.

Definition at line 47 of file Conversion.php.

00048     {
00049         return $this->_element;
00050     }

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     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:17 2009 for Magento by  doxygen 1.5.8