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


PHP Mage_Adminhtml_Block_Widget_Grid::_prepareMassaction方法代码示例

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


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

示例1: _prepareMassAction

 /**
  * Add questions delete mass action
  *
  * @return object
  */
 protected function _prepareMassAction()
 {
     parent::_prepareMassaction();
     $this->setMassactionIdField('customer_name');
     $this->getMassactionBlock()->setFormFieldName('order');
     $this->getMassactionBlock()->addItem('home_oneclick', array('label' => Mage::helper('home_oneclick')->__('Delete'), 'url' => $this->getUrl('*/*/massDelete'), 'confirm' => Mage::helper('home_oneclick')->__('Are you sure?')));
 }
开发者ID:KazakovVS,项目名称:Oneclick,代码行数:12,代码来源:Grid.php

示例2: _prepareMassaction

 protected function _prepareMassaction()
 {
     // Set massaction identifiers
     //--------------------------------
     $this->setMassactionIdField('id');
     $this->getMassactionBlock()->setFormFieldName('ids');
     //--------------------------------
     return parent::_prepareMassaction();
 }
开发者ID:naz-ahmed,项目名称:ndap-magento-mirror,代码行数:9,代码来源:Grid.php

示例3: _prepareMassaction

 protected function _prepareMassaction()
 {
     $this->setMassactionIdField('id');
     $this->setMassactionIdFieldOnlyIndexValue(true);
     //--------------------------------
     $this->getMassactionBlock()->addItem('assignGeneralId', array('label' => Mage::helper('M2ePro')->__('Search ASIN/ISBN automatically'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     $this->getMassactionBlock()->addItem('unassignGeneralId', array('label' => Mage::helper('M2ePro')->__('Reset ASIN/ISBN information'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     //--------------------------------
     return parent::_prepareMassaction();
 }
开发者ID:newedge-media,项目名称:iwantmymeds,代码行数:10,代码来源:Grid.php

示例4: _prepareMassaction

 protected function _prepareMassaction()
 {
     $this->setMassactionIdField('listing_product_id');
     $this->setMassactionIdFieldOnlyIndexValue(true);
     //--------------------------------
     $this->getMassactionBlock()->addItem('setDescriptionTemplate', array('label' => Mage::helper('M2ePro')->__('Set Description Policy'), 'url' => ''));
     $this->getMassactionBlock()->addItem('resetDescriptionTemplate', array('label' => Mage::helper('M2ePro')->__('Reset Description Policy'), 'url' => ''));
     //--------------------------------
     return parent::_prepareMassaction();
 }
开发者ID:newedge-media,项目名称:iwantmymeds,代码行数:10,代码来源:Grid.php

示例5: _prepareMassaction

 protected function _prepareMassaction()
 {
     $this->setMassactionIdField('id');
     $this->getMassactionBlock()->setUseSelectAll(false);
     $this->setMassactionIdFieldOnlyIndexValue(true);
     // Set mass-action
     //--------------------------------
     $this->getMassactionBlock()->addItem('removeFilter', array('label' => Mage::helper('M2ePro')->__('Remove'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     //--------------------------------
     return parent::_prepareMassaction();
 }
开发者ID:ReeceCrossland,项目名称:essua-m2epro,代码行数:11,代码来源:Grid.php

示例6: _prepareMassaction

 protected function _prepareMassaction()
 {
     // Set massaction identifiers
     //--------------------------------
     $this->setMassactionIdField('id');
     $this->getMassactionBlock()->setFormFieldName('ids');
     //--------------------------------
     //--------------------------------
     $this->getMassactionBlock()->addItem('delete', array('label' => Mage::helper('M2ePro')->__('Delete'), 'url' => $this->getUrl('*/*/deleteDbTableSelectedRows', array('model' => Mage::registry('M2ePro_data_model'), 'table' => Mage::registry('M2ePro_data_table'))), 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     //--------------------------------
     return parent::_prepareMassaction();
 }
开发者ID:par-orillonsoft,项目名称:app,代码行数:12,代码来源:Grid.php

示例7: _prepareMassaction

 protected function _prepareMassaction()
 {
     // Set massaction identifiers
     //--------------------------------
     $this->setMassactionIdField('main_table.id');
     $this->getMassactionBlock()->setFormFieldName('ids');
     //--------------------------------
     // Set mass-action
     //--------------------------------
     $this->getMassactionBlock()->addItem('resend_shipping', array('label' => Mage::helper('M2ePro')->__('Resend Shipping Information'), 'url' => $this->getUrl('*/adminhtml_order/resubmitShippingInfo'), 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     //--------------------------------
     return parent::_prepareMassaction();
 }
开发者ID:newedge-media,项目名称:iwantmymeds,代码行数:13,代码来源:Grid.php

示例8: _prepareMassaction

 protected function _prepareMassaction()
 {
     $this->setMassactionIdField('employee_grid_massaction');
     // Set massaction-url-param-name
     $this->getMassactionBlock()->setFormFieldName('id');
     // Add a massive-deletion button
     $this->getMassactionBlock()->addItem('delete', array('label' => $this->__('Remove Selected Employees'), 'url' => $this->getUrl('*/*/massDelete'), 'confirm' => $this->__('Sure, hey?')));
     // Prepare data for the massive-status-changing button (just down there...)
     $statuses = array(array('value' => 1, 'label' => $this->__('Enabled')), array('value' => 0, 'label' => $this->__('Disabled')));
     // Add a massive-status-changing button
     $this->getMassactionBlock()->addItem('status', array('label' => $this->__('Change status'), 'url' => $this->getUrl('*/*/massStatus', array('_current' => true)), 'additional' => array('cmbStatus' => array('name' => 'status', 'type' => 'select', 'class' => 'required-entry', 'label' => $this->__('Status'), 'values' => $statuses))));
     return parent::_prepareMassaction();
 }
开发者ID:namkingkong,项目名称:org.namma.magento.learning,代码行数:13,代码来源:Grid.php

示例9: _prepareMassaction

 protected function _prepareMassaction()
 {
     parent::_prepareMassaction();
     $this->setMassactionIdField('id');
     $this->getMassactionBlock()->setFormFieldName('id');
     $formKey = Mage::getSingleton('core/session')->getFormKey();
     $this->getMassactionBlock()->addItem('delete', array('label' => Mage::helper('zendesk')->__('Delete'), 'url' => $this->getUrl('*/adminhtml_zendesk/bulkDelete', array('form_key' => $formKey, '_current' => true)), 'confirm' => Mage::helper('zendesk')->__('Are you sure you want to delete selected tickets?')));
     $this->getMassactionBlock()->addItem('change_status', array('label' => Mage::helper('zendesk')->__('Change Status'), 'url' => $this->getUrl('*/adminhtml_zendesk/bulkChangeStatus', array('form_key' => $formKey, '_current' => true)), 'confirm' => Mage::helper('zendesk')->__('Are you sure you want to change status of selected tickets?'), 'additional' => array('visibility' => array('name' => 'status', 'type' => 'select', 'class' => 'required-entry', 'label' => Mage::helper('zendesk')->__('Status'), 'values' => Mage::helper('zendesk')->getStatusMap()))));
     $this->getMassactionBlock()->addItem('change_priority', array('label' => Mage::helper('zendesk')->__('Change Priority'), 'url' => $this->getUrl('*/adminhtml_zendesk/bulkChangePriority', array('form_key' => $formKey, '_current' => true)), 'confirm' => Mage::helper('zendesk')->__('Are you sure you want to change priority of selected tickets?'), 'additional' => array('visibility' => array('name' => 'priority', 'type' => 'select', 'class' => 'required-entry', 'label' => Mage::helper('zendesk')->__('Priority'), 'values' => Mage::helper('zendesk')->getPriorityMap()))));
     $this->getMassactionBlock()->addItem('change_type', array('label' => Mage::helper('zendesk')->__('Change Type'), 'url' => $this->getUrl('*/adminhtml_zendesk/bulkChangeType', array('form_key' => $formKey, '_current' => true)), 'confirm' => Mage::helper('zendesk')->__('Are you sure you want to change type of selected tickets?'), 'additional' => array('visibility' => array('name' => 'type', 'type' => 'select', 'class' => 'required-entry', 'label' => Mage::helper('zendesk')->__('Type'), 'values' => Mage::helper('zendesk')->getTypeMap()))));
     $this->getMassactionBlock()->addItem('mark_as_spam', array('label' => Mage::helper('zendesk')->__('Mark as Spam'), 'url' => $this->getUrl('*/adminhtml_zendesk/bulkMarkSpam', array('form_key' => $formKey, '_current' => true)), 'confirm' => Mage::helper('zendesk')->__('Are you sure you want to mark as spam selected tickets?')));
     return $this;
 }
开发者ID:Rodrifer,项目名称:candyclub,代码行数:13,代码来源:Abstract.php

示例10: _prepareMassaction

 protected function _prepareMassaction()
 {
     // Set mass-action identifiers
     //--------------------------------
     $this->setMassactionIdField('`main_table`.id');
     $this->getMassactionBlock()->setFormFieldName('ids');
     //--------------------------------
     // Set mass-action
     //--------------------------------
     $this->getMassactionBlock()->addItem('autoMapping', array('label' => Mage::helper('M2ePro')->__('Map Item(s) Automatically'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     $this->getMassactionBlock()->addItem('moving', array('label' => Mage::helper('M2ePro')->__('Move Item(s) to Listing'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     //--------------------------------
     return parent::_prepareMassaction();
 }
开发者ID:xiaoguizhidao,项目名称:bb,代码行数:14,代码来源:Grid.php

示例11: _prepareMassaction

 protected function _prepareMassaction()
 {
     // Set massaction identifiers
     //--------------------------------
     $this->setMassactionIdField('main_table.id');
     $this->getMassactionBlock()->setFormFieldName('ids');
     //--------------------------------
     // Set mass-action
     //--------------------------------
     $this->getMassactionBlock()->addItem('ship', array('label' => Mage::helper('M2ePro')->__('Mark Order(s) as Shipped'), 'url' => $this->getUrl('*/adminhtml_ebay_order/updateShippingStatus'), 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     $this->getMassactionBlock()->addItem('pay', array('label' => Mage::helper('M2ePro')->__('Mark Order(s) as Paid'), 'url' => $this->getUrl('*/adminhtml_ebay_order/updatePaymentStatus'), 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     //--------------------------------
     return parent::_prepareMassaction();
 }
开发者ID:xiaoguizhidao,项目名称:beut,代码行数:14,代码来源:Grid.php

示例12: _prepareMassaction

 protected function _prepareMassaction()
 {
     // Set massaction identifiers
     //--------------------------------
     $this->getMassactionBlock()->setFormFieldName('ids');
     //--------------------------------
     // Set fake action
     //--------------------------------
     if ($this->getMassactionBlock()->getCount() == 0) {
         $this->getMassactionBlock()->addItem('fake', array('label' => '    ', 'url' => '#'));
     }
     //--------------------------------
     return parent::_prepareMassaction();
 }
开发者ID:xiaoguizhidao,项目名称:devfashion,代码行数:14,代码来源:Abstract.php

示例13: _prepareMassaction

 protected function _prepareMassaction()
 {
     $typeIdentifier = Mage::helper('M2ePro/Component_Ebay_Motor_Compatibility')->getIdentifierKey($this->getCompatibilityType());
     // Set massaction identifiers
     //--------------------------------
     $this->setMassactionIdField('main_table.' . $typeIdentifier);
     $this->getMassactionBlock()->setFormFieldName($typeIdentifier);
     //--------------------------------
     // Set mass-action
     //--------------------------------
     $this->getMassactionBlock()->addItem('overwrite_attribute', array('label' => Mage::helper('M2ePro')->__('Overwrite in Compatibility Attribute'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     $this->getMassactionBlock()->addItem('add_to_attribute', array('label' => Mage::helper('M2ePro')->__('Add to Compatibility Attribute'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     //--------------------------------
     return parent::_prepareMassaction();
 }
开发者ID:ashfaqphplhr,项目名称:artificiallawnsforturf,代码行数:15,代码来源:Grid.php

示例14: _prepareMassaction

 protected function _prepareMassaction()
 {
     // Set massaction identifiers
     // ---------------------------------------
     $this->setMassactionIdField('main_table.id');
     $this->getMassactionBlock()->setFormFieldName('ids');
     // ---------------------------------------
     // Set delete action
     // ---------------------------------------
     $confirm = 'Attention! By deleting Account you delete all information on it from M2E Pro Server. ';
     $confirm .= 'This will cause inappropriate work of all Accounts\' copies.';
     $confirm = Mage::helper('M2ePro')->__($confirm);
     $this->getMassactionBlock()->addItem('delete', array('label' => Mage::helper('M2ePro')->__('Delete'), 'url' => $this->getUrl('*/*/delete'), 'confirm' => $confirm));
     // ---------------------------------------
     return parent::_prepareMassaction();
 }
开发者ID:ReeceCrossland,项目名称:essua-m2epro,代码行数:16,代码来源:Grid.php

示例15: _prepareMassaction

 protected function _prepareMassaction()
 {
     $typeIdentifier = Mage::helper('M2ePro/Component_Ebay_Motors')->getIdentifierKey($this->getMotorsType());
     // Set massaction identifiers
     //--------------------------------
     $this->setMassactionIdField('main_table.' . $typeIdentifier);
     $this->getMassactionBlock()->setFormFieldName($typeIdentifier);
     //--------------------------------
     // Set mass-action
     //--------------------------------
     $this->getMassactionBlock()->addItem('select', array('label' => Mage::helper('M2ePro')->__('Select'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     $this->getMassactionBlock()->addItem('setNote', array('label' => Mage::helper('M2ePro')->__('Set Note'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     $this->getMassactionBlock()->addItem('saveAsGroup', array('label' => Mage::helper('M2ePro')->__('Save As Group'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     //--------------------------------
     return parent::_prepareMassaction();
 }
开发者ID:ReeceCrossland,项目名称:essua-m2epro,代码行数:16,代码来源:Grid.php


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