--- inc/itemspecification.class.php     (revision 392)
+++ inc/itemspecification.class.php     (working copy)
@@ -32,6 +32,9 @@
}

class PluginRacksItemSpecification extends CommonDBTM {
+    static $types = array(
+         'ComputerModel','NetworkEquipmentModel','PeripheralModel','PluginRacksOtherModel'
+         );

    static function getTypeName($nb=0) {

@@ -107,12 +110,15 @@
         return false;
    }

+       static function registerModelClass($type){
+               if (!in_array($type,self::$types)){
+                       self::$types[] = $type;
+               }
+       }
+
        static function getModelClasses () {
+               $types=self::$types;

-      static $types = array(
-         'ComputerModel','NetworkEquipmentModel','PeripheralModel','PluginRacksOtherModel'
-         );
-
       foreach ($types as $key=>$type) {
          if (!class_exists($type)) {
             continue;
