Mage_Adminhtml_Block_Widget_View_Container Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Widget_View_Container:

Mage_Adminhtml_Block_Widget_Container Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getEditUrl ()
 getViewHtml ()

Protected Member Functions

 _prepareLayout ()

Protected Attributes

 $_objectId = 'id'


Detailed Description

Definition at line 35 of file Container.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 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     }


Member Function Documentation

_prepareLayout (  )  [protected]

Preparing global layout

You can redefine this method in child classes for changin layout

Returns:
Mage_Core_Block_Abstract

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     }


Member Data Documentation

$_objectId = 'id' [protected]

Definition at line 37 of file Container.php.


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

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