Esempio n. 1
0
 /**
  * @since version 0.85
  *
  * @see CommonDBTM::getMassiveActionsForItemtype()
  **/
 static function getMassiveActionsForItemtype(array &$actions, $itemtype, $is_deleted = 0, CommonDBTM $checkitem = NULL)
 {
     $action_prefix = __CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR;
     $specificities = self::getRelationMassiveActionsSpecificities();
     if (in_array($itemtype, $specificities['itemtypes'])) {
         $actions[$action_prefix . 'add'] = _x('button', 'Connect');
         $actions[$action_prefix . 'remove'] = _x('button', 'Disconnect');
     }
     parent::getMassiveActionsForItemtype($actions, $itemtype, $is_deleted, $checkitem);
 }