Mage_Catalog_Helper_Product_Flat Class Reference

Inheritance diagram for Mage_Catalog_Helper_Product_Flat:

Mage_Core_Helper_Abstract

List of all members.

Public Member Functions

 getFlag ()
 isBuilt ()
 isEnabled ($store=null)
 isAddFilterableAttributes ()
 isAddChildData ()

Public Attributes

const XML_PATH_USE_PRODUCT_FLAT = 'catalog/frontend/flat_catalog_product'
const XML_NODE_ADD_FILTERABLE_ATTRIBUTES = 'global/catalog/product/flat/add_filterable_attributes'
const XML_NODE_ADD_CHILD_DATA = 'global/catalog/product/flat/add_child_data'

Protected Attributes

 $_flagObject


Detailed Description

Definition at line 35 of file Flat.php.


Member Function Documentation

getFlag (  ) 

Retrieve Catalog Product Flat Flag object

Returns:
Mage_Catalog_Model_Product_Flat_Flag

Definition at line 53 of file Flat.php.

00054     {
00055         if (is_null($this->_flagObject)) {
00056             $this->_flagObject = Mage::getSingleton('catalog/product_flat_flag')
00057                 ->loadSelf();
00058         }
00059         return $this->_flagObject;
00060     }

isAddChildData (  ) 

Is add child data to Flat

Returns:
int

Definition at line 101 of file Flat.php.

00102     {
00103         return intval(Mage::getConfig()->getNode(self::XML_NODE_ADD_CHILD_DATA));
00104     }

isAddFilterableAttributes (  ) 

Is add filterable attributes to Flat table

Returns:
int

Definition at line 91 of file Flat.php.

00092     {
00093         return intval(Mage::getConfig()->getNode(self::XML_NODE_ADD_FILTERABLE_ATTRIBUTES));
00094     }

isBuilt (  ) 

Check is builded Catalog Product Flat Data

Returns:
bool

Definition at line 67 of file Flat.php.

00068     {
00069         return $this->getFlag()->getIsBuilt();
00070     }

isEnabled ( store = null  ) 

Check is enable catalog product for store

Parameters:
mixed $store
Returns:
bool

Definition at line 78 of file Flat.php.

00079     {
00080         if (Mage::app()->getStore($store)->isAdmin()) {
00081             return false;
00082         }
00083         return Mage::getStoreConfigFlag(self::XML_PATH_USE_PRODUCT_FLAT, $store);
00084     }


Member Data Documentation

$_flagObject [protected]

Definition at line 46 of file Flat.php.

const XML_NODE_ADD_CHILD_DATA = 'global/catalog/product/flat/add_child_data'

Definition at line 39 of file Flat.php.

const XML_NODE_ADD_FILTERABLE_ATTRIBUTES = 'global/catalog/product/flat/add_filterable_attributes'

Definition at line 38 of file Flat.php.

const XML_PATH_USE_PRODUCT_FLAT = 'catalog/frontend/flat_catalog_product'

Definition at line 37 of file Flat.php.


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

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