Mage_Catalog_Helper_Category_Flat Class Reference

Inheritance diagram for Mage_Catalog_Helper_Category_Flat:

Mage_Core_Helper_Abstract

List of all members.

Public Member Functions

 isEnabled ($skipAdminCheck=false)
 isRebuilt ()

Public Attributes

const XML_PATH_IS_ENABLED_FLAT_CATALOG_CATEGORY = 'catalog/frontend/flat_catalog_category'


Detailed Description

Definition at line 34 of file Flat.php.


Member Function Documentation

isEnabled ( skipAdminCheck = false  ) 

Return true if flat catalog is enabled, rebuileded and is not Admin

Parameters:
boolean $skipAdmin
Returns:
boolean

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

Returns:
boolean

Definition at line 60 of file Flat.php.

00061     {
00062         return Mage::getResourceSingleton('catalog/category_flat')->isRebuilt();
00063     }


Member Data Documentation

const XML_PATH_IS_ENABLED_FLAT_CATALOG_CATEGORY = 'catalog/frontend/flat_catalog_category'

Definition at line 36 of file Flat.php.


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

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