getProcessesCollection()->addEventsStats(); /** @var $process Mage_Index_Model_Process */ foreach ($processes as $process) { if (($process->getStatus() == Mage_Index_Model_Process::STATUS_REQUIRE_REINDEX || $process->getEvents() > 0) && $process->getIndexer()->isVisible() ) { $res[] = $process->getIndexer()->getName(); } } return $res; } /** * Get index management url * * @return string */ public function getManageUrl() { return $this->getUrl('adminhtml/process/list'); } /** * ACL validation before html generation * * @return string */ protected function _toHtml() { if (Mage::getSingleton('admin/session')->isAllowed('system/index')) { return parent::_toHtml(); } return ''; } }