Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Functions | Variables
installlib.php File Reference

Functions to support installation process. More...

Functions

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

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.
 

Detailed Description

Functions to support installation process.

@subpackage install

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later