Ejemplo n.º 1
0
 /**
  * Set indexer class name as data namespace for event object
  *
  * @param   Mage_Index_Model_Event $event
  * @return  Mage_Index_Model_Process
  */
 protected function _setEventNamespace(Mage_Index_Model_Event $event)
 {
     $namespace = get_class($this->getIndexer());
     $event->setDataNamespace($namespace);
     $event->setProcess($this);
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * Remove indexer namespace from event
  *
  * @param Mage_Index_Model_Event $event
  * @return Mage_Index_Model_Process
  */
 protected function _resetEventNamespace($event)
 {
     $event->setDataNamespace(null);
     $event->setProcess(null);
     return $this;
 }