Protected Member Functions | |
_toHtml () |
Definition at line 34 of file Block.php.
_toHtml | ( | ) | [protected] |
Override this method in descendants to produce html
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 36 of file Block.php.
00037 { 00038 if (!$this->_beforeToHtml()) { 00039 return ''; 00040 } 00041 $html = ''; 00042 if ($blockId = $this->getBlockId()) { 00043 $block = Mage::getModel('cms/block') 00044 ->setStoreId(Mage::app()->getStore()->getId()) 00045 ->load($blockId); 00046 if (!$block->getIsActive()) { 00047 $html = ''; 00048 } else { 00049 $content = $block->getContent(); 00050 00051 $processor = Mage::getModel('core/email_template_filter'); 00052 $html = $processor->filter($content); 00053 } 00054 } 00055 return $html; 00056 }