本文整理汇总了PHP中CommonDBChild::getSpecificMassiveActions方法的典型用法代码示例。如果您正苦于以下问题:PHP CommonDBChild::getSpecificMassiveActions方法的具体用法?PHP CommonDBChild::getSpecificMassiveActions怎么用?PHP CommonDBChild::getSpecificMassiveActions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CommonDBChild
的用法示例。
在下文中一共展示了CommonDBChild::getSpecificMassiveActions方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getSpecificMassiveActions
/**
* @see CommonDBTM::getSpecificMassiveActions()
**/
function getSpecificMassiveActions($checkitem = NULL)
{
$isadmin = static::canUpdate();
$actions = parent::getSpecificMassiveActions($checkitem);
if ($isadmin) {
$actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'transform_to'] = __('Transform this network port to');
}
return $actions;
}
示例2: getSpecificMassiveActions
/**
* @see CommonDBTM::getSpecificMassiveActions()
**/
function getSpecificMassiveActions($checkitem = NULL)
{
$isadmin = $checkitem->canUpdate();
$actions = parent::getSpecificMassiveActions($checkitem);
if ($isadmin) {
$actions['assign_vlan'] = __('Associate a VLAN');
$actions['unassign_vlan'] = __('Dissociate a VLAN');
$actions['move_port'] = _x('button', 'Move');
}
return $actions;
}
示例3: getSpecificMassiveActions
/**
* @see CommonDBTM::getSpecificMassiveActions()
**/
function getSpecificMassiveActions($checkitem = NULL)
{
$isadmin = $checkitem->canUpdate();
$actions = parent::getSpecificMassiveActions($checkitem);
if ($isadmin) {
$vlan_prefix = 'NetworkPort_Vlan' . MassiveAction::CLASS_ACTION_SEPARATOR;
$actions[$vlan_prefix . 'add'] = __('Associate a VLAN');
$actions[$vlan_prefix . 'remove'] = __('Dissociate a VLAN');
}
return $actions;
}