Ignition
class Ignition
Zentrale Startup-Klasse für Anwendungen
Die Aufgabe der Ignition-Klasse ist das Laden und Einrichten von Biblotheken und Umgebungsvariablen.
Hinweis
* IN DIESER KLASSE SIND DAS FRAMEWORK UND DIE KOMPONENTEN NOCH NICHT VERFÜGBAR!
* ES DÜRFEN DESHALB KEINE FUNKTIONEN DARAUS VERWENDET WERDEN.
Constants
INI_SYSTEM_FILE |
Name der system.ini |
INI_ASSEMBLY_FILE |
PLATFORM-FILE |
INI_KEY_FILESYSTEM |
Schlüssel für die Dateien |
INI_KEY_COMPONENTS |
Schlüssel für Komponenten |
INI_KEY_COMPONENT |
Schlüssel für Komponenten |
INI_KEY_ADDITIONAL_COMPONENTS |
Schlüssel für zusätzliche Komponenten |
INI_KEY_ADDITIONAL_COMPONENT |
INI_KEY_ADDITIONAL_COMPONENT |
INI_KEY_UNITS |
Schlüssel für Komponenten |
INI_KEY_EXCEPTION_REPORTER |
Schlüssel für Exception-Handling |
INI_KEY_EXCEPTION_REPORTER_CLASS |
Schlüssel für Exception-Handling |
BASEPATH |
Hier liegt das Standardsystem (readonly) |
VENDORPATH |
Phar-Archive, externe Bibliotheken |
TEMPPATH |
Temporäre Dateien |
DATAPATH |
Kunden- und Projektspezifische Dateien |
LOGPATH |
Logging und Debugging |
CONFIGPATH |
Konfigurationsdateien (Routen, Zugangsdaten) |
CUSTOMISATIONPATH |
Kunden- und projektspezifischer Code |
WEBPATH |
über HTTP aufrufbare Dateien |
SAPI_KEY_HTTP |
HTTP-Schnittstellen-Wert für Konfiguration |
SAPI_KEY_CLI |
CLI-Schnittstellen-Wert für Konfiguration |
SAPI_HTTP |
HTTP-Schnittstelle |
SAPI_CLI |
CLI-Schnittstelle |
LINEFEED |
Zeilenumbruch |
CARRIAGERETURN |
Zeilenumbruch |
Properties
static protected Ignition | $instance | ||
protected array | $additionalHints | ||
protected array | $iniData | ||
protected boolean|null | $returnValue | ||
protected integer | $exitValue | ||
protected string | $hash | ||
protected string | $sapiName | ||
protected integer | $sapiType | ||
protected array | $headers | ||
protected string | $httpStatus | ||
protected array | $assemblyIniData | ||
protected array | $systemIniData | ||
protected boolean | $tputSupport | ||
protected string | $bold | ||
protected string | $colorBlack | ||
protected string | $colorRed | ||
protected string | $colorGreen | ||
protected string | $colorYellow | ||
protected string | $colorBlue | ||
protected string | $colorPurple | ||
protected string | $colorCyan | ||
protected string | $colorWhite | ||
protected string | $backgroundColorBlack | ||
protected string | $backgroundColorRed | ||
protected string | $backgroundColorGreen | ||
protected string | $backgroundColorYellow | ||
protected string | $backgroundColorBlue | ||
protected string | $backgroundColorPurple | ||
protected string | $backgroundColorCyan | ||
protected string | $backgroundColorWhite | ||
protected string | $underline | ||
protected string | $dimMode | ||
protected string | $resetUnderline | ||
protected string | $reset | ||
protected string | $name | ||
protected integer | $columns | ||
protected integer | $lines | ||
protected string | $environmentConfigKey |
Methods
Farben initialisieren
Prüfen ob CLI
Prüfen ob HTTP
Return-wert
No description
Eindeutige ID
Exit-Code
Exit-Code setzen
Instanz holen oder erstellen
Environment auslesen und zurückgegen. Es wird in ENV und SERVER gesucht. Wird keine Variable gefunden, wird default zurückgegeben.
Ini auslesen
Systempfad auslesen
Prüft die Verfügbarkeit des Wertes und gibt ein boolean zurück.
Prüft die Verfügbarkeit des Wertes und gibt eine Zeichenkette zurück.
No description
SystemInit
Platform
No description
Neme der Environmentvariable
Assembly-Path
No description
Unit-Klasse einbinden
No description
No description
No description
No description
No description
No description
No description
No description
No description
Logverzeichnis
No description
Ausgabe eines Textes
Ausgabe einer Zeile
No description
Headers senden
HTTP-Status setzen
Prüfen, ob die Anweisung auf dem Client ausgeführt werden soll
Details
at line 404
Ignition
addHint(string $hint)
at line 414
protected Ignition
initColors()
Farben initialisieren
at line 450
bool
isCliApi()
Prüfen ob CLI
at line 459
bool
isHttpApi()
Prüfen ob HTTP
at line 468
bool|null
getReturnCode()
Return-wert
at line 478
Ignition
setReturnCode(bool $code)
at line 488
string
getID()
Eindeutige ID
at line 497
int|null
getExitCode()
Exit-Code
at line 508
Ignition
setExitCode(int $code)
Exit-Code setzen
at line 524
static Ignition
getInstance(string $name = null)
Instanz holen oder erstellen
Ignition-Instanz holen, oder falls noch nicht initialisert, neue Instanz erstellen. Der Parameter ´$name´ wird nur beim ersten Aufruf beachtet.
at line 542
string
getEnvironment(string $key, mixed $default = null)
Environment auslesen und zurückgegen. Es wird in ENV und SERVER gesucht. Wird keine Variable gefunden, wird default zurückgegeben.
at line 571
protected array
loadIniFile(string $path)
Ini auslesen
at line 595
string
getSystemPath(string $name)
Systempfad auslesen
at line 630
bool
getBooleanFromSystemIni(string $key, string $section, bool $default = false)
Prüft die Verfügbarkeit des Wertes und gibt ein boolean zurück.
"true", "1" und "on" werden als true, alle anderen Werte als false zurückgegeben.
at line 668
string|null
getStringFromSystemIni(string $key, string $section, string|null $default = null)
Prüft die Verfügbarkeit des Wertes und gibt eine Zeichenkette zurück.
at line 696
static string
sanitizePath(string $path, string|null $basepath = null)
at line 747
array|null
getSystemIni()
SystemInit
at line 756
array|null
getAssemblyIni()
Platform
at line 764
protected string
getSystemIniPath()
at line 786
protected string
getEnvironmentConfigVariable()
Neme der Environmentvariable
at line 795
protected string
getAssemblyIniPath()
Assembly-Path
at line 806
Ignition
initIniFiles(string $environmentKey)
at line 820
Ignition
runUnits()
Ausführen der Units
at line 859
protected string
initUnitClassAndGetName(string $unit)
Unit-Klasse einbinden
at line 889
static protected string
mask(string $value, string $key = null)
at line 911
static protected type
getVariableForJson(type $variable)
at line 944
static protected type
getVariableForTextDump(type $label, type $variable)
at line 975
protected string|null
tryCreateAndcheckAccessable(string $path)
at line 991
protected string|null
getExceptionLogDirectoryFromEnvironment()
at line 1009
protected string|null
getExceptionLogDirectoryFromSystemini()
at line 1025
protected string|null
getExceptionLogDirectoryFromSystemTemp()
at line 1041
protected string|null
getExceptionLogDirectoryHome()
at line 1053
protected string|null
getHomeDirectory()
at line 1073
protected string|null
getExceptionLogDirectory()
Logverzeichnis
at line 1160
type
handleExit()
at line 1232
$this
handleException(Exception $exception)
at line 1263
Ignition
writeToCli(string $text, string|null $modifier = null)
Ausgabe eines Textes
at line 1278
Ignition
writeLineToCli(string $text, string|null $modifier = null)
Ausgabe einer Zeile
at line 1301
protected $this
reportCliException(Exception $exception)
at line 1325
protected $this
reportHttpException(Exception $exception)
at line 1448
protected string|null
getSupportedMimeType(array $supportedTypes)
at line 1477
protected Ignition
sendHeaders()
Headers senden
at line 1509
Ignition
setHttpStatus(string $status)
HTTP-Status setzen
at line 1529
Ignition
setHeader(string $key, string $value)
Headers setzen
at line 1546
protected boolean
shouldExecuteForThisClient(string $pattern)
Prüfen, ob die Anweisung auf dem Client ausgeführt werden soll