public function matchEvent(Mage_Index_Model_Event $event) { foreach ($this->_getSources() as $source) { /* @var $resource Mana_Seo_Resource_UrlIndexer */ /** @noinspection PhpUndefinedFieldInspection */ $resource = Mage::getResourceSingleton((string) $source->resource); if ($resource->match($this, $event)) { return true; } } return parent::matchEvent($event); }
/** * Retrieve Indexer description * * @return string */ public function getDescription() { $targets = $this->_sortTargetsByDependency(); $descriptions = array(); foreach ($targets as $target) { if (isset($target->description)) { $descriptions[] = (string) $target->description; } } $result = parent::getDescription(); if (count($descriptions)) { $result .= ': ' . implode(', ', $descriptions); } return $result; }