/** * @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; }
/** * @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; }
/** * @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; }