class Ignition

Zentrale Startup-Klasse

ACHTUNG: 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

Default UUID dieser Anwendungsklasse

INI_ASSEMBLY_FILE

PLATFORM-FILE

CONFIG_ENVIRONMENT_KEY

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

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

Properties

static protected Ignition $instance
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 type $isTPutSupport

Methods

bool
isCliApi()

Prüfen ob CLI

bool
isHttpApi()

Prüfen ob HTTP

bool|null
getReturnCode()

Return-wert

setReturnCode(bool $code)

No description

string
getID()

Eindeutige ID

int|null
getExitCode()

Exit-Code

setExitCode(int $code)

Exit-Code setzen

static Ignition
getInstance()

Instanz

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.

array
loadIniFile(string $path)

Ini auslesen

string
getSystemPath(string $name)

Systempfad auslesen

static string
sanitizePath(string $path)

No description

array|null
getSystemIni()

SystemInit

array|null
getAssemblyIni()

Platform

string
getSystemIniPath()

No description

string
getAssemblyIniPath()

No description

initIniFiles()

No description

runUnits()

Ausführen der Units

static string
mask(string $value, string $key = null)

No description

static type
getVariableForJson(type $variable)

No description

static type
getVariableForTextDump(type $label, type $variable)

No description

writeExceptionLog(Exception $exception)

Startup-Log im Fehlerfall schreiben

type
handleExit()

No description

$this
handleException(Exception $exception)

No description

sendTerminalCommand(string $sequence)

No description

$this
handleCliException(Exception $exception)

No description

$this
handleHttpException(Exception $exception)

No description

string|null
getSupportedMimeType(array $supportedTypes)

No description

sendHeaders()

Headers senden

setHttpStatus(string $status)

HTTP-Status setzen

setHeader(string $key, string $value)

Headers setzen

boolean
shouldExecuteForThisClient(string $pattern)

Prüfen, ob die Anweisung auf dem Client ausgeführt werden soll

Details

at line 249
bool isCliApi()

Prüfen ob CLI

Return Value

bool

at line 258
bool isHttpApi()

Prüfen ob HTTP

Return Value

bool

at line 267
bool|null getReturnCode()

Return-wert

Return Value

bool|null

at line 277
Ignition setReturnCode(bool $code)

Parameters

bool $code

Return Value

Ignition

at line 287
string getID()

Eindeutige ID

Return Value

string

at line 296
int|null getExitCode()

Exit-Code

Return Value

int|null

at line 307
Ignition setExitCode(int $code)

Exit-Code setzen

Parameters

int $code

Return Value

Ignition

at line 317
static Ignition getInstance()

Instanz

Return Value

Ignition

at line 335
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.

Parameters

string $key
mixed $default

Return Value

string

at line 364
protected array loadIniFile(string $path)

Ini auslesen

Parameters

string $path

Return Value

array

Exceptions

Exception

at line 388
string getSystemPath(string $name)

Systempfad auslesen

Parameters

string $name

Return Value

string

Exceptions

Exception

at line 411
static string sanitizePath(string $path)

Parameters

string $path

Return Value

string

at line 449
array|null getSystemIni()

SystemInit

Return Value

array|null

at line 458
array|null getAssemblyIni()

Platform

Return Value

array|null

at line 466
protected string getSystemIniPath()

Return Value

string

at line 486
protected string getAssemblyIniPath()

Return Value

string

at line 497
Ignition initIniFiles()

Return Value

Ignition

Exceptions

Exception

at line 510
Ignition runUnits()

Ausführen der Units

Return Value

Ignition

Exceptions

Exception

at line 554
static protected string mask(string $value, string $key = null)

Parameters

string $value
string $key

Return Value

string

at line 576
static protected type getVariableForJson(type $variable)

Parameters

type $variable

Return Value

type

at line 609
static protected type getVariableForTextDump(type $label, type $variable)

Parameters

type $label
type $variable

Return Value

type

at line 647
Ignition writeExceptionLog(Exception $exception)

Startup-Log im Fehlerfall schreiben

Parameters

Exception $exception

Return Value

Ignition

at line 717
type handleExit()

Return Value

type

at line 742
$this handleException(Exception $exception)

Parameters

Exception $exception

Return Value

$this

at line 756
protected Ignition sendTerminalCommand(string $sequence)

Parameters

string $sequence

Return Value

Ignition

at line 768
protected $this handleCliException(Exception $exception)

Parameters

Exception $exception

Return Value

$this

at line 780
protected $this handleHttpException(Exception $exception)

Parameters

Exception $exception

Return Value

$this

at line 868
protected string|null getSupportedMimeType(array $supportedTypes)

Parameters

array $supportedTypes

Return Value

string|null

at line 897
protected Ignition sendHeaders()

Headers senden

Return Value

Ignition

Exceptions

Exception

at line 929
Ignition setHttpStatus(string $status)

HTTP-Status setzen

Parameters

string $status

Return Value

Ignition

Exceptions

Exception

at line 949
Ignition setHeader(string $key, string $value)

Headers setzen

Parameters

string $key
string $value

Return Value

Ignition

Exceptions

Exception

at line 966
protected boolean shouldExecuteForThisClient(string $pattern)

Prüfen, ob die Anweisung auf dem Client ausgeführt werden soll

Parameters

string $pattern

Return Value

boolean