/** * @since version 0.85 * * @see CommonDBRelation::getRelationMassiveActionsSpecificities() **/ static function getRelationMassiveActionsSpecificities() { global $CFG_GLPI; $specificities = parent::getRelationMassiveActionsSpecificities(); $specificities['dropdown_method_2'] = 'dropdownUnder'; $specificities['can_remove_all_at_once'] = false; return $specificities; }
/** * @since version 0.85 * * @see CommonDBRelation::getRelationMassiveActionsSpecificities() **/ static function getRelationMassiveActionsSpecificities() { global $CFG_GLPI; $specificities = parent::getRelationMassiveActionsSpecificities(); // Set the labels for add_item and remove_item $specificities['button_labels']['add'] = _sx('button', 'Associate'); $specificities['button_labels']['remove'] = _sx('button', 'Dissociate'); return $specificities; }
/** * @since version 0.85 * * @see CommonDBRelation::getRelationMassiveActionsSpecificities() **/ static function getRelationMassiveActionsSpecificities() { global $CFG_GLPI; $specificities = parent::getRelationMassiveActionsSpecificities(); $specificities['select_items_options_1'] = array('right' => 'all'); $specificities['select_items_options_2'] = array('condition' => '`is_usergroup`'); // Define normalized action for add_item and remove_item $specificities['normalized']['add'][] = 'add_supervisor'; $specificities['normalized']['add'][] = 'add_delegatee'; $specificities['button_labels']['add_supervisor'] = $specificities['button_labels']['add']; $specificities['button_labels']['add_delegatee'] = $specificities['button_labels']['add']; $specificities['update_if_different'] = true; return $specificities; }
/** * @since version 0.85 * * @see CommonDBRelation::getRelationMassiveActionsSpecificities() **/ static function getRelationMassiveActionsSpecificities() { global $CFG_GLPI; $specificities = parent::getRelationMassiveActionsSpecificities(); $specificities['itemtypes'] = $CFG_GLPI['contract_types']; return $specificities; }
/** * @since version 0.85 * * @see CommonDBRelation::getRelationMassiveActionsSpecificities() **/ static function getRelationMassiveActionsSpecificities() { global $CFG_GLPI; $specificities = parent::getRelationMassiveActionsSpecificities(); $specificities['itemtypes'] = Document::getItemtypesThatCanHave(); // Define normalized action for add_item and remove_item $specificities['normalized']['add'][] = 'add_item'; $specificities['normalized']['remove'][] = 'remove_item'; // Set the labels for add_item and remove_item $specificities['button_labels']['add_item'] = $specificities['button_labels']['add']; $specificities['button_labels']['remove_item'] = $specificities['button_labels']['remove']; return $specificities; }
/** * @since version 0.85 * * @see CommonDBRelation::getRelationMassiveActionsSpecificities() **/ static function getRelationMassiveActionsSpecificities() { global $CFG_GLPI; $specificities = parent::getRelationMassiveActionsSpecificities(); $specificities['itemtypes'] = array('Monitor', 'Peripheral', 'Phone', 'Printer'); $specificities['select_items_options_2']['entity_restrict'] = $_SESSION['glpiactive_entity']; $specificities['select_items_options_2']['onlyglobal'] = true; $specificities['only_remove_all_at_once'] = true; // Set the labels for add_item and remove_item $specificities['button_labels']['add'] = _sx('button', 'Connect'); $specificities['button_labels']['remove'] = _sx('button', 'Disconnect'); return $specificities; }