);
// The real database layer
- private $dbLayer = null;
+ private $dbLayer = NULL;
// An instance of this class
- private static $thisInstance = null;
+ private static $thisInstance = NULL;
/**
* Protected constructor
// Create new database connection layer
public static final function createDatabaseConnection (DebugMiddleware $debugInstance, DatabaseFrontendInterface $dbLayer) {
// Get instance
- $dbInstance = new DatabaseConnection();
+ $databaseInstance = new DatabaseConnection();
// Set debug output handler
- $dbInstance->setDebugInstance($debugInstance);
+ $databaseInstance->setDebugInstance($debugInstance);
// Set database layer
- $dbInstance->setDatabaseLayer($dbLayer);
+ $databaseInstance->setDatabaseLayer($dbLayer);
// Set db instance
- self::$thisInstance = $dbInstance;
+ self::$thisInstance = $databaseInstance;
// Return instance
- return $dbInstance;
+ return $databaseInstance;
}
// Get an instance of this class