Public Member Functions | |
isEnabled ($skipAdminCheck=false) | |
isRebuilt () | |
Public Attributes | |
const | XML_PATH_IS_ENABLED_FLAT_CATALOG_CATEGORY = 'catalog/frontend/flat_catalog_category' |
Definition at line 34 of file Flat.php.
isEnabled | ( | $ | skipAdminCheck = false |
) |
Return true if flat catalog is enabled, rebuileded and is not Admin
boolean | $skipAdmin |
Definition at line 44 of file Flat.php.
00045 { 00046 $flatFlag = Mage::getStoreConfigFlag(self::XML_PATH_IS_ENABLED_FLAT_CATALOG_CATEGORY); 00047 $isFront = !Mage::app()->getStore()->isAdmin(); 00048 if ($skipAdminCheck === true) { 00049 $isFront = true; 00050 } 00051 00052 return (boolean) $flatFlag && $isFront; 00053 }
isRebuilt | ( | ) |
Return true if catalog category flat data rebuilt
Definition at line 60 of file Flat.php.
00061 { 00062 return Mage::getResourceSingleton('catalog/category_flat')->isRebuilt(); 00063 }
const XML_PATH_IS_ENABLED_FLAT_CATALOG_CATEGORY = 'catalog/frontend/flat_catalog_category' |