|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | core |
Enumerations | |
| enum | INSTALL_WELCOME |
| enum | INSTALL_ENVIRONMENT |
| enum | INSTALL_PATHS |
| enum | INSTALL_DOWNLOADLANG |
| enum | INSTALL_DATABASETYPE |
| enum | INSTALL_DATABASE |
| enum | INSTALL_SAVE |
Functions | |
| install_guess_wwwroot () | |
| install_ini_get_bool ($ini_get_arg) | |
| install_init_dataroot ($dataroot, $dirpermissions) | |
| install_helpbutton ($url, $title='') | |
| install_db_validate ($database, $dbhost, $dbuser, $dbpass, $dbname, $prefix, $dboptions) | |
| install_generate_configphp ($database, $cfg) | |
| install_print_help_page ($help) | |
| install_print_header ($config, $stagename, $heading, $stagetext) | |
| install_print_footer ($config, $reload=false) | |
| install_cli_database (array $options, $interactive) | |
| enum INSTALL_DATABASE |
INSTALL_DATABASE = 5
Definition at line 40 of file installlib.php.
| enum INSTALL_DATABASETYPE |
INSTALL_DATABASETYPE = 4
Definition at line 38 of file installlib.php.
| enum INSTALL_DOWNLOADLANG |
INSTALL_DOWNLOADLANG = 3
Definition at line 36 of file installlib.php.
| enum INSTALL_ENVIRONMENT |
INSTALL_ENVIRONMENT = 1
Definition at line 32 of file installlib.php.
| enum INSTALL_PATHS |
INSTALL_PATHS = 2
Definition at line 34 of file installlib.php.
| enum INSTALL_SAVE |
INSTALL_SAVE = 6
Definition at line 42 of file installlib.php.
| enum INSTALL_WELCOME |
INSTALL_WELCOME = 0
Definition at line 30 of file installlib.php.
| install_cli_database | ( | array $ | options, |
| $ | interactive | ||
| ) |
Install Moodle DB, config.php must exist, there must not be any tables in db yet.
| array | $options | adminpass is mandatory |
| bool | $interactive |
Definition at line 399 of file installlib.php.

| install_db_validate | ( | $ | database, |
| $ | dbhost, | ||
| $ | dbuser, | ||
| $ | dbpass, | ||
| $ | dbname, | ||
| $ | prefix, | ||
| $ | dboptions | ||
| ) |
This is in function because we want the /install.php to parse in PHP4
| object | $database | |
| string | $dbhsot | |
| string | $dbuser | |
| string | $dbpass | |
| string | $dbname | |
| string | $prefix | |
| mixed | $dboptions |
Definition at line 181 of file installlib.php.
| install_generate_configphp | ( | $ | database, |
| $ | cfg | ||
| ) |
Returns content of config.php file.
Uses PHP_EOL for generating proper end of lines for the given platform.
| moodle_database | $database | database instance |
| object | $cfg | copy of $CFG |
Definition at line 208 of file installlib.php.

Tries to detect the right www root setting.
Definition at line 48 of file installlib.php.
| install_helpbutton | ( | $ | url, |
| $ | title = '' |
||
| ) |
Print help button
| string | $url | |
| string | $titel |
Definition at line 158 of file installlib.php.
| install_ini_get_bool | ( | $ | ini_get_arg | ) |
Copy of
| string | $ini_get_arg |
Definition at line 72 of file installlib.php.
| install_init_dataroot | ( | $ | dataroot, |
| $ | dirpermissions | ||
| ) |
Creates dataroot if not exists yet, makes sure it is writable, add lang directory and add .htaccess just in case it works.
| string | $dataroot | full path to dataroot |
| int | $dirpermissions |
Definition at line 90 of file installlib.php.
| install_print_footer | ( | $ | config, |
| $ | reload = false |
||
| ) |
Prints installation page header, we can no use weblib yet in isntaller.
object
| array | $config | |
| bool | $reload | print reload button instead of next |
Definition at line 358 of file installlib.php.
| install_print_header | ( | $ | config, |
| $ | stagename, | ||
| $ | heading, | ||
| $ | stagetext | ||
| ) |
Prints installation page header, we can no use weblib yet in installer.
object
| array | $config | |
| string | $stagename | |
| string | $heading | |
| string | $stagetext |
Definition at line 298 of file installlib.php.

| install_print_help_page | ( | $ | help | ) |
Prints complete help page used during installation. Does not return.
object
| string | $help |
Definition at line 252 of file installlib.php.
