Mage_Cms_Block_Block Class Reference

Inheritance diagram for Mage_Cms_Block_Block:

Mage_Core_Block_Abstract Varien_Object

List of all members.

Protected Member Functions

 _toHtml ()


Detailed Description

Definition at line 34 of file Block.php.


Member Function Documentation

_toHtml (  )  [protected]

Override this method in descendants to produce html

Returns:
string

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     }


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

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