Mage_Adminhtml_Block_Widget_Accordion Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Widget_Accordion:

Mage_Adminhtml_Block_Widget Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object Mage_Adminhtml_Block_Customer_Edit_Tab_View_Accordion

List of all members.

Public Member Functions

 __construct ()
 getItems ()
 addItem ($itemId, $config)

Protected Attributes

 $_items = array()


Detailed Description

Definition at line 34 of file Accordion.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 37 of file Accordion.php.

00038     {
00039         parent::__construct();
00040         $this->setTemplate('widget/accordion.phtml');
00041     }


Member Function Documentation

addItem ( itemId,
config 
)

Definition at line 48 of file Accordion.php.

00049     {
00050         $this->_items[$itemId] = $this->getLayout()->createBlock('adminhtml/widget_accordion_item')
00051             ->setData($config)
00052             ->setAccordion($this)
00053             ->setId($itemId);
00054         if (isset($config['content']) && $config['content'] instanceof Mage_Core_Block_Abstract) {
00055             $this->_items[$itemId]->setChild($itemId.'_content', $config['content']);
00056         }
00057             
00058         $this->setChild($itemId, $this->_items[$itemId]);
00059         return $this;
00060     }

getItems (  ) 

Definition at line 43 of file Accordion.php.

00044     {
00045         return $this->_items;
00046     }


Member Data Documentation

$_items = array() [protected]

Definition at line 36 of file Accordion.php.


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

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