Computer_Item::getRelationMassiveActionsSpecificities PHP Method

getRelationMassiveActionsSpecificities() static public method

See also: 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;
    }