Public Member Functions | |
__construct () | |
getDesignChangeId () | |
getDeleteUrl () | |
getSaveUrl () | |
getValidationUrl () | |
getHeader () | |
Protected Member Functions | |
_prepareLayout () |
Definition at line 27 of file Edit.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 29 of file Edit.php.
00030 { 00031 parent::__construct(); 00032 $this->setTemplate('system/design/edit.phtml'); 00033 $this->setId('design_edit'); 00034 }
_prepareLayout | ( | ) | [protected] |
Preparing global layout
You can redefine this method in child classes for changin layout
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 36 of file Edit.php.
00037 { 00038 $this->setChild('back_button', 00039 $this->getLayout()->createBlock('adminhtml/widget_button') 00040 ->setData(array( 00041 'label' => Mage::helper('core')->__('Back'), 00042 'onclick' => 'setLocation(\''.$this->getUrl('*/*/').'\')', 00043 'class' => 'back' 00044 )) 00045 ); 00046 00047 $this->setChild('save_button', 00048 $this->getLayout()->createBlock('adminhtml/widget_button') 00049 ->setData(array( 00050 'label' => Mage::helper('core')->__('Save'), 00051 'onclick' => 'designForm.submit()', 00052 'class' => 'save' 00053 )) 00054 ); 00055 00056 $this->setChild('delete_button', 00057 $this->getLayout()->createBlock('adminhtml/widget_button') 00058 ->setData(array( 00059 'label' => Mage::helper('core')->__('Delete'), 00060 'onclick' => 'confirmSetLocation(\''.Mage::helper('core')->__('Are you sure?').'\', \''.$this->getDeleteUrl().'\')', 00061 'class' => 'delete' 00062 )) 00063 ); 00064 return parent::_prepareLayout(); 00065 }
getDeleteUrl | ( | ) |
getDesignChangeId | ( | ) |
Definition at line 67 of file Edit.php.
00068 { 00069 return Mage::registry('design')->getId(); 00070 }
getHeader | ( | ) |
Definition at line 87 of file Edit.php.
00088 { 00089 $header = ''; 00090 if (Mage::registry('design')->getId()) { 00091 $header = Mage::helper('core')->__('Edit Design Change'); 00092 } else { 00093 $header = Mage::helper('core')->__('New Design Change'); 00094 } 00095 return $header; 00096 }
getSaveUrl | ( | ) |
getValidationUrl | ( | ) |