ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Public Member Functions | |
__construct (string $type, string $host, string $database, string $user, protected ?Password $password=null, protected bool $create_database=true, ?string $collation=null, protected ?int $port=null, ?string $path_to_db_dump=null) | |
getType () | |
getHost () | |
getPort () | |
getDatabase () | |
getCreateDatabase () | |
getCollation () | |
getUser () | |
getPassword () | |
getPathToDBDump () | |
toMockIniFile () | |
Adapter to current database-handling via a mock of \ilIniFile. More... | |
Data Fields | |
const | DEFAULT_COLLATION = "utf8_general_ci" |
const | DEFAULT_PATH_TO_DB_DUMP = "./components/ILIAS/setup_/sql/ilias3.sql" |
ilDatabaseSetupConfig | $config |
Protected Attributes | |
string | $type |
string | $host |
string | $database |
string | $collation |
string | $user |
string | $path_to_db_dump |
Definition at line 24 of file class.ilDatabaseSetupConfig.php.
ilDatabaseSetupConfig::__construct | ( | string | $type, |
string | $host, | ||
string | $database, | ||
string | $user, | ||
protected ?Password | $password = null , |
||
protected bool | $create_database = true , |
||
?string | $collation = null , |
||
protected ?int | $port = null , |
||
?string | $path_to_db_dump = null |
||
) |
Definition at line 43 of file class.ilDatabaseSetupConfig.php.
References $collation, $database, $host, $path_to_db_dump, $type, $user, ILIAS\Repository\database(), DEFAULT_COLLATION, DEFAULT_PATH_TO_DB_DUMP, ilDBConstants\getAvailableCollations(), ilDBConstants\getInstallableTypes(), and ILIAS\Repository\user().
Referenced by toMockIniFile().
ilDatabaseSetupConfig::getCollation | ( | ) |
Definition at line 97 of file class.ilDatabaseSetupConfig.php.
References $collation.
ilDatabaseSetupConfig::getCreateDatabase | ( | ) |
Definition at line 92 of file class.ilDatabaseSetupConfig.php.
ilDatabaseSetupConfig::getDatabase | ( | ) |
Definition at line 87 of file class.ilDatabaseSetupConfig.php.
References $database.
ilDatabaseSetupConfig::getHost | ( | ) |
Definition at line 77 of file class.ilDatabaseSetupConfig.php.
References $host.
ilDatabaseSetupConfig::getPassword | ( | ) |
Definition at line 107 of file class.ilDatabaseSetupConfig.php.
ilDatabaseSetupConfig::getPathToDBDump | ( | ) |
Definition at line 112 of file class.ilDatabaseSetupConfig.php.
References $path_to_db_dump.
ilDatabaseSetupConfig::getPort | ( | ) |
Definition at line 82 of file class.ilDatabaseSetupConfig.php.
ilDatabaseSetupConfig::getType | ( | ) |
Definition at line 72 of file class.ilDatabaseSetupConfig.php.
References $type.
ilDatabaseSetupConfig::getUser | ( | ) |
Definition at line 102 of file class.ilDatabaseSetupConfig.php.
References $user.
ilDatabaseSetupConfig::toMockIniFile | ( | ) |
Adapter to current database-handling via a mock of \ilIniFile.
reads a single variable from a group @access public
string | group name |
string | value |
Definition at line 120 of file class.ilDatabaseSetupConfig.php.
References $config, __construct(), addGroup(), error(), getError(), getGroupCount(), groupExists(), readGroup(), readGroups(), readVariable(), removeGroup(), setVariable(), show(), and variableExists().
|
protected |
Definition at line 35 of file class.ilDatabaseSetupConfig.php.
Referenced by __construct(), and getCollation().
ilDatabaseSetupConfig ilDatabaseSetupConfig::$config |
Definition at line 41 of file class.ilDatabaseSetupConfig.php.
Referenced by toMockIniFile().
|
protected |
Definition at line 33 of file class.ilDatabaseSetupConfig.php.
Referenced by __construct(), and getDatabase().
|
protected |
Definition at line 31 of file class.ilDatabaseSetupConfig.php.
Referenced by __construct(), and getHost().
|
protected |
Definition at line 39 of file class.ilDatabaseSetupConfig.php.
Referenced by __construct(), and getPathToDBDump().
|
protected |
Definition at line 29 of file class.ilDatabaseSetupConfig.php.
Referenced by __construct(), and getType().
|
protected |
Definition at line 37 of file class.ilDatabaseSetupConfig.php.
Referenced by __construct(), and getUser().
const ilDatabaseSetupConfig::DEFAULT_COLLATION = "utf8_general_ci" |
Definition at line 26 of file class.ilDatabaseSetupConfig.php.
Referenced by __construct().
const ilDatabaseSetupConfig::DEFAULT_PATH_TO_DB_DUMP = "./components/ILIAS/setup_/sql/ilias3.sql" |
Definition at line 27 of file class.ilDatabaseSetupConfig.php.
Referenced by __construct().