Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/installlib.php File Reference

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)

Enumeration Type Documentation

INSTALL_DATABASE = 5

Definition at line 40 of file installlib.php.

INSTALL_DATABASETYPE = 4

Definition at line 38 of file installlib.php.

INSTALL_DOWNLOADLANG = 3

Definition at line 36 of file installlib.php.

INSTALL_ENVIRONMENT = 1

Definition at line 32 of file installlib.php.

INSTALL_PATHS = 2

Definition at line 34 of file installlib.php.

INSTALL_SAVE = 6

Definition at line 42 of file installlib.php.

INSTALL_WELCOME = 0

Definition at line 30 of file installlib.php.


Function Documentation

install_cli_database ( array options,
interactive 
)

Install Moodle DB, config.php must exist, there must not be any tables in db yet.

Parameters:
array$optionsadminpass is mandatory
bool$interactive
Returns:
void

Definition at line 399 of file installlib.php.

Here is the call graph for this function:

install_db_validate ( database,
dbhost,
dbuser,
dbpass,
dbname,
prefix,
dboptions 
)

This is in function because we want the /install.php to parse in PHP4

Parameters:
object$database
string$dbhsot
string$dbuser
string$dbpass
string$dbname
string$prefix
mixed$dboptions
Returns:
string

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.

Parameters:
moodle_database$databasedatabase instance
object$cfgcopy of $CFG
Returns:
string

Definition at line 208 of file installlib.php.

Here is the call graph for this function:

Tries to detect the right www root setting.

Returns:
string detected www root

Definition at line 48 of file installlib.php.

install_helpbutton ( url,
title = '' 
)

Print help button

Parameters:
string$url
string$titel
Returns:
void

Definition at line 158 of file installlib.php.

install_ini_get_bool ( ini_get_arg)

Copy of

See also:
{ini_get_bool()}
Parameters:
string$ini_get_arg
Returns:
bool

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.

Parameters:
string$datarootfull path to dataroot
int$dirpermissions
Returns:
bool success

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

Parameters:
array$config
bool$reloadprint reload button instead of next
Returns:
void

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

Parameters:
array$config
string$stagename
string$heading
string$stagetext
Returns:
void

Definition at line 298 of file installlib.php.

Here is the call graph for this function:

Prints complete help page used during installation. Does not return.

object

Parameters:
string$help

Definition at line 252 of file installlib.php.

Here is the call graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations