Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
installlib.php File Reference

Functions

 install_cli_database (array $options, $interactive)
 Install Moodle DB, config.php must exist, there must not be any tables in db yet.
 
 install_db_validate ($database, $dbhost, $dbuser, $dbpass, $dbname, $prefix, $dboptions)
 This is in function because we want the /install.php to parse in PHP4.
 
 install_generate_configphp ($database, $cfg)
 Returns content of config.php file.
 
 install_guess_wwwroot ()
 Tries to detect the right www root setting.
 
 install_helpbutton ($url, $title='')
 Print help button.
 
 install_ini_get_bool ($ini_get_arg)
 Copy of.
 
 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.
 
object install_print_footer ($config, $reload=false)
 Prints installation page header, we can not use weblib yet in installer.
 
object install_print_header ($config, $stagename, $heading, $stagetext, $stageclass="alert-info")
 Prints installation page header, we can not use weblib yet in installer.
 
object install_print_help_page ($help)
 Prints complete help page used during installation.
 

Variables

const INSTALL_DATABASE 5
 INSTALL_DATABASE = 5.
 
const INSTALL_DATABASETYPE 4
 INSTALL_DATABASETYPE = 4.
 
const INSTALL_DOWNLOADLANG 3
 INSTALL_DOWNLOADLANG = 3.
 
const INSTALL_ENVIRONMENT 1
 INSTALL_ENVIRONMENT = 1.
 
const INSTALL_PATHS 2
 INSTALL_PATHS = 2.
 
const INSTALL_SAVE 6
 INSTALL_SAVE = 6.
 
const INSTALL_WELCOME 0
 INSTALL_WELCOME = 0.