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


PHP Admin::getBatchActions方法代码示例

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


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

示例1: getBatchActions

 public function getBatchActions()
 {
     // retrieve the default batch actions (currently only delete)
     $actions = parent::getBatchActions();
     unset($actions['delete']);
     return $actions;
 }
开发者ID:Hley,项目名称:SupplierCheck,代码行数:7,代码来源:CampaignSupplier.php

示例2: getBatchActions

 /**
  * {@inheritdoc}
  */
 public function getBatchActions()
 {
     $actions = parent::getBatchActions();
     $actions['mark_as_moderated_action'] = ['label' => 'Mark as moderated', 'ask_confirmation' => true];
     $actions['unmark_as_moderated_action'] = ['label' => 'Unmark as moderated', 'ask_confirmation' => true];
     return $actions;
 }
开发者ID:stfalcon-studio,项目名称:lost-and-found,代码行数:10,代码来源:ItemAdmin.php

示例3: getBatchActions

 public function getBatchActions()
 {
     // retrieve the default batch actions (currently only delete)
     $actions = parent::getBatchActions();
     $actions['archive'] = array('label' => $this->trans('Archiver', array(), 'SonataAdminBundle'), 'ask_confirmation' => true);
     return $actions;
 }
开发者ID:polypodes,项目名称:EuradioNantes.eu,代码行数:7,代码来源:EmissionAdmin.php

示例4: getBatchActions

 /**
  * @return array
  */
 public function getBatchActions()
 {
     $actions = parent::getBatchActions();
     $actions['enabled'] = array('label' => $this->trans('batch_enable_comments'), 'ask_confirmation' => false);
     $actions['disabled'] = array('label' => $this->trans('batch_disable_comments'), 'ask_confirmation' => false);
     return $actions;
 }
开发者ID:roelveldhuizen,项目名称:SonataNewsBundle,代码行数:10,代码来源:CommentAdmin.php

示例5: getBatchActions

 public function getBatchActions()
 {
     $custom_actions['enable'] = array('label' => $this->trans('Habilitar'), 'ask_confirmation' => FALSE);
     $custom_actions['disable'] = array('label' => $this->trans('Deshabilitar'), 'ask_confirmation' => TRUE);
     $actions = array_merge($custom_actions, parent::getBatchActions());
     return $actions;
 }
开发者ID:jewelhuq,项目名称:smpcl,代码行数:7,代码来源:ClassifieldAdmin.php

示例6: getBatchActions

 /**
  * {@inheritdoc}
  */
 public function getBatchActions()
 {
     $actions = parent::getBatchActions();
     $actions['enabled'] = array('label' => $this->trans($this->getLabelTranslatorStrategy()->getLabel('enable', 'batch', 'comment')), 'ask_confirmation' => false);
     $actions['disabled'] = array('label' => $this->trans($this->getLabelTranslatorStrategy()->getLabel('disable', 'batch', 'comment')), 'ask_confirmation' => false);
     return $actions;
 }
开发者ID:BookWorld1,项目名称:nom,代码行数:10,代码来源:CommentAdmin.php

示例7: getBatchActions

 public function getBatchActions()
 {
     // retrieve the default (currently only the delete action) actions
     $actions = parent::getBatchActions();
     unset($actions['delete']);
     $actions['activate'] = array('label' => 'Activate Users (sends an activation email to selected users)', 'ask_confirmation' => true);
     return $actions;
 }
开发者ID:holtchesley,项目名称:Zeega,代码行数:8,代码来源:UserAdmin.php

示例8: getBatchActions

 public function getBatchActions()
 {
     $actions = parent::getBatchActions();
     if ($this->hasRoute('edit') && $this->isGranted('EDIT') && $this->hasRoute('delete') && $this->isGranted('DELETE')) {
         $actions['deliveredAll'] = array('label' => 'Entregados', 'ask_confirmation' => true);
     }
     return $actions;
 }
开发者ID:DevMaster112,项目名称:flora,代码行数:8,代码来源:DistributionAdmin.php

