Mage_CatalogSearch_Block_Layer Class Reference

Inheritance diagram for Mage_CatalogSearch_Block_Layer:

Mage_Catalog_Block_Layer_View Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getLayer ()
 canShowBlock ()


Detailed Description

Definition at line 27 of file Layer.php.


Member Function Documentation

canShowBlock (  ) 

Check availability display layer block

Returns:
bool

Reimplemented from Mage_Catalog_Block_Layer_View.

Definition at line 44 of file Layer.php.

00045     {
00046         $availableResCount = (int) Mage::app()->getStore()
00047             ->getConfig(Mage_CatalogSearch_Model_Layer::XML_PATH_DISPLAY_LAYER_COUNT );
00048 
00049         if (!$availableResCount
00050             || ($availableResCount>=$this->getLayer()->getProductCollection()->getSize())) {
00051             return parent::canShowBlock();
00052         }
00053         return false;
00054     }

getLayer (  ) 

Get layer object

Returns:
Mage_Catalog_Model_Layer

Reimplemented from Mage_Catalog_Block_Layer_View.

Definition at line 34 of file Layer.php.

00035     {
00036         return Mage::getSingleton('catalogsearch/layer');
00037     }


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

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