public function __construct()
 {
     $class = get_called_class();
     $this->table = getTableForItemType($class);
     if (class_exists($class)) {
         $this->objecttype = PluginGenericobjectType::getInstance($class);
     }
     $this->dohistory = $this->canUseHistory();
     if (preg_match("/PluginGenericobject(.*)/", $class, $results)) {
         self::$rightname = 'plugin_genericobject_' . strtolower($results[1]) . 's';
     }
     if ($this->canUseNotepad()) {
         // For GLPI 0.85.x
         $this->usenotepadrights = true;
         // For GLPI 0.90.x
         $this->usenotepad = true;
     }
 }