当前位置: 首页>>代码示例>>PHP>>正文


PHP Mage_Index_Model_Process::getModesOptions方法代码示例

本文整理汇总了PHP中Mage_Index_Model_Process::getModesOptions方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Index_Model_Process::getModesOptions方法的具体用法?PHP Mage_Index_Model_Process::getModesOptions怎么用?PHP Mage_Index_Model_Process::getModesOptions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Mage_Index_Model_Process的用法示例。


在下文中一共展示了Mage_Index_Model_Process::getModesOptions方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _prepareMassaction

 /**
  * Add mass-actions to grid
  *
  * @return Mage_Index_Block_Adminhtml_Process_Grid
  */
 protected function _prepareMassaction()
 {
     $this->setMassactionIdField('process_id');
     $this->getMassactionBlock()->setFormFieldName('process');
     $this->getMassactionBlock()->addItem('change_mode', array('label' => Mage::helper('enterprise_index')->__('Change Index Mode'), 'url' => $this->getUrl('*/*/massChangeMode'), 'additional' => array('mode' => array('name' => 'index_mode', 'type' => 'select', 'class' => 'required-entry', 'label' => Mage::helper('enterprise_index')->__('Index mode'), 'values' => $this->_processModel->getModesOptions()))));
     $this->getMassactionBlock()->addItem('reindex', array('label' => Mage::helper('enterprise_index')->__('Reindex Data'), 'url' => $this->getUrl('*/*/massReindex'), 'selected' => true));
     return $this;
 }
开发者ID:hyhoocchan,项目名称:mage-local,代码行数:13,代码来源:Grid.php

示例2: _prepareColumns

 /**
  * Prepare grid columns
  */
 protected function _prepareColumns()
 {
     $baseUrl = $this->getUrl();
     $this->addColumn('indexer_code', array('header' => Mage::helper('index')->__('Index'), 'width' => '180', 'align' => 'left', 'index' => 'name', 'sortable' => false));
     $this->addColumn('description', array('header' => Mage::helper('index')->__('Description'), 'align' => 'left', 'index' => 'description', 'sortable' => false));
     $this->addColumn('mode', array('header' => Mage::helper('index')->__('Mode'), 'width' => '150', 'align' => 'left', 'index' => 'mode', 'type' => 'options', 'options' => $this->_processModel->getModesOptions()));
     $this->addColumn('status', array('header' => Mage::helper('index')->__('Status'), 'width' => '120', 'align' => 'left', 'index' => 'status', 'type' => 'options', 'options' => $this->_processModel->getStatusesOptions(), 'frame_callback' => array($this, 'decorateStatus')));
     $this->addColumn('update_required', array('header' => Mage::helper('index')->__('Update Required'), 'sortable' => false, 'width' => '120', 'align' => 'left', 'index' => 'update_required', 'type' => 'options', 'options' => $this->_processModel->getUpdateRequiredOptions(), 'frame_callback' => array($this, 'decorateUpdateRequired')));
     $this->addColumn('ended_at', array('header' => Mage::helper('index')->__('Updated At'), 'type' => 'datetime', 'width' => '180', 'align' => 'left', 'index' => 'ended_at', 'frame_callback' => array($this, 'decorateDate')));
     $this->addColumn('action', array('header' => Mage::helper('index')->__('Action'), 'width' => '100', 'type' => 'action', 'getter' => 'getId', 'actions' => array(array('caption' => Mage::helper('index')->__('Reindex Data'), 'url' => array('base' => '*/*/reindexProcess'), 'field' => 'process')), 'filter' => false, 'sortable' => false, 'is_system' => true));
     return parent::_prepareColumns();
 }
开发者ID:ravi2jdesign,项目名称:solvingmagento_1.7.0,代码行数:15,代码来源:Grid.php

示例3: getModesOptions

 /**
  * Adding new option to the modes options
  *
  * @return array
  */
 public function getModesOptions()
 {
     $modesOptions = parent::getModesOptions();
     $modesOptions[self::MODE_QUEUED] = Mage::helper('index')->__('Queue Events');
     return $modesOptions;
 }
开发者ID:brentwpeterson,项目名称:Aoe_Index,代码行数:11,代码来源:Process.php


注:本文中的Mage_Index_Model_Process::getModesOptions方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。