Marius Cramer
2013-11-14 b1a6a5a3991cec5cd08873b01376e45d0b247f18
server/plugins-available/mongo_clientdb_plugin.inc.php
@@ -32,6 +32,8 @@
 * The MongoDB client plugin is used by ISPConfig to control the management of MongoDB.
 * If handles everything from creating DBs/Users, update them or delete them.
 */
class mongo_clientdb_plugin {
   /**
@@ -52,6 +54,7 @@
      return (bool) $conf['services']['db'];
   }
   /**
    * This function is called when the plugin is loaded.
@@ -541,6 +544,7 @@
      }
   }
   /**
    * This function is called when a DB is updated from within the ISPConfig interface.
    * Updating the DB needs a lot of changes. First, we need to recheck all users that
@@ -676,6 +680,7 @@
      $this->disconnect();
   }
   /**
    * This function is called when a DB is deleted from within the ISPConfig interface.
    * All we need to do is to delete the database.
@@ -715,6 +720,7 @@
    * @param array $data the event data (old and new)
    */
   function db_user_insert($event_name,$data) {}
   /**
    * This function is called when a user is updated from within the ISPConfig interface.
@@ -791,6 +797,7 @@
      $this->disconnect();
   }
   /**
    * This function is called when a user is deleted from within the ISPConfig interface.
    * Since MongoDB uses per-DB user management, we have to find every database where the user is