Public Member Functions | |
getLayer () | |
canShowBlock () |
Definition at line 27 of file Layer.php.
canShowBlock | ( | ) |
Check availability display layer block
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
Reimplemented from Mage_Catalog_Block_Layer_View.
Definition at line 34 of file Layer.php.
00035 { 00036 return Mage::getSingleton('catalogsearch/layer'); 00037 }