本文整理匯總了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;
}