installer
extends cli
in
Uses
syscheck, timezone
FanPress CM cli installer module
Table of Contents
$conf | Installer Konfiguration aus YML-Datei | array |
---|---|---|
$funcParams | Funktionsparameter | array |
$data | Data array | array |
$cache | Cache object | cache |
$events | Event list | events |
$config | Config object | config |
$language | Sprachobjekt | language |
$session | Session objekt | session |
$notifications | Notifications | notifications |
$permissions | Permissions | permissions |
$cacheName | Cache name | string |
$cacheModule | Cache Modul | string |
process() | Modul ausführen | void |
checkPreconditions() | Prüfung, ob Installer aktiv ist | bool |
loadConfig() | Installer YML Konfiguration auslesen | bool |
runSystemCheck() | System Check ausführen | bool |
initDatabase() | Konfiguration für DB-Verbindung erzeugen | bool |
createTables() | Datenbank-Tabellen erzeugen | bool |
initSystemConfig() | System-Konfiguration erzeugen | bool |
createUserAccount() | Ersten Benutzer erzeugen | bool |
cleanupSystem() | System bereinigung | bool |
help() | Hilfe-Text zurückgeben ausführen | array |
getCheckOptionsSystem() | System-Check ausführen | array |
getCheckFolders() | Check folders | array |
getTimeZones() | Gibt übersetzte Zeitzonen zurück | array |
getTimeZonesAreas() | Returns timezones by global area | array |
getDateTimeMasks() | DateTime-Maske mit Beispielen | array |
__construct() | Konstruktor | void |
process() | Modul ausführen | void |
help() | Hilfe-Text zurückgeben ausführen | array |
output() | CLI output | mixed |
debug() | CLI debug output | mixed |
input() | CLI input | mixed |
boolText() | Returns text by bool value | string |
getCacheName() | Cache-Name zurückgeben | string |
Properties
$conf
Installer Konfiguration aus YML-Datei
protected
array
$conf
= []
$funcParams
Funktionsparameter
protected
array
$funcParams
= []
$data
Data array
protected
array
$data
$cache
Cache object
protected
cache
$cache
$events
Event list
protected
events
$events
$config
Config object
protected
config
$config
$language
Sprachobjekt
protected
language
$language
$session
Session objekt
protected
session
$session
$notifications
Notifications
protected
notifications
$notifications
$permissions
Permissions
protected
permissions
$permissions
$cacheName
Cache name
protected
string
$cacheName
= false
$cacheModule
Cache Modul
protected
string
$cacheModule
= ''
Methods
process()
Modul ausführen
public
process(
)
: void
checkPreconditions()
Prüfung, ob Installer aktiv ist
private
checkPreconditions(
)
: bool
Return values
boolloadConfig()
Installer YML Konfiguration auslesen
private
loadConfig(
)
: bool
Return values
boolrunSystemCheck()
System Check ausführen
private
runSystemCheck(
)
: bool
Return values
boolinitDatabase()
Konfiguration für DB-Verbindung erzeugen
private
initDatabase(
)
: bool
Return values
boolcreateTables()
Datenbank-Tabellen erzeugen
private
createTables(
)
: bool
Return values
boolinitSystemConfig()
System-Konfiguration erzeugen
private
initSystemConfig(
)
: bool
Return values
boolcreateUserAccount()
Ersten Benutzer erzeugen
private
createUserAccount(
)
: bool
Return values
boolcleanupSystem()
System bereinigung
private
cleanupSystem(
)
: bool
Return values
boolhelp()
Hilfe-Text zurückgeben ausführen
public
help(
)
: array
Return values
arraygetCheckOptionsSystem()
System-Check ausführen
protected
getCheckOptionsSystem(
)
: array
Return values
arraygetCheckFolders()
Check folders
public
getCheckFolders(
)
: array
Return values
arraygetTimeZones()
Gibt übersetzte Zeitzonen zurück
public
getTimeZones(
)
: array
Return values
arraygetTimeZonesAreas()
Returns timezones by global area
public
getTimeZonesAreas(
)
: array
Return values
arraygetDateTimeMasks()
DateTime-Maske mit Beispielen
public
getDateTimeMasks(
)
: array
Tags
Return values
array__construct()
Konstruktor
public
__construct(
)
: void
process()
Modul ausführen
public
abstract process(
)
: void
help()
Hilfe-Text zurückgeben ausführen
public
abstract help(
)
: array
Return values
arrayoutput()
CLI output
protected
output(
$str :
string
[, $exit :
bool
= false ]
)
: mixed
Parameters
- $str : string
- $exit : bool = false
Return values
mixeddebug()
CLI debug output
protected
debug(
$str :
string
[, $exit :
bool
= false ]
)
: mixed
Parameters
- $str : string
- $exit : bool = false
Return values
mixedinput()
CLI input
protected
input(
$str :
string
)
: mixed
Parameters
- $str : string
Return values
mixedboolText()
Returns text by bool value
protected
boolText(
$value :
bool
)
: string
Parameters
- $value : bool
Return values
stringgetCacheName()
Cache-Name zurückgeben
public
getCacheName(
[ $addName :
string
= '' ]
)
: string
Parameters
- $addName : string = ''