本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例14: getBatchActions
/**
* @return array
*/
public function getBatchActions()
{
$actions = parent::getBatchActions();
$actions['extend'] = array('label' => $this->trans('action_extend'), 'ask_confirmation' => true);
return $actions;
}
示例15: getBatchActions
/**
* {@inheritdoc}
*/
public function getBatchActions()
{
$actions = parent::getBatchActions();
$actions['toggle_enabled'] = array('label' => $this->trans('toggle_enabled'), 'ask_confirmation' => true);
return $actions;
}