Mage_Adminhtml_Block_System_Currency Class Reference

Inheritance diagram for Mage_Adminhtml_Block_System_Currency:

Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Protected Member Functions

 _construct ()
 _prepareLayout ()
 getHeader ()
 getSaveButtonHtml ()
 getResetButtonHtml ()
 getImportButtonHtml ()
 getServicesHtml ()
 getRatesMatrixHtml ()
 getImportFormAction ()


Detailed Description

Definition at line 35 of file Currency.php.


Member Function Documentation

_construct (  )  [protected]

Internal constructor, that is called from real constructor

Please override this one instead of overriding real __construct constructor

Please override this one instead of overriding real __construct constructor

Reimplemented from Mage_Core_Block_Abstract.

Definition at line 38 of file Currency.php.

00039     {
00040         $this->setTemplate('system/currency/rates.phtml');
00041     }

_prepareLayout (  )  [protected]

Preparing global layout

You can redefine this method in child classes for changin layout

Returns:
Mage_Core_Block_Abstract

Reimplemented from Mage_Core_Block_Abstract.

Definition at line 43 of file Currency.php.

00044     {
00045         $this->setChild('save_button',
00046             $this->getLayout()->createBlock('adminhtml/widget_button')
00047                 ->setData(array(
00048                     'label'     => Mage::helper('adminhtml')->__('Save Currency Rates'),
00049                     'onclick'   => 'currencyForm.submit();',
00050                     'class'     => 'save'
00051         )));
00052 
00053         $this->setChild('reset_button',
00054             $this->getLayout()->createBlock('adminhtml/widget_button')
00055                 ->setData(array(
00056                     'label'     => Mage::helper('adminhtml')->__('Reset'),
00057                     'onclick'   => 'document.location.reload()',
00058                     'class'     => 'reset'
00059         )));
00060 
00061         $this->setChild('import_button',
00062             $this->getLayout()->createBlock('adminhtml/widget_button')
00063                 ->setData(array(
00064                     'label'     => Mage::helper('adminhtml')->__('Import'),
00065                     'class'     => 'add',
00066                     'type'      => 'submit',
00067         )));
00068 
00069         $this->setChild('rates_matrix',
00070             $this->getLayout()->createBlock('adminhtml/system_currency_rate_matrix')
00071         );
00072 
00073         return parent::_prepareLayout();
00074     }

getHeader (  )  [protected]

Definition at line 76 of file Currency.php.

00077     {
00078         return Mage::helper('adminhtml')->__('Manage Currency Rates');
00079     }

getImportButtonHtml (  )  [protected]

Definition at line 91 of file Currency.php.

00092     {
00093         return $this->getChildHtml('import_button');
00094     }

getImportFormAction (  )  [protected]

Definition at line 113 of file Currency.php.

00114     {
00115         return $this->getUrl('*/*/fetchRates');
00116     }

getRatesMatrixHtml (  )  [protected]

Definition at line 108 of file Currency.php.

00109     {
00110         return $this->getChildHtml('rates_matrix');
00111     }

getResetButtonHtml (  )  [protected]

Definition at line 86 of file Currency.php.

00087     {
00088         return $this->getChildHtml('reset_button');
00089     }

getSaveButtonHtml (  )  [protected]

Definition at line 81 of file Currency.php.

00082     {
00083         return $this->getChildHtml('save_button');
00084     }

getServicesHtml (  )  [protected]

Definition at line 96 of file Currency.php.

00097     {
00098         return $this->getLayout()->createBlock('adminhtml/html_select')
00099             ->setOptions(Mage::getModel('adminhtml/system_config_source_currency_service')->toOptionArray(0))
00100             ->setId('rate_services')
00101             ->setName('rate_services')
00102             ->setValue(Mage::getSingleton('adminhtml/session')->getCurrencyRateService(true))
00103             ->setTitle(Mage::helper('adminhtml')->__('Import Service'))
00104             ->toHtml();
00105 
00106     }


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

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