engine/lib/install.php File Reference

Go to the source code of this file.

Namespaces

namespace  Elgg
 

Elgg CSS file.


Functions

 php_check_version ()
 Check that the installed version of PHP meets the minimum requirements (currently 5.2 or greater).
 validate_platform ()
 Validate the platform Elgg is being installed on.
 db_check_settings ($user, $password, $dbname, $host)
 Confirm the settings for the database.
 is_db_installed ()
 Returns whether or not the database has been installed.
 is_installed ()
 Returns whether or not other settings have been set.
 create_settings (array $vars, $in_file="engine/settings.example.php")
 Copy and create a new settings.php from settings.example.php, substituting the variables in $vars where appropriate.
 install_init ()
 Initialisation for installation functions.

Function Documentation

create_settings ( array $  vars,
in_file = "engine/settings.example.php" 
)

Copy and create a new settings.php from settings.example.php, substituting the variables in $vars where appropriate.

$vars is an associate array of $key => $value, where $key is the variable text you wish to substitute (eg CONFIG_DBNAME will replace {{CONFIG_DBNAME}} in the settings file.

Parameters:
array $vars The array of vars
string $in_file Optional input file (if not settings.example.php)
Returns:
string The file containing substitutions.

Definition at line 117 of file install.php.

db_check_settings ( user,
password,
dbname,
host 
)

Confirm the settings for the database.

Parameters:
string $user
string $password
string $dbname
string $host
Returns:
bool
Since:
1.7.1

Definition at line 55 of file install.php.

install_init (  ) 

Initialisation for installation functions.

Definition at line 135 of file install.php.

is_db_installed (  ) 

Returns whether or not the database has been installed.

Returns:
true|false Whether the database has been installed

Definition at line 74 of file install.php.

is_installed (  ) 

Returns whether or not other settings have been set.

Returns:
true|false Whether or not the rest of the installation has been followed through with

Definition at line 101 of file install.php.

php_check_version (  ) 

Check that the installed version of PHP meets the minimum requirements (currently 5.2 or greater).

Returns:
bool

Definition at line 16 of file install.php.

validate_platform (  ) 

Validate the platform Elgg is being installed on.

Exceptions:
ConfigurationException if the validation fails.
Returns:
bool

Definition at line 30 of file install.php.

 All Classes Namespaces Files Functions Variables Enumerations
Generated on Thu May 23 00:01:36 2013 for Elgg by  doxygen 1.6.3