-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasesetting.php
More file actions
36 lines (35 loc) · 1022 Bytes
/
basesetting.php
File metadata and controls
36 lines (35 loc) · 1022 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?
/*
| Project Sol
| A ~Nolan (http://github.com/mcnolan) production.
|
| Attached Version : 2010/M1
|
| File : basesetting.php
|
| Purpose : This file is generated by the install sequence and contains the most basic of settings.
|
|
| Sol is copyright Nolan 2010, see README for more details
|
*/
//File auto-generated by the install sequence (well...it will be)
class BaseSetting {
private static $_adaptor = "Mysql";
private $_dbHost = "localhost";
private $_dbUser = "username";
private $_dbPass = "password";
private $_dbData = "sol";
public static $pre = "sol_";
public static $rand = "123456789abcdefg";
//This function tells Sol which database class to load
static function getDatabaseType() {
return BaseSetting::$_adaptor;
}
//This allows the data class to access database details
protected function getDataSettings() {
$dbSetting = array("Hostname" => $this->_dbHost, "Username" => $this->_dbUser, "Password" => $this->_dbPass, "Database" => $this->_dbData);
return $dbSetting;
}
}
?>