]> git.mxchange.org Git - mailer.git/blobdiff - inc/classes/main/database/wrapper/class_UserDatabaseWrapper.php
Code merged from ship-simu repository
[mailer.git] / inc / classes / main / database / wrapper / class_UserDatabaseWrapper.php
index 1bbbf0315c7365b83e2233e92c47c2ecb12c7466..503fbadb02089e2e2f0007fec6b077d5e406135a 100644 (file)
@@ -26,6 +26,7 @@ class UserDatabaseWrapper extends BaseDatabaseWrapper {
        const EXCEPTION_CLIENT_USERNAME_NOT_FOUND = 0x180;
 
        // Constants for database columns
+       const DB_COLUMN_USERID       = "userid";
        const DB_COLUMN_USERNAME     = "username";
        const DB_COLUMN_EMAIL        = "email";
        const DB_COLUMN_CONFIRM_HASH = "confirm_hash";
@@ -48,8 +49,6 @@ class UserDatabaseWrapper extends BaseDatabaseWrapper {
         * Creates an instance of this database wrapper by a provided user class
         *
         * @return      $wrapperInstance        An instance of the created wrapper class
-        * @throws      WrapperUserNameNotFoundException        If the supplied username
-        *                                                                                              does not exist
         */
        public final static function createUserDatabaseWrapper () {
                // Get a new instance
@@ -62,6 +61,15 @@ class UserDatabaseWrapper extends BaseDatabaseWrapper {
                return $wrapperInstance;
        }
 
+       /**
+        * Getter for index key
+        *
+        * @return      $indexKey       Index key
+        */
+       public final function getIndexKey () {
+               return $this->getDatabaseInstance()->getIndexKey();
+       }
+
        /**
         * Handles inserting the registration data from a registration instance into the database
         *