Exemplo n.º 1
0
 /**
  * Initialize indexer
  */
 public function __construct()
 {
     parent::__construct();
     $this->_helper = Mage::helper('netzarbeiter_groupscatalog2');
     $this->_initStores();
     $this->_initGroupIds();
 }
Exemplo n.º 2
0
 /**
  * Return name of table for given $storeId.
  *
  * @param integer $storeId
  * @return string
  */
 public function getMainStoreTable($storeId = Mage_Catalog_Model_Abstract::DEFAULT_STORE_ID)
 {
     if (is_string($storeId)) {
         $storeId = intval($storeId);
     }
     if ($this->getUseStoreTables() && $storeId) {
         $suffix = sprintf('store_%d', $storeId);
         $table = $this->getTable(array('catalog/category_flat', $suffix));
     } else {
         $table = parent::getMainTable();
     }
     return $table;
 }
Exemplo n.º 3
0
 /**
  * Insert data from select statement
  *
  * @param Mage_Index_Model_Resource_Abstract $object
  * @param Varien_Db_Select $select
  * @param string $destTable
  * @param array $columns
  * @param bool $readToIndex
  * @return Mage_Index_Model_Resource_Helper_Mysql4
  */
 public function insertData($object, $select, $destTable, $columns, $readToIndex)
 {
     return $object->insertFromSelect($select, $destTable, $columns, $readToIndex);
 }
 /**
  * Constructor for Enterprise_TargetRule_Model_Resource_Index
  *
  * @param array $args
  */
 public function __construct(array $args = array())
 {
     $this->_factory = !empty($args['factory']) ? $args['factory'] : Mage::getSingleton('core/factory');
     parent::__construct();
 }