
Public Member Functions | |
| __construct () | |
| getItems () | |
| addItem ($itemId, $config) | |
Protected Attributes | |
| $_items = array() | |
Definition at line 34 of file Accordion.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 37 of file Accordion.php.
00038 { 00039 parent::__construct(); 00040 $this->setTemplate('widget/accordion.phtml'); 00041 }
| 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 | ( | ) |
$_items = array() [protected] |
Definition at line 36 of file Accordion.php.
1.5.8