
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 | |
Definition at line 35 of file Flat.php.
| getFlag | ( | ) |
Retrieve Catalog Product Flat Flag object
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
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
Definition at line 91 of file Flat.php.
00092 { 00093 return intval(Mage::getConfig()->getNode(self::XML_NODE_ADD_FILTERABLE_ATTRIBUTES)); 00094 }
| isBuilt | ( | ) |
| isEnabled | ( | $ | store = null |
) |
Check is enable catalog product for store
| mixed | $store |
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 }
| const XML_NODE_ADD_CHILD_DATA = 'global/catalog/product/flat/add_child_data' |
| const XML_NODE_ADD_FILTERABLE_ATTRIBUTES = 'global/catalog/product/flat/add_filterable_attributes' |
| const XML_PATH_USE_PRODUCT_FLAT = 'catalog/frontend/flat_catalog_product' |
1.5.8