Public Member Functions | |
__construct () | |
setAccordion ($accordion) | |
getTarget () | |
getTitle () | |
getContent () | |
getClass () | |
Protected Member Functions | |
_toHtml () | |
Protected Attributes | |
$_accordion |
Definition at line 34 of file Item.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 38 of file Item.php.
00039 { 00040 parent::__construct(); 00041 }
_toHtml | ( | ) | [protected] |
Render block HTML
Reimplemented from Mage_Core_Block_Template.
Definition at line 84 of file Item.php.
00085 { 00086 $content = $this->getContent(); 00087 $html = '<dt id="dt-'.$this->getHtmlId().'" class="'.$this->getClass().'">'; 00088 $html.= $this->getTitle(); 00089 $html.= '</dt>'; 00090 $html.= '<dd id="dd-'.$this->getHtmlId().'" class="'.$this->getClass().'">'; 00091 $html.= $content; 00092 $html.= '</dd>'; 00093 return $html; 00094 }
getClass | ( | ) |
getContent | ( | ) |
Definition at line 63 of file Item.php.
00064 { 00065 $content = $this->getData('content'); 00066 if (is_string($content)) { 00067 return $content; 00068 } 00069 if ($content instanceof Mage_Core_Block_Abstract) { 00070 return $content->toHtml(); 00071 } 00072 return null; 00073 }
getTarget | ( | ) |
getTitle | ( | ) |
setAccordion | ( | $ | accordion | ) |