當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。