示例9: getBatchActions

 public function getBatchActions()
 {
     // retrieve the default batch actions (currently only delete)
     $actions = parent::getBatchActions();
     $actions['validate'] = array('label' => $this->trans('Validate All', array(), 'SonataAdminBundle'), 'ask_confirmation' => true);
     $actions['refuse'] = array('label' => $this->trans('Refuse All', array(), 'SonataAdminBundle'), 'ask_confirmation' => true);
     unset($actions['delete']);
     return $actions;
 }
开发者ID:Hley,项目名称:SupplierCheck,代码行数:9,代码来源:ProductValidationAdmin.php

示例10: getBatchActions

 public function getBatchActions()
 {
     $actions = parent::getBatchActions();
     if ($this->hasRoute('edit') && $this->isGranted('EDIT') && $this->hasRoute('delete') && $this->isGranted('DELETE')) {
         $actions['activate'] = ['label' => 'Activate', 'ask_confirmation' => true];
         $actions['deactivate'] = ['label' => 'Deactivate', 'ask_confirmation' => true];
     }
     return $actions;
 }
开发者ID:abclaur,项目名称:jobeet,代码行数:9,代码来源:AffiliateAdmin.php

示例11: getBatchActions

 public function getBatchActions()
 {
     // retrieve the default (currently only the delete action) actions
     $actions = parent::getBatchActions();
     // check user permissions
     if ($this->hasRoute('edit') && $this->isGranted('EDIT') && $this->hasRoute('delete') && $this->isGranted('DELETE')) {
         $actions['projector'] = ['label' => "projector", 'ask_confirmation' => true];
     }
     return $actions;
 }
开发者ID:princedominh,项目名称:tkb,代码行数:10,代码来源:ClassPAdmin.php

示例12: getBatchActions

 public function getBatchActions()
 {
     // retrieve the default (currently only the delete action) actions
     $actions = parent::getBatchActions();
     // check user permissions
     if ($this->hasRoute('edit') && $this->isGranted('EDIT') && $this->hasRoute('delete') && $this->isGranted('DELETE')) {
         $actions['extend'] = ['label' => 'Extend', 'ask_confirmation' => true];
         $actions['deleteNeverActivated'] = array('label' => 'Delete never activated jobs', 'ask_confirmation' => true);
     }
     return $actions;
 }
开发者ID:abclaur,项目名称:jobeet,代码行数:11,代码来源:JobAdmin.php

示例13: getBatchActions

 /**
  * redefine method to Returns the list of batchs actions for bank review
  *
  * @return array the list of batchs actions
  */
 public function getBatchActions()
 {
     //get parent action
     $actions = parent::getBatchActions();
     // check user permissions
     // if ($this->hasRoute('edit') && $this->isGranted('EDIT') && $this->hasRoute('delete') && $this->isGranted('DELETE')) {
     //set for moderation action
     $actions['moderation'] = array('label' => $this->trans('action_moderation', array(), 'SonataAdminBundle'), 'ask_confirmation' => true);
     $actions['valid'] = array('label' => $this->trans('action_valid', array(), 'SonataAdminBundle'), 'ask_confirmation' => true);
     $actions['inValid'] = array('label' => $this->trans('action_invalid', array(), 'SonataAdminBundle'), 'ask_confirmation' => true);
     //  }
     return $actions;
 }
开发者ID:Tagarela76,项目名称:table4you,代码行数:18,代码来源:RestaurantAdmin.php

示例14: getBatchActions

 /**
  * @return array
  */
 public function getBatchActions()
 {
     $actions = parent::getBatchActions();
     $actions['extend'] = array('label' => $this->trans('action_extend'), 'ask_confirmation' => true);
     return $actions;
 }
开发者ID:manju16832003,项目名称:Jobeet2Bundle,代码行数:9,代码来源:JobAdmin.php

示例15: getBatchActions

 /**
  * {@inheritdoc}
  */
 public function getBatchActions()
 {
     $actions = parent::getBatchActions();
     $actions['toggle_enabled'] = array('label' => $this->trans('toggle_enabled'), 'ask_confirmation' => true);
     return $actions;
 }
开发者ID:TomasVotruba,项目名称:SonataPageBundle,代码行数:9,代码来源:SnapshotAdmin.php


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