<?php /** * Product: Layered Navigation Pro for Enterprise Edition - 16/08/12 * Package: AdjustWare_Nav_10.4.9_10.0.0_557110 * Purchase ID: hXgQU3oI8FOfJ8PDCk5s6h6XPM5oH2Kx0N6TCAPkqN * Generated: 2013-04-22 06:59:44 * File path: app/code/local/AdjustWare/Nav/Model/Catalog/Layer/Filter/Category.php * Copyright: (c) 2013 AITOC, Inc. */ if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Nav')) { BfOpaChkEeNmajOB('7a8822a63cd7feb084b1a869c79a47fc'); class AdjustWare_Nav_Model_Catalog_Layer_Filter_Category extends Mage_Catalog_Model_Layer_Filter_Category { protected $cat = null; public function apply(Zend_Controller_Request_Abstract $request, $filterBlock) { // very small optimization $catId = (int) Mage::helper('adjnav')->getParam($this->getRequestVar()); if ($catId) { $request->setParam($this->getRequestVar(), $catId); parent::apply($request, $filterBlock); } $category = $this->getCategory(); if (!Mage::registry('current_category_filter')) { Mage::register('current_category_filter', $category); } if (!isset($filter) || !$filter) { $this->addCategoryFilter($category, null); return $this; }
<?php if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Nav')) { BfOpaChkEeNmajOB('b2a95e2ec290706d1cb55cff52dc0cdf'); class AdjustWare_Nav_AjaxController extends Mage_Core_Controller_Front_Action { public function categoryAction() { $categoryId = (int) $this->getRequest()->getQuery('cat'); if (!$categoryId && Mage::helper('adjnav')->isCategoryCleared(true)) { $categoryId = (int) $this->getRequest()->getParam('id', false); } if (!$categoryId) { $categoryId = (int) $this->getRequest()->getParam('id', false); } if (!$categoryId) { $categoryId = Mage::getSingleton('catalog/session')->getAdjnavLastCategoryId(); } if (!$categoryId) { $this->_forward('noRoute'); return; } $category = Mage::getModel('catalog/category')->setStoreId(Mage::app()->getStore()->getId())->load($categoryId); Mage::register('current_category', $category); try { $this->loadLayout(); } catch (Varien_Exception $e) { if (NULL !== strpos($e->getMessage(), 'addColumnCountLayoutDepend') && version_compare(Mage::getVersion(), '1.3.2', '<')) { } else { throw $e; }
<?php /** * Product: Layered Navigation Pro for Enterprise Edition - 16/08/12 * Package: AdjustWare_Nav_10.4.9_10.0.0_557110 * Purchase ID: hXgQU3oI8FOfJ8PDCk5s6h6XPM5oH2Kx0N6TCAPkqN * Generated: 2013-04-22 06:59:44 * File path: app/code/local/AdjustWare/Nav/Block/Rewrite/EnterpriseSearchCatalogLayerView.php * Copyright: (c) 2013 AITOC, Inc. */ if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Nav')) { BfOpaChkEeNmajOB('4a98f7bafc8a28b8e99826246be45d89'); class AdjustWare_Nav_Block_Rewrite_EnterpriseSearchCatalogLayerView extends Enterprise_Search_Block_Catalog_Layer_View { } }
<?php /** * Product: Layered Navigation Pro for Enterprise Edition - 16/08/12 * Package: AdjustWare_Nav_10.4.9_10.0.0_557110 * Purchase ID: hXgQU3oI8FOfJ8PDCk5s6h6XPM5oH2Kx0N6TCAPkqN * Generated: 2013-04-22 06:59:44 * File path: app/code/local/AdjustWare/Nav/Block/Rewrite/FrontCatalogBreadcrumbs.php * Copyright: (c) 2013 AITOC, Inc. */ if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Nav')) { BfOpaChkEeNmajOB('13f6a1112ca163662e2a4de39ef5a1df'); /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@magentocommerce.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade Magento to newer * versions in the future. If you wish to customize Magento for your * needs please refer to http://www.magentocommerce.com for more information. *
<?php if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Nav')) { BfOpaChkEeNmajOB('48b5757d6dc8bbebb633d987aa77c419'); class AdjustWare_Nav_Block_List extends Mage_Core_Block_Template { protected $_productCollection; protected $_module = 'catalog'; protected $_solrModel = 'enterprise_search'; public $_category = 0; public function getListBlock() { return $this->getChild('product_list'); } protected function _isCacheActive() { if (Mage::getSingleton('core/session')->getMessages(true)->count() > 0) { return false; } return true; } public function getCacheLifetime() { if ($this->_isCacheActive()) { return false; } } public function getCacheKey() { if (!$this->_isCacheActive()) { parent::getCacheKey();
<?php /** * Product: Layered Navigation Pro for Enterprise Edition - 16/08/12 * Package: AdjustWare_Nav_10.4.9_10.0.0_557110 * Purchase ID: hXgQU3oI8FOfJ8PDCk5s6h6XPM5oH2Kx0N6TCAPkqN * Generated: 2013-04-22 06:59:44 * File path: app/code/local/AdjustWare/Nav/Model/Rewrite/CatalogIndexMysql4Attribute.php * Copyright: (c) 2013 AITOC, Inc. */ if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Nav')) { BfOpaChkEeNmajOB('4d0094c17a575be80166cd99f5578ddb'); /** * @author ksenevich@aitoc.com */ class AdjustWare_Nav_Model_Rewrite_CatalogIndexMysql4Attribute extends Mage_CatalogIndex_Model_Mysql4_Attribute { /** Separates counts' calculation for configurable and other products * * @param Mage_Catalog_Model_Resource_Eav_Attribute $attribute * @param Varien_Db_Select $select */ public function getCount($attribute, $entitySelect) { $select = clone $entitySelect; $select->reset(Zend_Db_Select::COLUMNS); $select->reset(Zend_Db_Select::ORDER); $select->reset(Zend_Db_Select::LIMIT_COUNT); $select->reset(Zend_Db_Select::LIMIT_OFFSET); $fields = array('count' => 'COUNT(index.entity_id)', 'index.value', 'type_id' => '("other")'); $select->columns($fields)->join(array('index' => $this->getMainTable()), 'index.entity_id = e.entity_id', array())->where('index.store_id = ?', $this->getStoreId())->where('index.attribute_id = ?', $attribute->getId())->group('index.value');
<?php /** * Product: Layered Navigation Pro for Enterprise Edition - 16/08/12 * Package: AdjustWare_Nav_10.4.9_10.0.0_557110 * Purchase ID: hXgQU3oI8FOfJ8PDCk5s6h6XPM5oH2Kx0N6TCAPkqN * Generated: 2013-04-22 06:59:44 * File path: app/code/local/AdjustWare/Nav/Block/Catalog/Layer/View.php * Copyright: (c) 2013 AITOC, Inc. */ if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Nav')) { BfOpaChkEeNmajOB('9329f3fa5998d1b0dd067b4251f06b7e'); class AdjustWare_Nav_Block_Catalog_Layer_View extends AdjustWare_Nav_Block_Rewrite_EnterpriseSearchCatalogLayerView { protected $_filterBlocks = null; public function getStateInfo() { $hlp = Mage::helper('adjnav'); $ajaxUrl = ''; if ($hlp->isSearch()) { $ajaxUrl = Mage::getUrl('adjnav/ajax/search'); } elseif ($cat = $this->getLayer()->getCurrentCategory()) { $ajaxUrl = Mage::getUrl('adjnav/ajax/category', array('id' => $cat->getId())); } $ajaxUrl = $hlp->stripQuery($ajaxUrl); //it could be search, home or category $url = $hlp->getContinueShoppingUrl(); $pageKey = Mage::getBlockSingleton('page/html_pager')->getPageVarName(); $queryStr = $hlp->getParams(true, $pageKey); if ($queryStr) { $queryStr = substr($queryStr, 1);
<?php /** * Product: Layered Navigation Pro for Enterprise Edition - 16/08/12 * Package: AdjustWare_Nav_10.4.9_10.0.0_557110 * Purchase ID: hXgQU3oI8FOfJ8PDCk5s6h6XPM5oH2Kx0N6TCAPkqN * Generated: 2013-04-22 06:59:44 * File path: app/code/local/AdjustWare/Nav/Model/Mysql4/Catalog/Product/Indexer/Configurable.php * Copyright: (c) 2013 AITOC, Inc. */ if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Nav')) { BfOpaChkEeNmajOB('d8873226c5a54e83b309ba237c0cf342'); class AdjustWare_Nav_Model_Mysql4_Catalog_Product_Indexer_Configurable extends Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Indexer_Eav_Source { /** * Flag that defines if need to disable keys during data inserting * * @var bool */ protected $_isDisableKeys = true; /** * Initialize connection and define main table name */ protected function _construct() { $this->_init('adjnav/catalog_product_index_configurable', 'entity_id'); } /** * Rebuild index data by entities * * @param int|array $processIds
<?php /** * Product: Layered Navigation Pro for Enterprise Edition - 16/08/12 * Package: AdjustWare_Nav_10.4.9_10.0.0_557110 * Purchase ID: hXgQU3oI8FOfJ8PDCk5s6h6XPM5oH2Kx0N6TCAPkqN * Generated: 2013-04-22 06:59:44 * File path: app/code/local/AdjustWare/Nav/Model/Mysql4/Eav/Entity/Attribute/Option/Stat/Collection.php * Copyright: (c) 2013 AITOC, Inc. */ if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Nav')) { BfOpaChkEeNmajOB('4123d92ff840cf36d63fa210d1c1d705'); /** * * @author ksenevich */ class AdjustWare_Nav_Model_Mysql4_Eav_Entity_Attribute_Option_Stat_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract { public function _construct() { $this->_init('adjnav/eav_entity_attribute_option_stat'); } public function setStoreId() { return $this; } } }