for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace N98\Magento\Command\Indexer;
use N98\Magento\Command\AbstractMagentoCommand;
class AbstractMviewIndexerCommand extends AbstractMagentoCommand
{
/**
* @return bool
*/
public function isEnabled()
return $this->getApplication()->isMagentoEnterprise();
}
* @return \Enterprise_Mview_Model_Resource_Metadata_Collection
public function getMetaDataCollection()
$collection = $this->_getModel('enterprise_mview/metadata', '\Enterprise_Mview_Model_Resource_Metadata_Collection')->getCollection();
return $collection;
* @return array[]
protected function getIndexers()
/** @var \Enterprise_Index_Helper_Data $helper */
$helper = $this->_getHelper('enterprise_index', '\Enterprise_Index_Helper_Data');
$indexers = array();
foreach ($helper->getIndexers(true) as $indexer) {
$indexers[(string) $indexer->index_table] = $indexer;
foreach ($indexers as $indexerKey => $indexerData) {
if (!isset($indexerData->action_model->changelog)) {
unset($indexers[$indexerKey]);
return $indexers;
* @return \Enterprise_Mview_Model_Client
protected function getMviewClient()
return $this->_getModel('enterprise_mview/client', '\Enterprise_Mview_Model_Client');