Public Member Functions | |
__construct () | |
getEditUrl () | |
getViewHtml () | |
Protected Member Functions | |
_prepareLayout () | |
Protected Attributes | |
$_objectId = 'id' |
Definition at line 35 of file Container.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 39 of file Container.php.
00040 { 00041 parent::__construct(); 00042 00043 $this->setTemplate('widget/view/container.phtml'); 00044 00045 $this->_addButton('back', array( 00046 'label' => Mage::helper('adminhtml')->__('Back'), 00047 'onclick' => 'window.location.href=\'' . $this->getUrl('*/*/') . '\'', 00048 'class' => 'back', 00049 )); 00050 00051 $this->_addButton('edit', array( 00052 'label' => Mage::helper('adminhtml')->__('Edit'), 00053 'class' => 'edit', 00054 'onclick' => 'window.location.href=\'' . $this->getEditUrl() . '\'', 00055 )); 00056 00057 }
_prepareLayout | ( | ) | [protected] |
Preparing global layout
You can redefine this method in child classes for changin layout
Reimplemented from Mage_Adminhtml_Block_Widget_Container.
Definition at line 59 of file Container.php.
00060 { 00061 $this->setChild('plane', $this->getLayout()->createBlock('adminhtml/' . $this->_controller . '_view_plane')); 00062 return parent::_prepareLayout(); 00063 }
getEditUrl | ( | ) |
Definition at line 65 of file Container.php.
00066 { 00067 return $this->getUrl('*/*/edit', array($this->_objectId => $this->getRequest()->getParam($this->_objectId))); 00068 }
getViewHtml | ( | ) |
Definition at line 70 of file Container.php.
00071 { 00072 return $this->getChildHtml('plane'); 00073 }
$_objectId = 'id' [protected] |
Definition at line 37 of file Container.php.