Installer
in package
implements
ControllerInterface
Table of Contents
Interfaces
Properties
- $db_host : string
- $db_name : string
- $db_pass : string
- $db_port : int
- $db_type : string
- $db_user : string
- $debug : bool
- $initial_pass : string
- $initial_user : string
- $request : Request
- $use_new_mysql : bool
Methods
- __construct() : mixed
- getPageData() : array<string|int, mixed>
- run() : void
- createDataBase() : bool
- createFolders() : bool
- escapeConfig() : string
- Escapa un valor para incrustarlo en config.php como literal entre comillas simples, evitando que una comilla o barra invertida (p. ej. en una contraseƱa) rompa el fichero.
- getUri() : string
- getUserLanguage() : string
- saveHtaccess() : bool
- saveInstall() : bool
- searchErrors() : bool
- testMysql() : bool
- testPostgresql() : bool
- versionPostgres() : float
Properties
$db_host
public
string
$db_host
$db_name
public
string
$db_name
$db_pass
public
string
$db_pass
$db_port
public
int
$db_port
$db_type
public
string
$db_type
$db_user
public
string
$db_user
$debug
public
bool
$debug
$initial_pass
public
string
$initial_pass
$initial_user
public
string
$initial_user
$request
protected
Request
$request
$use_new_mysql
protected
bool
$use_new_mysql
= false
Methods
__construct()
public
__construct(string $className[, string $url = '' ]) : mixed
Parameters
- $className : string
- $url : string = ''
getPageData()
public
getPageData() : array<string|int, mixed>
Return values
array<string|int, mixed>run()
public
run() : void
createDataBase()
private
createDataBase() : bool
Return values
boolcreateFolders()
private
createFolders() : bool
Return values
boolescapeConfig()
Escapa un valor para incrustarlo en config.php como literal entre comillas simples, evitando que una comilla o barra invertida (p. ej. en una contraseƱa) rompa el fichero.
private
escapeConfig(string $value) : string
Parameters
- $value : string
Return values
stringgetUri()
private
getUri() : string
Return values
stringgetUserLanguage()
private
getUserLanguage() : string
Return values
stringsaveHtaccess()
private
saveHtaccess() : bool
Return values
boolsaveInstall()
private
saveInstall() : bool
Return values
boolsearchErrors()
private
searchErrors() : bool
Return values
booltestMysql()
private
testMysql(array<string|int, mixed> $dbData) : bool
Parameters
- $dbData : array<string|int, mixed>
Return values
booltestPostgresql()
private
testPostgresql(array<string|int, mixed> $dbData) : bool
Parameters
- $dbData : array<string|int, mixed>
Return values
boolversionPostgres()
private
versionPostgres(mixed $connection) : float
Parameters
- $connection : mixed