diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-01-26 12:59:25 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-01-26 12:59:25 +0100 |
commit | 9ad9d7bfbb85b03bacf0ed1c12d16bae5c8bc6ac (patch) | |
tree | de3db9e9befd51d0d6e830679a208104ce3731e1 /lib/private/setup | |
parent | 039397bd3104d92f7957263520eab0ccfb54f869 (diff) | |
download | nextcloud-server-9ad9d7bfbb85b03bacf0ed1c12d16bae5c8bc6ac.tar.gz nextcloud-server-9ad9d7bfbb85b03bacf0ed1c12d16bae5c8bc6ac.zip |
naming fixes while reviewing
Diffstat (limited to 'lib/private/setup')
-rw-r--r-- | lib/private/setup/abstractdatabase.php | 28 | ||||
-rw-r--r-- | lib/private/setup/mssql.php | 2 |
2 files changed, 16 insertions, 14 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); } diff --git a/lib/private/setup/mssql.php b/lib/private/setup/mssql.php index f1699c36f96..1aa31a678a1 100644 --- a/lib/private/setup/mssql.php +++ b/lib/private/setup/mssql.php @@ -5,7 +5,7 @@ namespace OC\Setup; class MSSQL extends AbstractDatabase { public $dbprettyname = 'MS SQL Server'; - public function setupDatabase() { + public function setupDatabase($username) { //check if the database user has admin right $masterConnectionInfo = array( "Database" => "master", "UID" => $this->dbuser, "PWD" => $this->dbpassword); |