*/ class Mage_Adminhtml_Block_Widget_Accordion_Item extends Mage_Adminhtml_Block_Widget { protected $_accordion; public function __construct() { parent::__construct(); } public function setAccordion($accordion) { $this->_accordion = $accordion; return $this; } public function getTarget() { return ($this->getAjax()) ? 'ajax' : ''; } public function getTitle() { $title = $this->getData('title'); $url = $this->getContentUrl() ? $this->getContentUrl() : '#'; $title = ''.$title.''; return $title; } public function getContent() { $content = $this->getData('content'); if (is_string($content)) { return $content; } if ($content instanceof Mage_Core_Block_Abstract) { return $content->toHtml(); } return null; } public function getClass() { $class = $this->getData('class'); if ($this->getOpen()) { $class.= ' open'; } return $class; } protected function _toHtml() { $content = $this->getContent(); $html = '
'; $html.= $this->getTitle(); $html.= '
'; $html.= '
'; $html.= $content; $html.= '
'; return $html; } }