Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Attribute_Source_Page Class Reference

Inheritance diagram for Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Attribute_Source_Page:

Mage_Eav_Model_Entity_Attribute_Source_Abstract Mage_Eav_Model_Entity_Attribute_Source_Interface

List of all members.

Public Member Functions

 getAllOptions ()


Detailed Description

Definition at line 34 of file Page.php.


Member Function Documentation

getAllOptions (  ) 

Retrieve All options

Returns:
array

Implements Mage_Eav_Model_Entity_Attribute_Source_Interface.

Definition at line 36 of file Page.php.

00037     {
00038         if (!$this->_options) {
00039             $this->_options = Mage::getResourceModel('cms/block_collection')
00040                 ->load()
00041                 ->toOptionArray();
00042             array_unshift($this->_options, array('value'=>'', 'label'=>Mage::helper('catalog')->__('Please select static block ...')));
00043         }
00044         return $this->_options;
00045     }


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

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