AppInstaller
in package
Description of AppInstaller
Tags
Table of Contents
- $request : Request
- Request on which we can get data.
- __construct() : mixed
- Starts installer and run it.
- createDataBase() : bool
- Check database connection and creates the database if needed.
- createFolders() : bool
- If the needed directories are created or already exist, returns true. False when not.
- getUri() : string
- Returns the request uri from server.
- getUserLanguage() : string
- Returns the user language to show the proper installation language in the selector.
- render() : mixed
- Renders HTML.
- saveHtaccess() : bool
- Saves the htaccess file for the apache server.
- saveInstall() : bool
- Saves install parameters to config file.
- searchErrors() : bool
- Check for common errors.
- testMysql() : bool
- Test the MySQL connection and creates the database if needed.
- testPostgreSql() : bool
- Test the PostgreSQL connection and creates the database if needed.
Properties
$request
Request on which we can get data.
private
Request
$request
Methods
__construct()
Starts installer and run it.
public
__construct() : mixed
Return values
mixed —createDataBase()
Check database connection and creates the database if needed.
private
createDataBase() : bool
Return values
bool —createFolders()
If the needed directories are created or already exist, returns true. False when not.
private
createFolders() : bool
Return values
bool —getUri()
Returns the request uri from server.
private
getUri() : string
Return values
string —getUserLanguage()
Returns the user language to show the proper installation language in the selector.
private
getUserLanguage() : string
When the JSON file doesn't exist, returns en_EN
Return values
string —render()
Renders HTML.
private
render([string $template = 'Installer/Install.html.twig' ]) : mixed
Parameters
- $template : string = 'Installer/Install.html.twig'
Return values
mixed —saveHtaccess()
Saves the htaccess file for the apache server.
private
saveHtaccess() : bool
Return values
bool —saveInstall()
Saves install parameters to config file.
private
saveInstall() : bool
Return values
bool —searchErrors()
Check for common errors.
private
searchErrors() : bool
Return values
bool —testMysql()
Test the MySQL connection and creates the database if needed.
private
testMysql(array<string|int, mixed> $dbData) : bool
Parameters
- $dbData : array<string|int, mixed>
Return values
bool —testPostgreSql()
Test the PostgreSQL connection and creates the database if needed.
private
testPostgreSql(array<string|int, mixed> $dbData) : bool
Parameters
- $dbData : array<string|int, mixed>