summaryrefslogtreecommitdiffstats
path: root/lib/private/setup/abstractdatabase.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-01-26 12:59:25 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-01-26 12:59:25 +0100
commit9ad9d7bfbb85b03bacf0ed1c12d16bae5c8bc6ac (patch)
treede3db9e9befd51d0d6e830679a208104ce3731e1 /lib/private/setup/abstractdatabase.php
parent039397bd3104d92f7957263520eab0ccfb54f869 (diff)
downloadnextcloud-server-9ad9d7bfbb85b03bacf0ed1c12d16bae5c8bc6ac.tar.gz
nextcloud-server-9ad9d7bfbb85b03bacf0ed1c12d16bae5c8bc6ac.zip
naming fixes while reviewing
Diffstat (limited to 'lib/private/setup/abstractdatabase.php')
-rw-r--r--lib/private/setup/abstractdatabase.php28
1 files changed, 15 insertions, 13 deletions
diff --git a/lib/private/setup/abstractdatabase.php b/lib/private/setup/abstractdatabase.php
index e421efe8028..08e295c3fff 100644
--- a/lib/private/setup/abstractdatabase.php
+++ b/lib/private/setup/abstractdatabase.php
@@ -35,22 +35,24 @@ abstract class AbstractDatabase {
}
public function initialize($config) {
- $dbuser = $config['dbuser'];
- $dbpass = $config['dbpass'];
- $dbname = $config['dbname'];
- $dbhost = !empty($config['dbhost']) ? $config['dbhost'] : 'localhost';
- $dbtableprefix = isset($config['dbtableprefix']) ? $config['dbtableprefix'] : 'oc_';
+ $dbUser = $config['dbuser'];
+ $dbPass = $config['dbpass'];
+ $dbName = $config['dbname'];
+ $dbHost = !empty($config['dbhost']) ? $config['dbhost'] : 'localhost';
+ $dbTablePrefix = isset($config['dbtableprefix']) ? $config['dbtableprefix'] : 'oc_';
\OC_Config::setValues([
- 'dbname' => $dbname,
- 'dbhost' => $dbhost,
- 'dbtableprefix' => $dbtableprefix,
+ 'dbname' => $dbName,
+ 'dbhost' => $dbHost,
+ 'dbtableprefix' => $dbTablePrefix,
]);
- $this->dbuser = $dbuser;
- $this->dbpassword = $dbpass;
- $this->dbname = $dbname;
- $this->dbhost = $dbhost;
- $this->tableprefix = $dbtableprefix;
+ $this->dbuser = $dbUser;
+ $this->dbpassword = $dbPass;
+ $this->dbname = $dbName;
+ $this->dbhost = $dbHost;
+ $this->tableprefix = $dbTablePrefix;
}
+
+ abstract public function setupDatabase($userName);
}