*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
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";
- const DB_COLUMN_USER_STATUS = "user_status";
+ const DB_COLUMN_USERID = 'userid';
+ const DB_COLUMN_USERNAME = 'username';
+ const DB_COLUMN_EMAIL = 'email';
+ const DB_COLUMN_CONFIRM_HASH = 'confirm_hash';
+ const DB_COLUMN_USER_STATUS = 'user_status';
// Constants for database table names
- const DB_TABLE_USER = "user";
+ const DB_TABLE_USER = 'user';
/**
* Protected constructor
*
* @return void
*/
- protected function __construct() {
+ protected function __construct () {
// Call parent constructor
parent::__construct(__CLASS__);
}
*
* @return $wrapperInstance An instance of the created wrapper class
*/
- public final static function createUserDatabaseWrapper () {
+ public static final function createUserDatabaseWrapper () {
// Get a new instance
$wrapperInstance = new UserDatabaseWrapper();
// Is it still null?
if (is_null($searchInstance)) {
// Throw an exception here
- throw new NullPointerException($this, self::EXCEPTION_IS_NULL_POINTER);
+ throw new NullPointerException($updateInstance, self::EXCEPTION_IS_NULL_POINTER);
} // END - if
} // END - if