Compare commits
42 Commits
main
...
snmp_updat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9746881492 | ||
|
|
a639cd68e3 | ||
| ee5ce6b5bd | |||
| bbdbb0e187 | |||
| 50e5d82fa3 | |||
| 656093ce01 | |||
| 4127323530 | |||
| 3c2c6d6c6f | |||
| 50d53b4183 | |||
| c194f80f45 | |||
| 434b090b08 | |||
| 300719244e | |||
| 9a8d90a6db | |||
| 21c63b9d6c | |||
| 91d2821034 | |||
| e0cd5591c5 | |||
| e82c2c041a | |||
| f9f9b1f99b | |||
| daba87e48f | |||
| bce1a0c719 | |||
| d013b6cb8a | |||
| bde7b7c7ce | |||
| 191666736b | |||
| 2637715e48 | |||
| bef54a7553 | |||
| bdd79a66cb | |||
| 3eac9a659e | |||
| d1bafa28d9 | |||
| cfcc8f2d0c | |||
| 28be78dceb | |||
| ab296ad0dc | |||
| f68db3ab1e | |||
| 905ce67742 | |||
| 8cd07a73a0 | |||
| 77ac0577e2 | |||
| 7f7cab75e5 | |||
| 6ad293ee4f | |||
| 5acc6d93c9 | |||
| dc75190642 | |||
| b82d16a064 | |||
| 195f19a6f2 | |||
| 6c67d6437e |
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,3 +3,5 @@
|
|||||||
/.vscode/
|
/.vscode/
|
||||||
/storage/
|
/storage/
|
||||||
/config.php
|
/config.php
|
||||||
|
/phpdoc.xml
|
||||||
|
/tools/
|
||||||
|
|||||||
@ -6,6 +6,7 @@ declare(strict_types=1);
|
|||||||
namespace App\Controllers;
|
namespace App\Controllers;
|
||||||
|
|
||||||
use App\Services\Ldap\LdapAuthService;
|
use App\Services\Ldap\LdapAuthService;
|
||||||
|
use App\Services\Logging\LoggingService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Zuständig für alles rund um den Login:
|
* Zuständig für alles rund um den Login:
|
||||||
@ -26,6 +27,9 @@ class AuthController
|
|||||||
/** @var LdapAuthService Service, der die eigentliche LDAP/AD-Authentifizierung übernimmt */
|
/** @var LdapAuthService Service, der die eigentliche LDAP/AD-Authentifizierung übernimmt */
|
||||||
private LdapAuthService $ldapAuthService;
|
private LdapAuthService $ldapAuthService;
|
||||||
|
|
||||||
|
/** @var LoggingService Logger für technische Fehler */
|
||||||
|
private LoggingService $logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Übergibt die Konfiguration an den Controller und initialisiert den LDAP-Authentifizierungsservice.
|
* Übergibt die Konfiguration an den Controller und initialisiert den LDAP-Authentifizierungsservice.
|
||||||
*
|
*
|
||||||
@ -39,6 +43,9 @@ class AuthController
|
|||||||
// LdapAuthService mit dem Teilbereich "ldap" aus der Konfiguration initialisieren.
|
// LdapAuthService mit dem Teilbereich "ldap" aus der Konfiguration initialisieren.
|
||||||
// Wenn 'ldap' nicht gesetzt ist, wird ein leeres Array übergeben (Fail fast erfolgt dann im Service).
|
// Wenn 'ldap' nicht gesetzt ist, wird ein leeres Array übergeben (Fail fast erfolgt dann im Service).
|
||||||
$this->ldapAuthService = new LdapAuthService($config['ldap'] ?? []);
|
$this->ldapAuthService = new LdapAuthService($config['ldap'] ?? []);
|
||||||
|
|
||||||
|
// LoggingService mit dem Teilbereich "logging" aus der Konfiguration initialisieren.
|
||||||
|
$this->logger = new LoggingService($config['logging'] ?? []);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -54,14 +61,14 @@ class AuthController
|
|||||||
|
|
||||||
// Wichtig: Die View erwartet aktuell die Variable $error.
|
// Wichtig: Die View erwartet aktuell die Variable $error.
|
||||||
return [
|
return [
|
||||||
'view' => $viewPath,
|
'view' => $viewPath,
|
||||||
'data' => [
|
'data' => [
|
||||||
'error' => $errorMessage,
|
'error' => $errorMessage,
|
||||||
'loginPage' => true,
|
'loginPage' => true,
|
||||||
],
|
],
|
||||||
'pageTitle' => 'Login',
|
'pageTitle' => 'Login',
|
||||||
// Beim Login ist typischerweise kein Menüpunkt aktiv.
|
// Beim Login ist typischerweise kein Menüpunkt aktiv.
|
||||||
'activeMenu' => null,
|
'activeMenu' => null,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -86,10 +93,25 @@ class AuthController
|
|||||||
// false = Anmeldedaten fachlich ungültig (Benutzer/Passwort falsch)
|
// false = Anmeldedaten fachlich ungültig (Benutzer/Passwort falsch)
|
||||||
$authenticated = $this->ldapAuthService->authenticate($username, $password);
|
$authenticated = $this->ldapAuthService->authenticate($username, $password);
|
||||||
} catch (\Throwable $exception) {
|
} catch (\Throwable $exception) {
|
||||||
// Technischer Fehler (z. B. LDAP-Server nicht erreichbar, falsche Konfiguration).
|
// HIER ist vorher dein Fehler entstanden:
|
||||||
// In diesem Fall wird eine technische Fehlermeldung im Login-Formular angezeigt.
|
// - showLoginForm() wurde nur aufgerufen, das Ergebnis aber ignoriert
|
||||||
|
// - danach kam ein "return;" ohne Rückgabewert → Rückgabetyp array wurde verletzt
|
||||||
|
|
||||||
|
// Technischen Fehler ausführlich ins Log schreiben
|
||||||
|
$this->logger->logException(
|
||||||
|
'Technischer Fehler bei der Anmeldung.',
|
||||||
|
$exception,
|
||||||
|
[
|
||||||
|
'route' => 'login.submit',
|
||||||
|
'username' => $username,
|
||||||
|
'remote_addr'=> $_SERVER['REMOTE_ADDR'] ?? null,
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
|
// Für den Benutzer nur eine allgemeine, aber verständliche Meldung anzeigen
|
||||||
return $this->showLoginForm(
|
return $this->showLoginForm(
|
||||||
'Technischer Fehler bei der Anmeldung: ' . $exception->getMessage()
|
'Technischer Fehler bei der Anmeldung. Bitte versuchen Sie es später erneut '
|
||||||
|
. 'oder wenden Sie sich an den Administrator.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -107,15 +129,15 @@ class AuthController
|
|||||||
// Benutzerinformationen in der Session hinterlegen.
|
// Benutzerinformationen in der Session hinterlegen.
|
||||||
// Diese Daten werden später von requireLogin() bzw. im Layout ausgewertet.
|
// Diese Daten werden später von requireLogin() bzw. im Layout ausgewertet.
|
||||||
$_SESSION[$sessionKey] = [
|
$_SESSION[$sessionKey] = [
|
||||||
'username' => $username,
|
'username' => $username,
|
||||||
'login_at' => date('c'), // ISO-8601 Datum/Zeit der Anmeldung
|
'login_at' => date('c'), // ISO-8601 Datum/Zeit der Anmeldung
|
||||||
];
|
];
|
||||||
|
|
||||||
// Nach erfolgreicher Anmeldung zum Dashboard weiterleiten.
|
// Nach erfolgreicher Anmeldung zum Dashboard weiterleiten.
|
||||||
// Kein direkter header()-Aufruf, sondern ein Redirect-Result
|
// Kein direkter header()-Aufruf, sondern ein Redirect-Result
|
||||||
// für die zentrale Steuerung in index.php.
|
// für die zentrale Steuerung in index.php.
|
||||||
return [
|
return [
|
||||||
'redirect' => 'index.php?route=dashboard',
|
'redirect' => 'index.php?route=dashboard',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -135,7 +157,7 @@ class AuthController
|
|||||||
|
|
||||||
// Redirect-Result zur Login-Seite.
|
// Redirect-Result zur Login-Seite.
|
||||||
return [
|
return [
|
||||||
'redirect' => 'index.php?route=login',
|
'redirect' => 'index.php?route=login',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,6 +6,7 @@ declare(strict_types=1);
|
|||||||
namespace App\Controllers;
|
namespace App\Controllers;
|
||||||
|
|
||||||
use App\Services\Ldap\LdapDirectoryService;
|
use App\Services\Ldap\LdapDirectoryService;
|
||||||
|
use App\Services\Logging\LoggingService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Controller für die Benutzer- und Gruppenanzeige.
|
* Controller für die Benutzer- und Gruppenanzeige.
|
||||||
@ -30,6 +31,9 @@ class UserManagementController
|
|||||||
/** @var LdapDirectoryService Service für das Lesen von Benutzern und Gruppen aus dem LDAP/AD */
|
/** @var LdapDirectoryService Service für das Lesen von Benutzern und Gruppen aus dem LDAP/AD */
|
||||||
private LdapDirectoryService $directoryService;
|
private LdapDirectoryService $directoryService;
|
||||||
|
|
||||||
|
/** @var LoggingService Logger für technische Fehler */
|
||||||
|
private LoggingService $logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $config Vollständige Konfiguration aus config.php
|
* @param array<string, mixed> $config Vollständige Konfiguration aus config.php
|
||||||
*/
|
*/
|
||||||
@ -43,6 +47,9 @@ class UserManagementController
|
|||||||
|
|
||||||
// Directory-Service initialisieren, der die eigentliche LDAP-Arbeit übernimmt.
|
// Directory-Service initialisieren, der die eigentliche LDAP-Arbeit übernimmt.
|
||||||
$this->directoryService = new LdapDirectoryService($ldapConfig);
|
$this->directoryService = new LdapDirectoryService($ldapConfig);
|
||||||
|
|
||||||
|
// Logging-Service initialisieren.
|
||||||
|
$this->logger = new LoggingService($config['logging'] ?? []);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -63,25 +70,34 @@ class UserManagementController
|
|||||||
$users = $this->directoryService->getUsers();
|
$users = $this->directoryService->getUsers();
|
||||||
$groups = $this->directoryService->getGroups();
|
$groups = $this->directoryService->getGroups();
|
||||||
} catch (\Throwable $exception) {
|
} catch (\Throwable $exception) {
|
||||||
// Sämtliche technischen Fehler (z. B. Verbindungs- oder Konfigurationsprobleme)
|
// Technische Details ins Log, für den Benutzer eine allgemeine Meldung.
|
||||||
// werden hier in eine für den Benutzer lesbare Fehlermeldung übersetzt.
|
$this->logger->logException(
|
||||||
$error = 'Fehler beim Laden von Benutzern/Gruppen: ' . $exception->getMessage();
|
'Fehler beim Laden von Benutzern/Gruppen.',
|
||||||
|
$exception,
|
||||||
|
[
|
||||||
|
'route' => 'users',
|
||||||
|
'remote_addr' => $_SERVER['REMOTE_ADDR'] ?? null,
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
|
$error = 'Fehler beim Laden von Benutzern/Gruppen. '
|
||||||
|
. 'Bitte versuchen Sie es später erneut oder wenden Sie sich an den Administrator.';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pfad zur eigentlichen View-Datei bestimmen.
|
// Pfad zur eigentlichen View-Datei bestimmen.
|
||||||
$viewPath = __DIR__ . '/../../public/views/users.php';
|
$viewPath = __DIR__ . '/../../public/views/users.php';
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'view' => $viewPath,
|
'view' => $viewPath,
|
||||||
'data' => [
|
'data' => [
|
||||||
// Die View erwartet aktuell $users, $groups, $error.
|
// Die View erwartet aktuell $users, $groups, $error.
|
||||||
'users' => $users,
|
'users' => $users,
|
||||||
'groups' => $groups,
|
'groups' => $groups,
|
||||||
'error' => $error,
|
'error' => $error,
|
||||||
'loginPage' => false,
|
'loginPage' => false,
|
||||||
],
|
],
|
||||||
'pageTitle' => 'Benutzer & Gruppen',
|
'pageTitle' => 'Benutzer & Gruppen',
|
||||||
'activeMenu' => 'users',
|
'activeMenu' => 'users',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -58,7 +58,8 @@ class LdapConnectionHelper
|
|||||||
|
|
||||||
// Verbindung zum LDAP/AD-Server herstellen.
|
// Verbindung zum LDAP/AD-Server herstellen.
|
||||||
// ldap_connect liefert entweder ein Verbindungs-Handle (Resource) oder false.
|
// ldap_connect liefert entweder ein Verbindungs-Handle (Resource) oder false.
|
||||||
$connection = ldap_connect($server, $port);
|
$uri = "ldap://".$server . ':' . $port;
|
||||||
|
$connection = ldap_connect($uri);
|
||||||
|
|
||||||
// Wenn keine Verbindung aufgebaut werden konnte, Exception werfen.
|
// Wenn keine Verbindung aufgebaut werden konnte, Exception werfen.
|
||||||
if ($connection === false) {
|
if ($connection === false) {
|
||||||
|
|||||||
133
app/Services/Logging/LoggingService.php
Normal file
133
app/Services/Logging/LoggingService.php
Normal file
@ -0,0 +1,133 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// Strenge Typprüfung für Parameter- und Rückgabetypen aktivieren.
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace App\Services\Logging;
|
||||||
|
|
||||||
|
use DateTimeImmutable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Einfacher File-Logger für die AdminTool-Anwendung.
|
||||||
|
*
|
||||||
|
* Ziele:
|
||||||
|
* - Technische Details werden in eine Log-Datei unter public/logs/ geschrieben.
|
||||||
|
* - In der Weboberfläche erscheinen nur verständliche, fachliche Fehlermeldungen.
|
||||||
|
*/
|
||||||
|
class LoggingService
|
||||||
|
{
|
||||||
|
/** @var string Vollständiger Pfad zum Log-Verzeichnis */
|
||||||
|
private string $logDir;
|
||||||
|
|
||||||
|
/** @var string Dateiname der Log-Datei */
|
||||||
|
private string $logFile;
|
||||||
|
|
||||||
|
/** @var int Minimale Log-Stufe, ab der geschrieben wird. */
|
||||||
|
private int $minLevel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Zuordnung der Log-Level zu numerischen Werten zur Filterung.
|
||||||
|
*
|
||||||
|
* @var array<string, int>
|
||||||
|
*/
|
||||||
|
private const LEVEL_MAP = [
|
||||||
|
'debug' => 100,
|
||||||
|
'info' => 200,
|
||||||
|
'warning' => 300,
|
||||||
|
'error' => 400,
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array<string, mixed> $config Teilkonfiguration "logging" aus config.php
|
||||||
|
*/
|
||||||
|
public function __construct(array $config)
|
||||||
|
{
|
||||||
|
// Standard: public/logs relativ zum Projektroot
|
||||||
|
$baseDir = $config['log_dir'] ?? (__DIR__ . '/../../../public/logs');
|
||||||
|
$fileName = $config['log_file'] ?? 'app.log';
|
||||||
|
$level = strtolower((string)($config['min_level'] ?? 'info'));
|
||||||
|
|
||||||
|
$this->logDir = rtrim($baseDir, DIRECTORY_SEPARATOR);
|
||||||
|
$this->logFile = $fileName;
|
||||||
|
$this->minLevel = self::LEVEL_MAP[$level] ?? self::LEVEL_MAP['info'];
|
||||||
|
|
||||||
|
$this->ensureLogDirectoryExists();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Stellt sicher, dass das Log-Verzeichnis existiert.
|
||||||
|
*/
|
||||||
|
private function ensureLogDirectoryExists(): void
|
||||||
|
{
|
||||||
|
if (is_dir($this->logDir) === true) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (@mkdir($this->logDir, 0775, true) === false && is_dir($this->logDir) === false) {
|
||||||
|
// Wenn das Anlegen fehlschlägt, wenigstens einen Eintrag im PHP-Error-Log hinterlassen.
|
||||||
|
error_log(sprintf('LoggingService: Konnte Log-Verzeichnis "%s" nicht anlegen.', $this->logDir));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allgemeiner Log-Eintrag.
|
||||||
|
*
|
||||||
|
* @param string $level Log-Level (debug|info|warning|error)
|
||||||
|
* @param string $message Nachrichtentext
|
||||||
|
* @param array<string, mixed> $context Zusätzliche Kontextinformationen
|
||||||
|
*/
|
||||||
|
public function log(string $level, string $message, array $context = []): void
|
||||||
|
{
|
||||||
|
$level = strtolower($level);
|
||||||
|
$numericLevel = self::LEVEL_MAP[$level] ?? self::LEVEL_MAP['error'];
|
||||||
|
|
||||||
|
// Alles unterhalb der minimalen Stufe ignorieren.
|
||||||
|
if ($numericLevel < $this->minLevel) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$timestamp = (new DateTimeImmutable())->format('Y-m-d H:i:s');
|
||||||
|
|
||||||
|
$contextJson = $context === []
|
||||||
|
? '{}'
|
||||||
|
: (string)json_encode($context, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
|
||||||
|
|
||||||
|
$line = sprintf(
|
||||||
|
"[%s] %-7s %s %s%s",
|
||||||
|
$timestamp,
|
||||||
|
strtoupper($level),
|
||||||
|
$message,
|
||||||
|
$contextJson,
|
||||||
|
PHP_EOL
|
||||||
|
);
|
||||||
|
|
||||||
|
$filePath = $this->logDir . DIRECTORY_SEPARATOR . $this->logFile;
|
||||||
|
|
||||||
|
if (@file_put_contents($filePath, $line, FILE_APPEND | LOCK_EX) === false) {
|
||||||
|
// Fallback, damit Fehler beim Logging selbst nicht die App zerschießen.
|
||||||
|
error_log(sprintf('LoggingService: Konnte in Log-Datei "%s" nicht schreiben.', $filePath));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Komfortmethode, um Exceptions strukturiert zu loggen.
|
||||||
|
*
|
||||||
|
* @param string $message Kurzer Kontexttext zur Exception
|
||||||
|
* @param \Throwable $exception Die geworfene Exception
|
||||||
|
* @param array<string, mixed> $context Zusätzlicher Kontext (Route, Benutzername, Remote-IP, ...)
|
||||||
|
*/
|
||||||
|
public function logException(string $message, \Throwable $exception, array $context = []): void
|
||||||
|
{
|
||||||
|
$exceptionContext = [
|
||||||
|
'exception_class' => get_class($exception),
|
||||||
|
'exception_message' => $exception->getMessage(),
|
||||||
|
'file' => $exception->getFile(),
|
||||||
|
'line' => $exception->getLine(),
|
||||||
|
'trace' => $exception->getTraceAsString(),
|
||||||
|
];
|
||||||
|
|
||||||
|
$mergedContext = array_merge($context, $exceptionContext);
|
||||||
|
|
||||||
|
$this->log('error', $message, $mergedContext);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -67,7 +67,12 @@ class SnmpServerStatusService
|
|||||||
// Hilfsfunktion: SNMP-Werte bereinigen (z.B. "INTEGER: 123" -> 123)
|
// Hilfsfunktion: SNMP-Werte bereinigen (z.B. "INTEGER: 123" -> 123)
|
||||||
$cleanSnmpValue = fn($v) => (int)filter_var($v, FILTER_SANITIZE_NUMBER_INT);
|
$cleanSnmpValue = fn($v) => (int)filter_var($v, FILTER_SANITIZE_NUMBER_INT);
|
||||||
|
|
||||||
// --- 2. Uptime abfragen ---
|
// --- 2. Hostname abfragen (dynamisch, nicht hardcoded) ---
|
||||||
|
$hostnameOid = $oids['hostname'] ?? '1.3.6.1.2.1.1.5.0'; // sysName OID
|
||||||
|
$hostnameResult = @snmpget($host, $community, $hostnameOid, $timeout, $retries);
|
||||||
|
$hostnameFromSnmp = $hostnameResult ? trim(str_ireplace('STRING:', '', $hostnameResult), ' "') : $host;
|
||||||
|
|
||||||
|
// --- 3. Uptime abfragen ---
|
||||||
$uptimeOid = $oids['uptime'] ?? '1.3.6.1.2.1.1.3.0';
|
$uptimeOid = $oids['uptime'] ?? '1.3.6.1.2.1.1.3.0';
|
||||||
$uptimeResult = @snmpget($host, $community, $uptimeOid, $timeout, $retries);
|
$uptimeResult = @snmpget($host, $community, $uptimeOid, $timeout, $retries);
|
||||||
if ($uptimeResult === false) {
|
if ($uptimeResult === false) {
|
||||||
@ -86,7 +91,7 @@ class SnmpServerStatusService
|
|||||||
(int)($uptimeSeconds % 60)
|
(int)($uptimeSeconds % 60)
|
||||||
);
|
);
|
||||||
|
|
||||||
// --- 3. CPU (Durchschnitt über alle Kerne) ---
|
// --- 4. CPU (Durchschnitt über alle Kerne) ---
|
||||||
$cpuTable = $oids['cpu_table'] ?? '1.3.6.1.2.1.25.3.3.1.2';
|
$cpuTable = $oids['cpu_table'] ?? '1.3.6.1.2.1.25.3.3.1.2';
|
||||||
$cpuValues = @snmpwalk($host, $community, $cpuTable, $timeout, $retries);
|
$cpuValues = @snmpwalk($host, $community, $cpuTable, $timeout, $retries);
|
||||||
|
|
||||||
@ -97,7 +102,7 @@ class SnmpServerStatusService
|
|||||||
$cpuValues = array_map($cleanSnmpValue, $cpuValues);
|
$cpuValues = array_map($cleanSnmpValue, $cpuValues);
|
||||||
$cpuAvg = (int)round(array_sum($cpuValues) / count($cpuValues));
|
$cpuAvg = (int)round(array_sum($cpuValues) / count($cpuValues));
|
||||||
|
|
||||||
// --- 4. Storage-Tabellen (RAM + Disks) ---
|
// --- 5. Storage-Tabellen (RAM + Disks) ---
|
||||||
$descrOid = $oids['storage_descr'] ?? '1.3.6.1.2.1.25.2.3.1.3';
|
$descrOid = $oids['storage_descr'] ?? '1.3.6.1.2.1.25.2.3.1.3';
|
||||||
$unitsOid = $oids['storage_units'] ?? '1.3.6.1.2.1.25.2.3.1.4';
|
$unitsOid = $oids['storage_units'] ?? '1.3.6.1.2.1.25.2.3.1.4';
|
||||||
$sizeOid = $oids['storage_size'] ?? '1.3.6.1.2.1.25.2.3.1.5';
|
$sizeOid = $oids['storage_size'] ?? '1.3.6.1.2.1.25.2.3.1.5';
|
||||||
@ -118,7 +123,7 @@ class SnmpServerStatusService
|
|||||||
$size = array_map($cleanSnmpValue, $size);
|
$size = array_map($cleanSnmpValue, $size);
|
||||||
$used = array_map($cleanSnmpValue, $used);
|
$used = array_map($cleanSnmpValue, $used);
|
||||||
|
|
||||||
// --- 5. RAM mit Fallback-Logik ---
|
// --- 6. RAM mit Fallback-Logik ---
|
||||||
$ramPercent = null;
|
$ramPercent = null;
|
||||||
$memTotalBytes = null;
|
$memTotalBytes = null;
|
||||||
|
|
||||||
@ -163,7 +168,7 @@ class SnmpServerStatusService
|
|||||||
throw new RuntimeException("Konnte 'Physical Memory' in der SNMP Storage-Tabelle nicht finden.");
|
throw new RuntimeException("Konnte 'Physical Memory' in der SNMP Storage-Tabelle nicht finden.");
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- 6. Disk C: / Root mit Fallback-Logik ---
|
// --- 7. Disk C: / Root mit Fallback-Logik ---
|
||||||
$diskCPercent = null;
|
$diskCPercent = null;
|
||||||
|
|
||||||
// Heuristik 1: Suche nach C:\
|
// Heuristik 1: Suche nach C:\
|
||||||
@ -212,9 +217,9 @@ class SnmpServerStatusService
|
|||||||
throw new RuntimeException("Konnte Laufwerk 'C:\\' oder Root-Partition in der SNMP Storage-Tabelle nicht finden.");
|
throw new RuntimeException("Konnte Laufwerk 'C:\\' oder Root-Partition in der SNMP Storage-Tabelle nicht finden.");
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- 7. Status-Array zusammenbauen ---
|
// --- 8. Status-Array zusammenbauen ---
|
||||||
$status = [
|
$status = [
|
||||||
'hostname' => $host,
|
'hostname' => $hostnameFromSnmp,
|
||||||
'os' => 'Windows Server', // TODO: OS dynamisch per SNMP abfragen (OID 1.3.6.1.2.1.1.1.0)
|
'os' => 'Windows Server', // TODO: OS dynamisch per SNMP abfragen (OID 1.3.6.1.2.1.1.1.0)
|
||||||
'uptime' => $uptimeFormatted,
|
'uptime' => $uptimeFormatted,
|
||||||
'cpu_usage' => $cpuAvg,
|
'cpu_usage' => $cpuAvg,
|
||||||
|
|||||||
@ -36,6 +36,7 @@ return [
|
|||||||
|
|
||||||
// Platzhalter für OIDs – später können wir die auf echte Werte setzen
|
// Platzhalter für OIDs – später können wir die auf echte Werte setzen
|
||||||
'oids' => [
|
'oids' => [
|
||||||
|
'hostname' => '1.3.6.1.2.1.1.5.0', // sysName - Hostname des Servers
|
||||||
'uptime' => '1.3.6.1.2.1.1.3.0',
|
'uptime' => '1.3.6.1.2.1.1.3.0',
|
||||||
|
|
||||||
// CPU pro Kern
|
// CPU pro Kern
|
||||||
@ -49,4 +50,14 @@ return [
|
|||||||
'storage_used' => '1.3.6.1.2.1.25.2.3.1.6',
|
'storage_used' => '1.3.6.1.2.1.25.2.3.1.6',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
// Logging-Konfiguration
|
||||||
|
'logging' => [
|
||||||
|
// Standard: public/logs relativ zum Projekt-Root
|
||||||
|
'log_dir' => __DIR__ . '/../public/logs',
|
||||||
|
// Name der Logdatei
|
||||||
|
'log_file' => 'app.log',
|
||||||
|
// Minimale Stufe: debug, info, warning, error
|
||||||
|
'min_level' => 'info',
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
721
docs/api/classes/App-Controllers-AuthController.html
Normal file
721
docs/api/classes/App-Controllers-AuthController.html
Normal file
@ -0,0 +1,721 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app.html">App</a></li>
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app-controllers.html">Controllers</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -class">
|
||||||
|
<h2 class="phpdocumentor-content__title">
|
||||||
|
AuthController
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-element__package">
|
||||||
|
in package
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Controllers/AuthController.php"><a href="files/app-controllers-authcontroller.html"><abbr title="app/Controllers/AuthController.php">AuthController.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">22</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Zuständig für alles rund um den Login:
|
||||||
|
- Login-Formular anzeigen
|
||||||
|
- Login-Daten verarbeiten (Authentifizierung gegen LDAP/AD)
|
||||||
|
- Logout durchführen</p>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>NEU:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Statt direkt HTML auszugeben oder header()-Redirects zu setzen,
|
||||||
|
liefert der Controller "View-Results" zurück, die von index.php
|
||||||
|
und einem zentralen Layout verarbeitet werden.</li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="classes/App-Controllers-AuthController.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-properties">
|
||||||
|
Properties
|
||||||
|
<a href="classes/App-Controllers-AuthController.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
||||||
|
<a class="" href="classes/App-Controllers-AuthController.html#property_config">$config</a>
|
||||||
|
<span>
|
||||||
|
: array<string, mixed> </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
||||||
|
<a class="" href="classes/App-Controllers-AuthController.html#property_ldapAuthService">$ldapAuthService</a>
|
||||||
|
<span>
|
||||||
|
: <a href="classes/App-Services-Ldap-LdapAuthService.html"><abbr title="\App\Services\Ldap\LdapAuthService">LdapAuthService</abbr></a> </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
||||||
|
<a class="" href="classes/App-Controllers-AuthController.html#property_logger">$logger</a>
|
||||||
|
<span>
|
||||||
|
: <a href="classes/App-Services-Logging-LoggingService.html"><abbr title="\App\Services\Logging\LoggingService">LoggingService</abbr></a> </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<h4 id="toc-methods">
|
||||||
|
Methods
|
||||||
|
<a href="classes/App-Controllers-AuthController.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
||||||
|
<a class="" href="classes/App-Controllers-AuthController.html#method___construct">__construct()</a>
|
||||||
|
<span>
|
||||||
|
: mixed </span>
|
||||||
|
</dt>
|
||||||
|
<dd>Übergibt die Konfiguration an den Controller und initialisiert den LDAP-Authentifizierungsservice.</dd>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
||||||
|
<a class="" href="classes/App-Controllers-AuthController.html#method_logout">logout()</a>
|
||||||
|
<span>
|
||||||
|
: array<string, mixed> </span>
|
||||||
|
</dt>
|
||||||
|
<dd>Meldet den aktuell eingeloggten Benutzer ab, indem der entsprechende Session-Eintrag entfernt wird,
|
||||||
|
und liefert anschließend ein Redirect-Result zurück auf die Login-Seite.</dd>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
||||||
|
<a class="" href="classes/App-Controllers-AuthController.html#method_processLogin">processLogin()</a>
|
||||||
|
<span>
|
||||||
|
: array<string, mixed> </span>
|
||||||
|
</dt>
|
||||||
|
<dd>Verarbeitet das Login-Formular:
|
||||||
|
- Liest Benutzername und Passwort aus $_POST
|
||||||
|
- Ruft den LdapAuthService zur Authentifizierung auf
|
||||||
|
- Liefert bei Erfolg ein Redirect-Result zum Dashboard
|
||||||
|
- Liefert bei Fehlern ein View-Result für das Login-Formular mit Fehlermeldung</dd>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
||||||
|
<a class="" href="classes/App-Controllers-AuthController.html#method_showLoginForm">showLoginForm()</a>
|
||||||
|
<span>
|
||||||
|
: array<string, mixed> </span>
|
||||||
|
</dt>
|
||||||
|
<dd>Zeigt das Login-Formular an.</dd>
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-properties">
|
||||||
|
<h3 class="phpdocumentor-elements__header" id="properties">
|
||||||
|
Properties
|
||||||
|
<a href="classes/App-Controllers-AuthController.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
<article
|
||||||
|
class="
|
||||||
|
phpdocumentor-element
|
||||||
|
-property
|
||||||
|
-private
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="property_config">
|
||||||
|
$config
|
||||||
|
<a href="classes/App-Controllers-AuthController.html#property_config" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
<span class="phpdocumentor-element__modifiers">
|
||||||
|
</span>
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Controllers/AuthController.php"><a href="files/app-controllers-authcontroller.html"><abbr title="app/Controllers/AuthController.php">AuthController.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">25</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">private</span>
|
||||||
|
<span class="phpdocumentor-signature__type">array<string, mixed></span>
|
||||||
|
<span class="phpdocumentor-signature__name">$config</span>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>Konfigurationswerte der Anwendung (aus config.php)</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="
|
||||||
|
phpdocumentor-element
|
||||||
|
-property
|
||||||
|
-private
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="property_ldapAuthService">
|
||||||
|
$ldapAuthService
|
||||||
|
<a href="classes/App-Controllers-AuthController.html#property_ldapAuthService" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
<span class="phpdocumentor-element__modifiers">
|
||||||
|
</span>
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Controllers/AuthController.php"><a href="files/app-controllers-authcontroller.html"><abbr title="app/Controllers/AuthController.php">AuthController.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">28</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">private</span>
|
||||||
|
<span class="phpdocumentor-signature__type"><a href="classes/App-Services-Ldap-LdapAuthService.html"><abbr title="\App\Services\Ldap\LdapAuthService">LdapAuthService</abbr></a></span>
|
||||||
|
<span class="phpdocumentor-signature__name">$ldapAuthService</span>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>Service, der die eigentliche LDAP/AD-Authentifizierung übernimmt</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="
|
||||||
|
phpdocumentor-element
|
||||||
|
-property
|
||||||
|
-private
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="property_logger">
|
||||||
|
$logger
|
||||||
|
<a href="classes/App-Controllers-AuthController.html#property_logger" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
<span class="phpdocumentor-element__modifiers">
|
||||||
|
</span>
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Controllers/AuthController.php"><a href="files/app-controllers-authcontroller.html"><abbr title="app/Controllers/AuthController.php">AuthController.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">31</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">private</span>
|
||||||
|
<span class="phpdocumentor-signature__type"><a href="classes/App-Services-Logging-LoggingService.html"><abbr title="\App\Services\Logging\LoggingService">LoggingService</abbr></a></span>
|
||||||
|
<span class="phpdocumentor-signature__name">$logger</span>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>Logger für technische Fehler</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-methods">
|
||||||
|
<h3 class="phpdocumentor-elements__header" id="methods">
|
||||||
|
Methods
|
||||||
|
<a href="classes/App-Controllers-AuthController.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-public
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method___construct">
|
||||||
|
__construct()
|
||||||
|
<a href="classes/App-Controllers-AuthController.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Controllers/AuthController.php"><a href="files/app-controllers-authcontroller.html"><abbr title="app/Controllers/AuthController.php">AuthController.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">38</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Übergibt die Konfiguration an den Controller und initialisiert den LDAP-Authentifizierungsservice.</p>
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">public</span>
|
||||||
|
<span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array<string, mixed> </span><span class="phpdocumentor-signature__argument__name">$config</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
|
||||||
|
<dl class="phpdocumentor-argument-list">
|
||||||
|
<dt class="phpdocumentor-argument-list__entry">
|
||||||
|
<span class="phpdocumentor-signature__argument__name">$config</span>
|
||||||
|
: <span class="phpdocumentor-signature__argument__return-type">array<string, mixed></span>
|
||||||
|
</dt>
|
||||||
|
<dd class="phpdocumentor-argument-list__definition">
|
||||||
|
<section class="phpdocumentor-description"><p>Vollständige Konfiguration aus config.php</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-public
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method_logout">
|
||||||
|
logout()
|
||||||
|
<a href="classes/App-Controllers-AuthController.html#method_logout" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Controllers/AuthController.php"><a href="files/app-controllers-authcontroller.html"><abbr title="app/Controllers/AuthController.php">AuthController.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">150</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Meldet den aktuell eingeloggten Benutzer ab, indem der entsprechende Session-Eintrag entfernt wird,
|
||||||
|
und liefert anschließend ein Redirect-Result zurück auf die Login-Seite.</p>
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">public</span>
|
||||||
|
<span class="phpdocumentor-signature__name">logout</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array<string, mixed></span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
|
||||||
|
<span class="phpdocumentor-signature__response_type">array<string, mixed></span>
|
||||||
|
—
|
||||||
|
<section class="phpdocumentor-description"><p>Redirect-Result</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-public
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method_processLogin">
|
||||||
|
processLogin()
|
||||||
|
<a href="classes/App-Controllers-AuthController.html#method_processLogin" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Controllers/AuthController.php"><a href="files/app-controllers-authcontroller.html"><abbr title="app/Controllers/AuthController.php">AuthController.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">84</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Verarbeitet das Login-Formular:
|
||||||
|
- Liest Benutzername und Passwort aus $_POST
|
||||||
|
- Ruft den LdapAuthService zur Authentifizierung auf
|
||||||
|
- Liefert bei Erfolg ein Redirect-Result zum Dashboard
|
||||||
|
- Liefert bei Fehlern ein View-Result für das Login-Formular mit Fehlermeldung</p>
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">public</span>
|
||||||
|
<span class="phpdocumentor-signature__name">processLogin</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array<string, mixed></span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
|
||||||
|
<span class="phpdocumentor-signature__response_type">array<string, mixed></span>
|
||||||
|
—
|
||||||
|
<section class="phpdocumentor-description"><p>View-Result ODER Redirect-Result</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-public
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method_showLoginForm">
|
||||||
|
showLoginForm()
|
||||||
|
<a href="classes/App-Controllers-AuthController.html#method_showLoginForm" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Controllers/AuthController.php"><a href="files/app-controllers-authcontroller.html"><abbr title="app/Controllers/AuthController.php">AuthController.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">57</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Zeigt das Login-Formular an.</p>
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">public</span>
|
||||||
|
<span class="phpdocumentor-signature__name">showLoginForm</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string|null </span><span class="phpdocumentor-signature__argument__name">$errorMessage</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array<string, mixed></span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>Optional kann eine Fehlermeldung übergeben werden, die in der View dargestellt wird.</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
|
||||||
|
<dl class="phpdocumentor-argument-list">
|
||||||
|
<dt class="phpdocumentor-argument-list__entry">
|
||||||
|
<span class="phpdocumentor-signature__argument__name">$errorMessage</span>
|
||||||
|
: <span class="phpdocumentor-signature__argument__return-type">string|null</span>
|
||||||
|
= <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
|
||||||
|
<dd class="phpdocumentor-argument-list__definition">
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
|
||||||
|
<span class="phpdocumentor-signature__response_type">array<string, mixed></span>
|
||||||
|
—
|
||||||
|
<section class="phpdocumentor-description"><p>View-Result für das zentrale Layout</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/app/Controllers/AuthController.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li><a href="classes/App-Controllers-AuthController.html#toc-properties">Properties</a></li>
|
||||||
|
<li><a href="classes/App-Controllers-AuthController.html#toc-methods">Methods</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Properties</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class=""><a href="classes/App-Controllers-AuthController.html#property_config">$config</a></li>
|
||||||
|
<li class=""><a href="classes/App-Controllers-AuthController.html#property_ldapAuthService">$ldapAuthService</a></li>
|
||||||
|
<li class=""><a href="classes/App-Controllers-AuthController.html#property_logger">$logger</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Methods</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class=""><a href="classes/App-Controllers-AuthController.html#method___construct">__construct()</a></li>
|
||||||
|
<li class=""><a href="classes/App-Controllers-AuthController.html#method_logout">logout()</a></li>
|
||||||
|
<li class=""><a href="classes/App-Controllers-AuthController.html#method_processLogin">processLogin()</a></li>
|
||||||
|
<li class=""><a href="classes/App-Controllers-AuthController.html#method_showLoginForm">showLoginForm()</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="classes/App-Controllers-AuthController.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
537
docs/api/classes/App-Controllers-DashboardController.html
Normal file
537
docs/api/classes/App-Controllers-DashboardController.html
Normal file
@ -0,0 +1,537 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app.html">App</a></li>
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app-controllers.html">Controllers</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -class">
|
||||||
|
<h2 class="phpdocumentor-content__title">
|
||||||
|
DashboardController
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-element__package">
|
||||||
|
in package
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Controllers/DashboardController.php"><a href="files/app-controllers-dashboardcontroller.html"><abbr title="app/Controllers/DashboardController.php">DashboardController.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">15</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Controller für das Dashboard.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>Zeigt Serverstatus-Metriken über SNMP an:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Initial Load: Server-seitiger Service-Aufruf (sofortige Daten)</li>
|
||||||
|
<li>Live-Updates: Client-seitiges JavaScript-Polling alle 5s</li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="classes/App-Controllers-DashboardController.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-properties">
|
||||||
|
Properties
|
||||||
|
<a href="classes/App-Controllers-DashboardController.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
||||||
|
<a class="" href="classes/App-Controllers-DashboardController.html#property_config">$config</a>
|
||||||
|
<span>
|
||||||
|
: array<string|int, mixed> </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
||||||
|
<a class="" href="classes/App-Controllers-DashboardController.html#property_snmpService">$snmpService</a>
|
||||||
|
<span>
|
||||||
|
: <a href="classes/App-Services-Snmp-SnmpServerStatusService.html"><abbr title="\App\Services\Snmp\SnmpServerStatusService">SnmpServerStatusService</abbr></a> </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<h4 id="toc-methods">
|
||||||
|
Methods
|
||||||
|
<a href="classes/App-Controllers-DashboardController.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
||||||
|
<a class="" href="classes/App-Controllers-DashboardController.html#method___construct">__construct()</a>
|
||||||
|
<span>
|
||||||
|
: mixed </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
||||||
|
<a class="" href="classes/App-Controllers-DashboardController.html#method_show">show()</a>
|
||||||
|
<span>
|
||||||
|
: array<string|int, mixed> </span>
|
||||||
|
</dt>
|
||||||
|
<dd>Zeigt das Dashboard an.</dd>
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-properties">
|
||||||
|
<h3 class="phpdocumentor-elements__header" id="properties">
|
||||||
|
Properties
|
||||||
|
<a href="classes/App-Controllers-DashboardController.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
<article
|
||||||
|
class="
|
||||||
|
phpdocumentor-element
|
||||||
|
-property
|
||||||
|
-private
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="property_config">
|
||||||
|
$config
|
||||||
|
<a href="classes/App-Controllers-DashboardController.html#property_config" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
<span class="phpdocumentor-element__modifiers">
|
||||||
|
</span>
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Controllers/DashboardController.php"><a href="files/app-controllers-dashboardcontroller.html"><abbr title="app/Controllers/DashboardController.php">DashboardController.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">17</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">private</span>
|
||||||
|
<span class="phpdocumentor-signature__type">array<string|int, mixed></span>
|
||||||
|
<span class="phpdocumentor-signature__name">$config</span>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="
|
||||||
|
phpdocumentor-element
|
||||||
|
-property
|
||||||
|
-private
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="property_snmpService">
|
||||||
|
$snmpService
|
||||||
|
<a href="classes/App-Controllers-DashboardController.html#property_snmpService" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
<span class="phpdocumentor-element__modifiers">
|
||||||
|
</span>
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Controllers/DashboardController.php"><a href="files/app-controllers-dashboardcontroller.html"><abbr title="app/Controllers/DashboardController.php">DashboardController.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">18</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">private</span>
|
||||||
|
<span class="phpdocumentor-signature__type"><a href="classes/App-Services-Snmp-SnmpServerStatusService.html"><abbr title="\App\Services\Snmp\SnmpServerStatusService">SnmpServerStatusService</abbr></a></span>
|
||||||
|
<span class="phpdocumentor-signature__name">$snmpService</span>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-methods">
|
||||||
|
<h3 class="phpdocumentor-elements__header" id="methods">
|
||||||
|
Methods
|
||||||
|
<a href="classes/App-Controllers-DashboardController.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-public
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method___construct">
|
||||||
|
__construct()
|
||||||
|
<a href="classes/App-Controllers-DashboardController.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Controllers/DashboardController.php"><a href="files/app-controllers-dashboardcontroller.html"><abbr title="app/Controllers/DashboardController.php">DashboardController.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">20</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">public</span>
|
||||||
|
<span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array<string|int, mixed> </span><span class="phpdocumentor-signature__argument__name">$config</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
|
||||||
|
<dl class="phpdocumentor-argument-list">
|
||||||
|
<dt class="phpdocumentor-argument-list__entry">
|
||||||
|
<span class="phpdocumentor-signature__argument__name">$config</span>
|
||||||
|
: <span class="phpdocumentor-signature__argument__return-type">array<string|int, mixed></span>
|
||||||
|
</dt>
|
||||||
|
<dd class="phpdocumentor-argument-list__definition">
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-public
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method_show">
|
||||||
|
show()
|
||||||
|
<a href="classes/App-Controllers-DashboardController.html#method_show" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Controllers/DashboardController.php"><a href="files/app-controllers-dashboardcontroller.html"><abbr title="app/Controllers/DashboardController.php">DashboardController.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">33</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Zeigt das Dashboard an.</p>
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">public</span>
|
||||||
|
<span class="phpdocumentor-signature__name">show</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array<string|int, mixed></span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>Beim initialen Laden wird der Service aufgerufen, um sofort Daten anzuzeigen.
|
||||||
|
Live-Updates erfolgen anschließend via JavaScript-Polling (api/snmp_status.php alle 5s).</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
|
||||||
|
<span class="phpdocumentor-signature__response_type">array<string|int, mixed></span>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/app/Controllers/DashboardController.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li><a href="classes/App-Controllers-DashboardController.html#toc-properties">Properties</a></li>
|
||||||
|
<li><a href="classes/App-Controllers-DashboardController.html#toc-methods">Methods</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Properties</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class=""><a href="classes/App-Controllers-DashboardController.html#property_config">$config</a></li>
|
||||||
|
<li class=""><a href="classes/App-Controllers-DashboardController.html#property_snmpService">$snmpService</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Methods</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class=""><a href="classes/App-Controllers-DashboardController.html#method___construct">__construct()</a></li>
|
||||||
|
<li class=""><a href="classes/App-Controllers-DashboardController.html#method_show">show()</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="classes/App-Controllers-DashboardController.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
603
docs/api/classes/App-Controllers-UserManagementController.html
Normal file
603
docs/api/classes/App-Controllers-UserManagementController.html
Normal file
@ -0,0 +1,603 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app.html">App</a></li>
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app-controllers.html">Controllers</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -class">
|
||||||
|
<h2 class="phpdocumentor-content__title">
|
||||||
|
UserManagementController
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-element__package">
|
||||||
|
in package
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Controllers/UserManagementController.php"><a href="files/app-controllers-usermanagementcontroller.html"><abbr title="app/Controllers/UserManagementController.php">UserManagementController.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">26</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Controller für die Benutzer- und Gruppenanzeige.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>Aufgaben:</p>
|
||||||
|
<ul>
|
||||||
|
<li>holt über den LdapDirectoryService die Listen von Benutzern und Gruppen</li>
|
||||||
|
<li>behandelt technische Fehler und bereitet eine Fehlermeldung für die View auf</li>
|
||||||
|
<li>gibt die Daten an eine View-Datei (public/views/users.php) weiter</li>
|
||||||
|
</ul>
|
||||||
|
<p>WICHTIG:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Es werden aktuell nur Daten angezeigt (Read-only).</li>
|
||||||
|
<li>Es findet keine Änderung im Active Directory statt.</li>
|
||||||
|
</ul>
|
||||||
|
<p>NEU:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Gibt ein View-Result-Array zurück, das von index.php + Layout gerendert wird.</li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="classes/App-Controllers-UserManagementController.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-properties">
|
||||||
|
Properties
|
||||||
|
<a href="classes/App-Controllers-UserManagementController.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
||||||
|
<a class="" href="classes/App-Controllers-UserManagementController.html#property_config">$config</a>
|
||||||
|
<span>
|
||||||
|
: array<string, mixed> </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
||||||
|
<a class="" href="classes/App-Controllers-UserManagementController.html#property_directoryService">$directoryService</a>
|
||||||
|
<span>
|
||||||
|
: <a href="classes/App-Services-Ldap-LdapDirectoryService.html"><abbr title="\App\Services\Ldap\LdapDirectoryService">LdapDirectoryService</abbr></a> </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
||||||
|
<a class="" href="classes/App-Controllers-UserManagementController.html#property_logger">$logger</a>
|
||||||
|
<span>
|
||||||
|
: <a href="classes/App-Services-Logging-LoggingService.html"><abbr title="\App\Services\Logging\LoggingService">LoggingService</abbr></a> </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<h4 id="toc-methods">
|
||||||
|
Methods
|
||||||
|
<a href="classes/App-Controllers-UserManagementController.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
||||||
|
<a class="" href="classes/App-Controllers-UserManagementController.html#method___construct">__construct()</a>
|
||||||
|
<span>
|
||||||
|
: mixed </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
||||||
|
<a class="" href="classes/App-Controllers-UserManagementController.html#method_show">show()</a>
|
||||||
|
<span>
|
||||||
|
: array<string, mixed> </span>
|
||||||
|
</dt>
|
||||||
|
<dd>Zeigt Benutzer- und Gruppenliste an.</dd>
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-properties">
|
||||||
|
<h3 class="phpdocumentor-elements__header" id="properties">
|
||||||
|
Properties
|
||||||
|
<a href="classes/App-Controllers-UserManagementController.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
<article
|
||||||
|
class="
|
||||||
|
phpdocumentor-element
|
||||||
|
-property
|
||||||
|
-private
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="property_config">
|
||||||
|
$config
|
||||||
|
<a href="classes/App-Controllers-UserManagementController.html#property_config" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
<span class="phpdocumentor-element__modifiers">
|
||||||
|
</span>
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Controllers/UserManagementController.php"><a href="files/app-controllers-usermanagementcontroller.html"><abbr title="app/Controllers/UserManagementController.php">UserManagementController.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">29</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">private</span>
|
||||||
|
<span class="phpdocumentor-signature__type">array<string, mixed></span>
|
||||||
|
<span class="phpdocumentor-signature__name">$config</span>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>Vollständige Anwendungskonfiguration (aus config.php)</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="
|
||||||
|
phpdocumentor-element
|
||||||
|
-property
|
||||||
|
-private
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="property_directoryService">
|
||||||
|
$directoryService
|
||||||
|
<a href="classes/App-Controllers-UserManagementController.html#property_directoryService" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
<span class="phpdocumentor-element__modifiers">
|
||||||
|
</span>
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Controllers/UserManagementController.php"><a href="files/app-controllers-usermanagementcontroller.html"><abbr title="app/Controllers/UserManagementController.php">UserManagementController.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">32</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">private</span>
|
||||||
|
<span class="phpdocumentor-signature__type"><a href="classes/App-Services-Ldap-LdapDirectoryService.html"><abbr title="\App\Services\Ldap\LdapDirectoryService">LdapDirectoryService</abbr></a></span>
|
||||||
|
<span class="phpdocumentor-signature__name">$directoryService</span>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>Service für das Lesen von Benutzern und Gruppen aus dem LDAP/AD</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="
|
||||||
|
phpdocumentor-element
|
||||||
|
-property
|
||||||
|
-private
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="property_logger">
|
||||||
|
$logger
|
||||||
|
<a href="classes/App-Controllers-UserManagementController.html#property_logger" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
<span class="phpdocumentor-element__modifiers">
|
||||||
|
</span>
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Controllers/UserManagementController.php"><a href="files/app-controllers-usermanagementcontroller.html"><abbr title="app/Controllers/UserManagementController.php">UserManagementController.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">35</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">private</span>
|
||||||
|
<span class="phpdocumentor-signature__type"><a href="classes/App-Services-Logging-LoggingService.html"><abbr title="\App\Services\Logging\LoggingService">LoggingService</abbr></a></span>
|
||||||
|
<span class="phpdocumentor-signature__name">$logger</span>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>Logger für technische Fehler</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-methods">
|
||||||
|
<h3 class="phpdocumentor-elements__header" id="methods">
|
||||||
|
Methods
|
||||||
|
<a href="classes/App-Controllers-UserManagementController.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-public
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method___construct">
|
||||||
|
__construct()
|
||||||
|
<a href="classes/App-Controllers-UserManagementController.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Controllers/UserManagementController.php"><a href="files/app-controllers-usermanagementcontroller.html"><abbr title="app/Controllers/UserManagementController.php">UserManagementController.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">40</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">public</span>
|
||||||
|
<span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array<string, mixed> </span><span class="phpdocumentor-signature__argument__name">$config</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
|
||||||
|
<dl class="phpdocumentor-argument-list">
|
||||||
|
<dt class="phpdocumentor-argument-list__entry">
|
||||||
|
<span class="phpdocumentor-signature__argument__name">$config</span>
|
||||||
|
: <span class="phpdocumentor-signature__argument__return-type">array<string, mixed></span>
|
||||||
|
</dt>
|
||||||
|
<dd class="phpdocumentor-argument-list__definition">
|
||||||
|
<section class="phpdocumentor-description"><p>Vollständige Konfiguration aus config.php</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-public
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method_show">
|
||||||
|
show()
|
||||||
|
<a href="classes/App-Controllers-UserManagementController.html#method_show" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Controllers/UserManagementController.php"><a href="files/app-controllers-usermanagementcontroller.html"><abbr title="app/Controllers/UserManagementController.php">UserManagementController.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">61</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Zeigt Benutzer- und Gruppenliste an.</p>
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">public</span>
|
||||||
|
<span class="phpdocumentor-signature__name">show</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array<string, mixed></span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>Wird typischerweise über die Route "users" (index.php?route=users) aufgerufen.</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
|
||||||
|
<span class="phpdocumentor-signature__response_type">array<string, mixed></span>
|
||||||
|
—
|
||||||
|
<section class="phpdocumentor-description"><p>View-Result für das zentrale Layout</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/app/Controllers/UserManagementController.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li><a href="classes/App-Controllers-UserManagementController.html#toc-properties">Properties</a></li>
|
||||||
|
<li><a href="classes/App-Controllers-UserManagementController.html#toc-methods">Methods</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Properties</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class=""><a href="classes/App-Controllers-UserManagementController.html#property_config">$config</a></li>
|
||||||
|
<li class=""><a href="classes/App-Controllers-UserManagementController.html#property_directoryService">$directoryService</a></li>
|
||||||
|
<li class=""><a href="classes/App-Controllers-UserManagementController.html#property_logger">$logger</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Methods</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class=""><a href="classes/App-Controllers-UserManagementController.html#method___construct">__construct()</a></li>
|
||||||
|
<li class=""><a href="classes/App-Controllers-UserManagementController.html#method_show">show()</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="classes/App-Controllers-UserManagementController.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
584
docs/api/classes/App-Services-Ldap-LdapAuthService.html
Normal file
584
docs/api/classes/App-Services-Ldap-LdapAuthService.html
Normal file
@ -0,0 +1,584 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app.html">App</a></li>
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app-services.html">Services</a></li>
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app-services-ldap.html">Ldap</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -class">
|
||||||
|
<h2 class="phpdocumentor-content__title">
|
||||||
|
LdapAuthService
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-element__package">
|
||||||
|
in package
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Ldap/LdapAuthService.php"><a href="files/app-services-ldap-ldapauthservice.html"><abbr title="app/Services/Ldap/LdapAuthService.php">LdapAuthService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">17</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Service zur Authentifizierung von Benutzern gegen ein Active Directory per LDAP/LDAPS.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>Bekommt Benutzername und Passwort und liefert:</p>
|
||||||
|
<ul>
|
||||||
|
<li>true -> Anmeldedaten sind gültig</li>
|
||||||
|
<li>false -> Anmeldedaten sind fachlich ungültig (z. B. falsches Passwort)
|
||||||
|
Technische Fehler (z. B. falsche Konfiguration, keine Verbindung) werden als Exception geworfen.</li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="classes/App-Services-Ldap-LdapAuthService.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-properties">
|
||||||
|
Properties
|
||||||
|
<a href="classes/App-Services-Ldap-LdapAuthService.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
||||||
|
<a class="" href="classes/App-Services-Ldap-LdapAuthService.html#property_config">$config</a>
|
||||||
|
<span>
|
||||||
|
: array<string, mixed> </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
||||||
|
<a class="" href="classes/App-Services-Ldap-LdapAuthService.html#property_connectionHelper">$connectionHelper</a>
|
||||||
|
<span>
|
||||||
|
: <a href="classes/App-Services-Ldap-LdapConnectionHelper.html"><abbr title="\App\Services\Ldap\LdapConnectionHelper">LdapConnectionHelper</abbr></a> </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<h4 id="toc-methods">
|
||||||
|
Methods
|
||||||
|
<a href="classes/App-Services-Ldap-LdapAuthService.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
||||||
|
<a class="" href="classes/App-Services-Ldap-LdapAuthService.html#method___construct">__construct()</a>
|
||||||
|
<span>
|
||||||
|
: mixed </span>
|
||||||
|
</dt>
|
||||||
|
<dd>Erwartet den Teilbereich "ldap" aus der allgemeinen Konfiguration (config.php).</dd>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
||||||
|
<a class="" href="classes/App-Services-Ldap-LdapAuthService.html#method_authenticate">authenticate()</a>
|
||||||
|
<span>
|
||||||
|
: bool </span>
|
||||||
|
</dt>
|
||||||
|
<dd>Führt die eigentliche LDAP/AD-Authentifizierung durch.</dd>
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-properties">
|
||||||
|
<h3 class="phpdocumentor-elements__header" id="properties">
|
||||||
|
Properties
|
||||||
|
<a href="classes/App-Services-Ldap-LdapAuthService.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
<article
|
||||||
|
class="
|
||||||
|
phpdocumentor-element
|
||||||
|
-property
|
||||||
|
-private
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="property_config">
|
||||||
|
$config
|
||||||
|
<a href="classes/App-Services-Ldap-LdapAuthService.html#property_config" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
<span class="phpdocumentor-element__modifiers">
|
||||||
|
</span>
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Ldap/LdapAuthService.php"><a href="files/app-services-ldap-ldapauthservice.html"><abbr title="app/Services/Ldap/LdapAuthService.php">LdapAuthService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">20</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">private</span>
|
||||||
|
<span class="phpdocumentor-signature__type">array<string, mixed></span>
|
||||||
|
<span class="phpdocumentor-signature__name">$config</span>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>LDAP-spezifische Konfiguration (Server, Port, Domain-Suffix, Timeout, etc.)</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="
|
||||||
|
phpdocumentor-element
|
||||||
|
-property
|
||||||
|
-private
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="property_connectionHelper">
|
||||||
|
$connectionHelper
|
||||||
|
<a href="classes/App-Services-Ldap-LdapAuthService.html#property_connectionHelper" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
<span class="phpdocumentor-element__modifiers">
|
||||||
|
</span>
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Ldap/LdapAuthService.php"><a href="files/app-services-ldap-ldapauthservice.html"><abbr title="app/Services/Ldap/LdapAuthService.php">LdapAuthService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">22</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">private</span>
|
||||||
|
<span class="phpdocumentor-signature__type"><a href="classes/App-Services-Ldap-LdapConnectionHelper.html"><abbr title="\App\Services\Ldap\LdapConnectionHelper">LdapConnectionHelper</abbr></a></span>
|
||||||
|
<span class="phpdocumentor-signature__name">$connectionHelper</span>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-methods">
|
||||||
|
<h3 class="phpdocumentor-elements__header" id="methods">
|
||||||
|
Methods
|
||||||
|
<a href="classes/App-Services-Ldap-LdapAuthService.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-public
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method___construct">
|
||||||
|
__construct()
|
||||||
|
<a href="classes/App-Services-Ldap-LdapAuthService.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Ldap/LdapAuthService.php"><a href="files/app-services-ldap-ldapauthservice.html"><abbr title="app/Services/Ldap/LdapAuthService.php">LdapAuthService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">29</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Erwartet den Teilbereich "ldap" aus der allgemeinen Konfiguration (config.php).</p>
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">public</span>
|
||||||
|
<span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array<string, mixed> </span><span class="phpdocumentor-signature__argument__name">$ldapConfig</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
|
||||||
|
<dl class="phpdocumentor-argument-list">
|
||||||
|
<dt class="phpdocumentor-argument-list__entry">
|
||||||
|
<span class="phpdocumentor-signature__argument__name">$ldapConfig</span>
|
||||||
|
: <span class="phpdocumentor-signature__argument__return-type">array<string, mixed></span>
|
||||||
|
</dt>
|
||||||
|
<dd class="phpdocumentor-argument-list__definition">
|
||||||
|
<section class="phpdocumentor-description"><p>Konfiguration für die LDAP-Verbindung</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-public
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method_authenticate">
|
||||||
|
authenticate()
|
||||||
|
<a href="classes/App-Services-Ldap-LdapAuthService.html#method_authenticate" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Ldap/LdapAuthService.php"><a href="files/app-services-ldap-ldapauthservice.html"><abbr title="app/Services/Ldap/LdapAuthService.php">LdapAuthService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">46</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Führt die eigentliche LDAP/AD-Authentifizierung durch.</p>
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">public</span>
|
||||||
|
<span class="phpdocumentor-signature__name">authenticate</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string </span><span class="phpdocumentor-signature__argument__name">$username</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string </span><span class="phpdocumentor-signature__argument__name">$password</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
|
||||||
|
<dl class="phpdocumentor-argument-list">
|
||||||
|
<dt class="phpdocumentor-argument-list__entry">
|
||||||
|
<span class="phpdocumentor-signature__argument__name">$username</span>
|
||||||
|
: <span class="phpdocumentor-signature__argument__return-type">string</span>
|
||||||
|
</dt>
|
||||||
|
<dd class="phpdocumentor-argument-list__definition">
|
||||||
|
<section class="phpdocumentor-description"><p>Benutzername (ohne Domain-Suffix, z. B. "administrator")</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
<dt class="phpdocumentor-argument-list__entry">
|
||||||
|
<span class="phpdocumentor-signature__argument__name">$password</span>
|
||||||
|
: <span class="phpdocumentor-signature__argument__return-type">string</span>
|
||||||
|
</dt>
|
||||||
|
<dd class="phpdocumentor-argument-list__definition">
|
||||||
|
<section class="phpdocumentor-description"><p>Passwort im Klartext (wird direkt an ldap_bind übergeben)</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
<h5 class="phpdocumentor-tag-list__heading" id="tags">
|
||||||
|
Tags
|
||||||
|
<a href="classes/App-Services-Ldap-LdapAuthService.html#method_authenticate#tags" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h5>
|
||||||
|
<dl class="phpdocumentor-tag-list">
|
||||||
|
<dt class="phpdocumentor-tag-list__entry">
|
||||||
|
<span class="phpdocumentor-tag__name">throws</span>
|
||||||
|
</dt>
|
||||||
|
<dd class="phpdocumentor-tag-list__definition">
|
||||||
|
<span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>bei technischen Problemen (z. B. fehlende Konfiguration, Verbindungsfehler)</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
|
||||||
|
<span class="phpdocumentor-signature__response_type">bool</span>
|
||||||
|
—
|
||||||
|
<section class="phpdocumentor-description"><p>true bei erfolgreicher Anmeldung, false bei fachlich ungültigen Anmeldedaten</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/app/Services/Ldap/LdapAuthService.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li><a href="classes/App-Services-Ldap-LdapAuthService.html#toc-properties">Properties</a></li>
|
||||||
|
<li><a href="classes/App-Services-Ldap-LdapAuthService.html#toc-methods">Methods</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Properties</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class=""><a href="classes/App-Services-Ldap-LdapAuthService.html#property_config">$config</a></li>
|
||||||
|
<li class=""><a href="classes/App-Services-Ldap-LdapAuthService.html#property_connectionHelper">$connectionHelper</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Methods</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class=""><a href="classes/App-Services-Ldap-LdapAuthService.html#method___construct">__construct()</a></li>
|
||||||
|
<li class=""><a href="classes/App-Services-Ldap-LdapAuthService.html#method_authenticate">authenticate()</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="classes/App-Services-Ldap-LdapAuthService.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
524
docs/api/classes/App-Services-Ldap-LdapConnectionHelper.html
Normal file
524
docs/api/classes/App-Services-Ldap-LdapConnectionHelper.html
Normal file
@ -0,0 +1,524 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app.html">App</a></li>
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app-services.html">Services</a></li>
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app-services-ldap.html">Ldap</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -class">
|
||||||
|
<h2 class="phpdocumentor-content__title">
|
||||||
|
LdapConnectionHelper
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-element__package">
|
||||||
|
in package
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Ldap/LdapConnectionHelper.php"><a href="files/app-services-ldap-ldapconnectionhelper.html"><abbr title="app/Services/Ldap/LdapConnectionHelper.php">LdapConnectionHelper.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">23</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Hilfsklasse zum Aufbau einer LDAP/LDAPS-Verbindung.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>Aufgaben:</p>
|
||||||
|
<ul>
|
||||||
|
<li>liest Server, Port und Timeout aus der LDAP-Konfiguration</li>
|
||||||
|
<li>erstellt eine LDAP-Verbindung</li>
|
||||||
|
<li>setzt die notwendigen Optionen (Protokollversion, Netzwerk-Timeout)</li>
|
||||||
|
</ul>
|
||||||
|
<p>Wichtig:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Diese Klasse führt KEIN ldap_bind durch.</li>
|
||||||
|
<li>Das Bind (mit Benutzer- oder Service-Konto) erfolgt in den Fach-Services
|
||||||
|
wie LdapAuthService oder LdapDirectoryService.</li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="classes/App-Services-Ldap-LdapConnectionHelper.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-properties">
|
||||||
|
Properties
|
||||||
|
<a href="classes/App-Services-Ldap-LdapConnectionHelper.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
||||||
|
<a class="" href="classes/App-Services-Ldap-LdapConnectionHelper.html#property_config">$config</a>
|
||||||
|
<span>
|
||||||
|
: array<string, mixed> </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<h4 id="toc-methods">
|
||||||
|
Methods
|
||||||
|
<a href="classes/App-Services-Ldap-LdapConnectionHelper.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
||||||
|
<a class="" href="classes/App-Services-Ldap-LdapConnectionHelper.html#method___construct">__construct()</a>
|
||||||
|
<span>
|
||||||
|
: mixed </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
||||||
|
<a class="" href="classes/App-Services-Ldap-LdapConnectionHelper.html#method_createConnection">createConnection()</a>
|
||||||
|
<span>
|
||||||
|
: resource </span>
|
||||||
|
</dt>
|
||||||
|
<dd>Erstellt eine LDAP-Verbindung mit gesetzten Optionen (Protokollversion, Timeout),
|
||||||
|
aber ohne Bind. Den Bind führen die aufrufenden Services durch.</dd>
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-properties">
|
||||||
|
<h3 class="phpdocumentor-elements__header" id="properties">
|
||||||
|
Properties
|
||||||
|
<a href="classes/App-Services-Ldap-LdapConnectionHelper.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
<article
|
||||||
|
class="
|
||||||
|
phpdocumentor-element
|
||||||
|
-property
|
||||||
|
-private
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="property_config">
|
||||||
|
$config
|
||||||
|
<a href="classes/App-Services-Ldap-LdapConnectionHelper.html#property_config" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
<span class="phpdocumentor-element__modifiers">
|
||||||
|
</span>
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Ldap/LdapConnectionHelper.php"><a href="files/app-services-ldap-ldapconnectionhelper.html"><abbr title="app/Services/Ldap/LdapConnectionHelper.php">LdapConnectionHelper.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">26</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">private</span>
|
||||||
|
<span class="phpdocumentor-signature__type">array<string, mixed></span>
|
||||||
|
<span class="phpdocumentor-signature__name">$config</span>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>LDAP-spezifische Konfiguration (server, port, timeout, etc.)</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-methods">
|
||||||
|
<h3 class="phpdocumentor-elements__header" id="methods">
|
||||||
|
Methods
|
||||||
|
<a href="classes/App-Services-Ldap-LdapConnectionHelper.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-public
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method___construct">
|
||||||
|
__construct()
|
||||||
|
<a href="classes/App-Services-Ldap-LdapConnectionHelper.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Ldap/LdapConnectionHelper.php"><a href="files/app-services-ldap-ldapconnectionhelper.html"><abbr title="app/Services/Ldap/LdapConnectionHelper.php">LdapConnectionHelper.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">31</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">public</span>
|
||||||
|
<span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array<string, mixed> </span><span class="phpdocumentor-signature__argument__name">$ldapConfig</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
|
||||||
|
<dl class="phpdocumentor-argument-list">
|
||||||
|
<dt class="phpdocumentor-argument-list__entry">
|
||||||
|
<span class="phpdocumentor-signature__argument__name">$ldapConfig</span>
|
||||||
|
: <span class="phpdocumentor-signature__argument__return-type">array<string, mixed></span>
|
||||||
|
</dt>
|
||||||
|
<dd class="phpdocumentor-argument-list__definition">
|
||||||
|
<section class="phpdocumentor-description"><p>Teilbereich "ldap" aus der config.php</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-public
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method_createConnection">
|
||||||
|
createConnection()
|
||||||
|
<a href="classes/App-Services-Ldap-LdapConnectionHelper.html#method_createConnection" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Ldap/LdapConnectionHelper.php"><a href="files/app-services-ldap-ldapconnectionhelper.html"><abbr title="app/Services/Ldap/LdapConnectionHelper.php">LdapConnectionHelper.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">46</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Erstellt eine LDAP-Verbindung mit gesetzten Optionen (Protokollversion, Timeout),
|
||||||
|
aber ohne Bind. Den Bind führen die aufrufenden Services durch.</p>
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">public</span>
|
||||||
|
<span class="phpdocumentor-signature__name">createConnection</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">resource</span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h5 class="phpdocumentor-tag-list__heading" id="tags">
|
||||||
|
Tags
|
||||||
|
<a href="classes/App-Services-Ldap-LdapConnectionHelper.html#method_createConnection#tags" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h5>
|
||||||
|
<dl class="phpdocumentor-tag-list">
|
||||||
|
<dt class="phpdocumentor-tag-list__entry">
|
||||||
|
<span class="phpdocumentor-tag__name">throws</span>
|
||||||
|
</dt>
|
||||||
|
<dd class="phpdocumentor-tag-list__definition">
|
||||||
|
<span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>wenn der Server nicht konfiguriert ist oder die Verbindung scheitert</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
|
||||||
|
<span class="phpdocumentor-signature__response_type">resource</span>
|
||||||
|
—
|
||||||
|
<section class="phpdocumentor-description"><p>LDAP-Verbindungs-Handle</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/app/Services/Ldap/LdapConnectionHelper.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li><a href="classes/App-Services-Ldap-LdapConnectionHelper.html#toc-properties">Properties</a></li>
|
||||||
|
<li><a href="classes/App-Services-Ldap-LdapConnectionHelper.html#toc-methods">Methods</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Properties</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class=""><a href="classes/App-Services-Ldap-LdapConnectionHelper.html#property_config">$config</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Methods</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class=""><a href="classes/App-Services-Ldap-LdapConnectionHelper.html#method___construct">__construct()</a></li>
|
||||||
|
<li class=""><a href="classes/App-Services-Ldap-LdapConnectionHelper.html#method_createConnection">createConnection()</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="classes/App-Services-Ldap-LdapConnectionHelper.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
711
docs/api/classes/App-Services-Ldap-LdapDirectoryService.html
Normal file
711
docs/api/classes/App-Services-Ldap-LdapDirectoryService.html
Normal file
@ -0,0 +1,711 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app.html">App</a></li>
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app-services.html">Services</a></li>
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app-services-ldap.html">Ldap</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -class">
|
||||||
|
<h2 class="phpdocumentor-content__title">
|
||||||
|
LdapDirectoryService
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-element__package">
|
||||||
|
in package
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Ldap/LdapDirectoryService.php"><a href="files/app-services-ldap-ldapdirectoryservice.html"><abbr title="app/Services/Ldap/LdapDirectoryService.php">LdapDirectoryService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">21</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Service zum Lesen von Objekten aus dem Active Directory.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>Aktueller Umfang:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Liste von Benutzern (sAMAccountName, displayName, mail)</li>
|
||||||
|
<li>Liste von Gruppen (sAMAccountName, cn, description)</li>
|
||||||
|
</ul>
|
||||||
|
<p>Technische Details:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Verwendet ein technisches Konto (bind_dn + bind_password) für Lesezugriffe</li>
|
||||||
|
<li>Nutzt LdapConnectionHelper zum Aufbau der Verbindung</li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="classes/App-Services-Ldap-LdapDirectoryService.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-properties">
|
||||||
|
Properties
|
||||||
|
<a href="classes/App-Services-Ldap-LdapDirectoryService.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
||||||
|
<a class="" href="classes/App-Services-Ldap-LdapDirectoryService.html#property_config">$config</a>
|
||||||
|
<span>
|
||||||
|
: array<string, mixed> </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
||||||
|
<a class="" href="classes/App-Services-Ldap-LdapDirectoryService.html#property_connectionHelper">$connectionHelper</a>
|
||||||
|
<span>
|
||||||
|
: <a href="classes/App-Services-Ldap-LdapConnectionHelper.html"><abbr title="\App\Services\Ldap\LdapConnectionHelper">LdapConnectionHelper</abbr></a> </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<h4 id="toc-methods">
|
||||||
|
Methods
|
||||||
|
<a href="classes/App-Services-Ldap-LdapDirectoryService.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
||||||
|
<a class="" href="classes/App-Services-Ldap-LdapDirectoryService.html#method___construct">__construct()</a>
|
||||||
|
<span>
|
||||||
|
: mixed </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
||||||
|
<a class="" href="classes/App-Services-Ldap-LdapDirectoryService.html#method_getGroups">getGroups()</a>
|
||||||
|
<span>
|
||||||
|
: array<int, array<string, string>> </span>
|
||||||
|
</dt>
|
||||||
|
<dd>Liefert eine Liste von Gruppen aus dem AD.</dd>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
||||||
|
<a class="" href="classes/App-Services-Ldap-LdapDirectoryService.html#method_getUsers">getUsers()</a>
|
||||||
|
<span>
|
||||||
|
: array<int, array<string, string>> </span>
|
||||||
|
</dt>
|
||||||
|
<dd>Liefert eine Liste von Benutzern aus dem AD.</dd>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -private">
|
||||||
|
<a class="" href="classes/App-Services-Ldap-LdapDirectoryService.html#method_connect">connect()</a>
|
||||||
|
<span>
|
||||||
|
: resource </span>
|
||||||
|
</dt>
|
||||||
|
<dd>Stellt eine LDAP-Verbindung her und bindet sich mit dem technischen Konto.</dd>
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-properties">
|
||||||
|
<h3 class="phpdocumentor-elements__header" id="properties">
|
||||||
|
Properties
|
||||||
|
<a href="classes/App-Services-Ldap-LdapDirectoryService.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
<article
|
||||||
|
class="
|
||||||
|
phpdocumentor-element
|
||||||
|
-property
|
||||||
|
-private
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="property_config">
|
||||||
|
$config
|
||||||
|
<a href="classes/App-Services-Ldap-LdapDirectoryService.html#property_config" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
<span class="phpdocumentor-element__modifiers">
|
||||||
|
</span>
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Ldap/LdapDirectoryService.php"><a href="files/app-services-ldap-ldapdirectoryservice.html"><abbr title="app/Services/Ldap/LdapDirectoryService.php">LdapDirectoryService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">24</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">private</span>
|
||||||
|
<span class="phpdocumentor-signature__type">array<string, mixed></span>
|
||||||
|
<span class="phpdocumentor-signature__name">$config</span>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>LDAP-Konfiguration (inkl. base_dn, bind_dn, bind_password)</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="
|
||||||
|
phpdocumentor-element
|
||||||
|
-property
|
||||||
|
-private
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="property_connectionHelper">
|
||||||
|
$connectionHelper
|
||||||
|
<a href="classes/App-Services-Ldap-LdapDirectoryService.html#property_connectionHelper" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
<span class="phpdocumentor-element__modifiers">
|
||||||
|
</span>
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Ldap/LdapDirectoryService.php"><a href="files/app-services-ldap-ldapdirectoryservice.html"><abbr title="app/Services/Ldap/LdapDirectoryService.php">LdapDirectoryService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">27</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">private</span>
|
||||||
|
<span class="phpdocumentor-signature__type"><a href="classes/App-Services-Ldap-LdapConnectionHelper.html"><abbr title="\App\Services\Ldap\LdapConnectionHelper">LdapConnectionHelper</abbr></a></span>
|
||||||
|
<span class="phpdocumentor-signature__name">$connectionHelper</span>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>Zentrale Hilfsklasse für den Aufbau von LDAP-Verbindungen</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-methods">
|
||||||
|
<h3 class="phpdocumentor-elements__header" id="methods">
|
||||||
|
Methods
|
||||||
|
<a href="classes/App-Services-Ldap-LdapDirectoryService.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-public
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method___construct">
|
||||||
|
__construct()
|
||||||
|
<a href="classes/App-Services-Ldap-LdapDirectoryService.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Ldap/LdapDirectoryService.php"><a href="files/app-services-ldap-ldapdirectoryservice.html"><abbr title="app/Services/Ldap/LdapDirectoryService.php">LdapDirectoryService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">32</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">public</span>
|
||||||
|
<span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array<string, mixed> </span><span class="phpdocumentor-signature__argument__name">$ldapConfig</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
|
||||||
|
<dl class="phpdocumentor-argument-list">
|
||||||
|
<dt class="phpdocumentor-argument-list__entry">
|
||||||
|
<span class="phpdocumentor-signature__argument__name">$ldapConfig</span>
|
||||||
|
: <span class="phpdocumentor-signature__argument__return-type">array<string, mixed></span>
|
||||||
|
</dt>
|
||||||
|
<dd class="phpdocumentor-argument-list__definition">
|
||||||
|
<section class="phpdocumentor-description"><p>Teilbereich "ldap" aus der config.php</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-public
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method_getGroups">
|
||||||
|
getGroups()
|
||||||
|
<a href="classes/App-Services-Ldap-LdapDirectoryService.html#method_getGroups" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Ldap/LdapDirectoryService.php"><a href="files/app-services-ldap-ldapdirectoryservice.html"><abbr title="app/Services/Ldap/LdapDirectoryService.php">LdapDirectoryService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">153</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Liefert eine Liste von Gruppen aus dem AD.</p>
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">public</span>
|
||||||
|
<span class="phpdocumentor-signature__name">getGroups</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array<int, array<string, string>></span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h5 class="phpdocumentor-tag-list__heading" id="tags">
|
||||||
|
Tags
|
||||||
|
<a href="classes/App-Services-Ldap-LdapDirectoryService.html#method_getGroups#tags" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h5>
|
||||||
|
<dl class="phpdocumentor-tag-list">
|
||||||
|
<dt class="phpdocumentor-tag-list__entry">
|
||||||
|
<span class="phpdocumentor-tag__name">throws</span>
|
||||||
|
</dt>
|
||||||
|
<dd class="phpdocumentor-tag-list__definition">
|
||||||
|
<span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>bei Konfigurations- oder Verbindungsproblemen</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
|
||||||
|
<span class="phpdocumentor-signature__response_type">array<int, array<string, string>></span>
|
||||||
|
—
|
||||||
|
<section class="phpdocumentor-description"><p>Liste von Gruppen-Datensätzen</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-public
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method_getUsers">
|
||||||
|
getUsers()
|
||||||
|
<a href="classes/App-Services-Ldap-LdapDirectoryService.html#method_getUsers" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Ldap/LdapDirectoryService.php"><a href="files/app-services-ldap-ldapdirectoryservice.html"><abbr title="app/Services/Ldap/LdapDirectoryService.php">LdapDirectoryService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">90</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Liefert eine Liste von Benutzern aus dem AD.</p>
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">public</span>
|
||||||
|
<span class="phpdocumentor-signature__name">getUsers</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array<int, array<string, string>></span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h5 class="phpdocumentor-tag-list__heading" id="tags">
|
||||||
|
Tags
|
||||||
|
<a href="classes/App-Services-Ldap-LdapDirectoryService.html#method_getUsers#tags" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h5>
|
||||||
|
<dl class="phpdocumentor-tag-list">
|
||||||
|
<dt class="phpdocumentor-tag-list__entry">
|
||||||
|
<span class="phpdocumentor-tag__name">throws</span>
|
||||||
|
</dt>
|
||||||
|
<dd class="phpdocumentor-tag-list__definition">
|
||||||
|
<span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>bei Konfigurations- oder Verbindungsproblemen</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
|
||||||
|
<span class="phpdocumentor-signature__response_type">array<int, array<string, string>></span>
|
||||||
|
—
|
||||||
|
<section class="phpdocumentor-description"><p>Liste von Benutzer-Datensätzen
|
||||||
|
[
|
||||||
|
[
|
||||||
|
'samaccountname' => 'user1',
|
||||||
|
'displayname' => 'User Eins',
|
||||||
|
'mail' => 'user1@example.local',
|
||||||
|
],
|
||||||
|
...
|
||||||
|
]</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-private
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method_connect">
|
||||||
|
connect()
|
||||||
|
<a href="classes/App-Services-Ldap-LdapDirectoryService.html#method_connect" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Ldap/LdapDirectoryService.php"><a href="files/app-services-ldap-ldapdirectoryservice.html"><abbr title="app/Services/Ldap/LdapDirectoryService.php">LdapDirectoryService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">49</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Stellt eine LDAP-Verbindung her und bindet sich mit dem technischen Konto.</p>
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">private</span>
|
||||||
|
<span class="phpdocumentor-signature__name">connect</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">resource</span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h5 class="phpdocumentor-tag-list__heading" id="tags">
|
||||||
|
Tags
|
||||||
|
<a href="classes/App-Services-Ldap-LdapDirectoryService.html#method_connect#tags" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h5>
|
||||||
|
<dl class="phpdocumentor-tag-list">
|
||||||
|
<dt class="phpdocumentor-tag-list__entry">
|
||||||
|
<span class="phpdocumentor-tag__name">throws</span>
|
||||||
|
</dt>
|
||||||
|
<dd class="phpdocumentor-tag-list__definition">
|
||||||
|
<span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>wenn Bind-Daten fehlen oder der Bind fehlschlägt</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
|
||||||
|
<span class="phpdocumentor-signature__response_type">resource</span>
|
||||||
|
—
|
||||||
|
<section class="phpdocumentor-description"><p>LDAP-Verbindungs-Handle</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/app/Services/Ldap/LdapDirectoryService.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li><a href="classes/App-Services-Ldap-LdapDirectoryService.html#toc-properties">Properties</a></li>
|
||||||
|
<li><a href="classes/App-Services-Ldap-LdapDirectoryService.html#toc-methods">Methods</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Properties</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class=""><a href="classes/App-Services-Ldap-LdapDirectoryService.html#property_config">$config</a></li>
|
||||||
|
<li class=""><a href="classes/App-Services-Ldap-LdapDirectoryService.html#property_connectionHelper">$connectionHelper</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Methods</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class=""><a href="classes/App-Services-Ldap-LdapDirectoryService.html#method___construct">__construct()</a></li>
|
||||||
|
<li class=""><a href="classes/App-Services-Ldap-LdapDirectoryService.html#method_getGroups">getGroups()</a></li>
|
||||||
|
<li class=""><a href="classes/App-Services-Ldap-LdapDirectoryService.html#method_getUsers">getUsers()</a></li>
|
||||||
|
<li class=""><a href="classes/App-Services-Ldap-LdapDirectoryService.html#method_connect">connect()</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="classes/App-Services-Ldap-LdapDirectoryService.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
790
docs/api/classes/App-Services-Logging-LoggingService.html
Normal file
790
docs/api/classes/App-Services-Logging-LoggingService.html
Normal file
@ -0,0 +1,790 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app.html">App</a></li>
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app-services.html">Services</a></li>
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app-services-logging.html">Logging</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -class">
|
||||||
|
<h2 class="phpdocumentor-content__title">
|
||||||
|
LoggingService
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-element__package">
|
||||||
|
in package
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Logging/LoggingService.php"><a href="files/app-services-logging-loggingservice.html"><abbr title="app/Services/Logging/LoggingService.php">LoggingService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">17</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Einfacher File-Logger für die AdminTool-Anwendung.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>Ziele:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Technische Details werden in eine Log-Datei unter public/logs/ geschrieben.</li>
|
||||||
|
<li>In der Weboberfläche erscheinen nur verständliche, fachliche Fehlermeldungen.</li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="classes/App-Services-Logging-LoggingService.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-constants">
|
||||||
|
Constants
|
||||||
|
<a href="classes/App-Services-Logging-LoggingService.html#toc-constants" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -constant -private">
|
||||||
|
<a class="" href="classes/App-Services-Logging-LoggingService.html#constant_LEVEL_MAP">LEVEL_MAP</a>
|
||||||
|
<span>
|
||||||
|
= ['debug' => 100, 'info' => 200, 'warning' => 300, 'error' => 400] </span>
|
||||||
|
</dt>
|
||||||
|
<dd>Zuordnung der Log-Level zu numerischen Werten zur Filterung.</dd>
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-properties">
|
||||||
|
Properties
|
||||||
|
<a href="classes/App-Services-Logging-LoggingService.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
||||||
|
<a class="" href="classes/App-Services-Logging-LoggingService.html#property_logDir">$logDir</a>
|
||||||
|
<span>
|
||||||
|
: string </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
||||||
|
<a class="" href="classes/App-Services-Logging-LoggingService.html#property_logFile">$logFile</a>
|
||||||
|
<span>
|
||||||
|
: string </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
||||||
|
<a class="" href="classes/App-Services-Logging-LoggingService.html#property_minLevel">$minLevel</a>
|
||||||
|
<span>
|
||||||
|
: int </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<h4 id="toc-methods">
|
||||||
|
Methods
|
||||||
|
<a href="classes/App-Services-Logging-LoggingService.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
||||||
|
<a class="" href="classes/App-Services-Logging-LoggingService.html#method___construct">__construct()</a>
|
||||||
|
<span>
|
||||||
|
: mixed </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
||||||
|
<a class="" href="classes/App-Services-Logging-LoggingService.html#method_log">log()</a>
|
||||||
|
<span>
|
||||||
|
: void </span>
|
||||||
|
</dt>
|
||||||
|
<dd>Allgemeiner Log-Eintrag.</dd>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
||||||
|
<a class="" href="classes/App-Services-Logging-LoggingService.html#method_logException">logException()</a>
|
||||||
|
<span>
|
||||||
|
: void </span>
|
||||||
|
</dt>
|
||||||
|
<dd>Komfortmethode, um Exceptions strukturiert zu loggen.</dd>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -private">
|
||||||
|
<a class="" href="classes/App-Services-Logging-LoggingService.html#method_ensureLogDirectoryExists">ensureLogDirectoryExists()</a>
|
||||||
|
<span>
|
||||||
|
: void </span>
|
||||||
|
</dt>
|
||||||
|
<dd>Stellt sicher, dass das Log-Verzeichnis existiert.</dd>
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-constants">
|
||||||
|
<h3 class="phpdocumentor-elements__header" id="constants">
|
||||||
|
Constants
|
||||||
|
<a href="classes/App-Services-Logging-LoggingService.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
<article class="phpdocumentor-element -constant -private ">
|
||||||
|
<h4 class="phpdocumentor-element__name" id="constant_LEVEL_MAP">
|
||||||
|
LEVEL_MAP
|
||||||
|
<a href="classes/App-Services-Logging-LoggingService.html#constant_LEVEL_MAP" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Logging/LoggingService.php"><a href="files/app-services-logging-loggingservice.html"><abbr title="app/Services/Logging/LoggingService.php">LoggingService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">33</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Zuordnung der Log-Level zu numerischen Werten zur Filterung.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-signature phpdocumentor-code ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">private</span>
|
||||||
|
<span class="phpdocumentor-signature__type">array<string, int></span>
|
||||||
|
<span class="phpdocumentor-signature__name">LEVEL_MAP</span>
|
||||||
|
= <span class="phpdocumentor-signature__default-value">['debug' => 100, 'info' => 200, 'warning' => 300, 'error' => 400]</span>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-properties">
|
||||||
|
<h3 class="phpdocumentor-elements__header" id="properties">
|
||||||
|
Properties
|
||||||
|
<a href="classes/App-Services-Logging-LoggingService.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
<article
|
||||||
|
class="
|
||||||
|
phpdocumentor-element
|
||||||
|
-property
|
||||||
|
-private
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="property_logDir">
|
||||||
|
$logDir
|
||||||
|
<a href="classes/App-Services-Logging-LoggingService.html#property_logDir" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
<span class="phpdocumentor-element__modifiers">
|
||||||
|
</span>
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Logging/LoggingService.php"><a href="files/app-services-logging-loggingservice.html"><abbr title="app/Services/Logging/LoggingService.php">LoggingService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">20</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">private</span>
|
||||||
|
<span class="phpdocumentor-signature__type">string</span>
|
||||||
|
<span class="phpdocumentor-signature__name">$logDir</span>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>Vollständiger Pfad zum Log-Verzeichnis</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="
|
||||||
|
phpdocumentor-element
|
||||||
|
-property
|
||||||
|
-private
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="property_logFile">
|
||||||
|
$logFile
|
||||||
|
<a href="classes/App-Services-Logging-LoggingService.html#property_logFile" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
<span class="phpdocumentor-element__modifiers">
|
||||||
|
</span>
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Logging/LoggingService.php"><a href="files/app-services-logging-loggingservice.html"><abbr title="app/Services/Logging/LoggingService.php">LoggingService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">23</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">private</span>
|
||||||
|
<span class="phpdocumentor-signature__type">string</span>
|
||||||
|
<span class="phpdocumentor-signature__name">$logFile</span>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>Dateiname der Log-Datei</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="
|
||||||
|
phpdocumentor-element
|
||||||
|
-property
|
||||||
|
-private
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="property_minLevel">
|
||||||
|
$minLevel
|
||||||
|
<a href="classes/App-Services-Logging-LoggingService.html#property_minLevel" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
<span class="phpdocumentor-element__modifiers">
|
||||||
|
</span>
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Logging/LoggingService.php"><a href="files/app-services-logging-loggingservice.html"><abbr title="app/Services/Logging/LoggingService.php">LoggingService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">26</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">private</span>
|
||||||
|
<span class="phpdocumentor-signature__type">int</span>
|
||||||
|
<span class="phpdocumentor-signature__name">$minLevel</span>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>Minimale Log-Stufe, ab der geschrieben wird.</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-methods">
|
||||||
|
<h3 class="phpdocumentor-elements__header" id="methods">
|
||||||
|
Methods
|
||||||
|
<a href="classes/App-Services-Logging-LoggingService.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-public
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method___construct">
|
||||||
|
__construct()
|
||||||
|
<a href="classes/App-Services-Logging-LoggingService.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Logging/LoggingService.php"><a href="files/app-services-logging-loggingservice.html"><abbr title="app/Services/Logging/LoggingService.php">LoggingService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">43</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">public</span>
|
||||||
|
<span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array<string, mixed> </span><span class="phpdocumentor-signature__argument__name">$config</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
|
||||||
|
<dl class="phpdocumentor-argument-list">
|
||||||
|
<dt class="phpdocumentor-argument-list__entry">
|
||||||
|
<span class="phpdocumentor-signature__argument__name">$config</span>
|
||||||
|
: <span class="phpdocumentor-signature__argument__return-type">array<string, mixed></span>
|
||||||
|
</dt>
|
||||||
|
<dd class="phpdocumentor-argument-list__definition">
|
||||||
|
<section class="phpdocumentor-description"><p>Teilkonfiguration "logging" aus config.php</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-public
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method_log">
|
||||||
|
log()
|
||||||
|
<a href="classes/App-Services-Logging-LoggingService.html#method_log" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Logging/LoggingService.php"><a href="files/app-services-logging-loggingservice.html"><abbr title="app/Services/Logging/LoggingService.php">LoggingService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">79</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Allgemeiner Log-Eintrag.</p>
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">public</span>
|
||||||
|
<span class="phpdocumentor-signature__name">log</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string </span><span class="phpdocumentor-signature__argument__name">$level</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string </span><span class="phpdocumentor-signature__argument__name">$message</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">array<string, mixed> </span><span class="phpdocumentor-signature__argument__name">$context</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">[]</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
|
||||||
|
<dl class="phpdocumentor-argument-list">
|
||||||
|
<dt class="phpdocumentor-argument-list__entry">
|
||||||
|
<span class="phpdocumentor-signature__argument__name">$level</span>
|
||||||
|
: <span class="phpdocumentor-signature__argument__return-type">string</span>
|
||||||
|
</dt>
|
||||||
|
<dd class="phpdocumentor-argument-list__definition">
|
||||||
|
<section class="phpdocumentor-description"><p>Log-Level (debug|info|warning|error)</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
<dt class="phpdocumentor-argument-list__entry">
|
||||||
|
<span class="phpdocumentor-signature__argument__name">$message</span>
|
||||||
|
: <span class="phpdocumentor-signature__argument__return-type">string</span>
|
||||||
|
</dt>
|
||||||
|
<dd class="phpdocumentor-argument-list__definition">
|
||||||
|
<section class="phpdocumentor-description"><p>Nachrichtentext</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
<dt class="phpdocumentor-argument-list__entry">
|
||||||
|
<span class="phpdocumentor-signature__argument__name">$context</span>
|
||||||
|
: <span class="phpdocumentor-signature__argument__return-type">array<string, mixed></span>
|
||||||
|
= <span class="phpdocumentor-signature__argument__default-value">[]</span> </dt>
|
||||||
|
<dd class="phpdocumentor-argument-list__definition">
|
||||||
|
<section class="phpdocumentor-description"><p>Zusätzliche Kontextinformationen</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-public
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method_logException">
|
||||||
|
logException()
|
||||||
|
<a href="classes/App-Services-Logging-LoggingService.html#method_logException" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Logging/LoggingService.php"><a href="files/app-services-logging-loggingservice.html"><abbr title="app/Services/Logging/LoggingService.php">LoggingService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">119</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Komfortmethode, um Exceptions strukturiert zu loggen.</p>
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">public</span>
|
||||||
|
<span class="phpdocumentor-signature__name">logException</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string </span><span class="phpdocumentor-signature__argument__name">$message</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><abbr title="\Throwable">Throwable</abbr> </span><span class="phpdocumentor-signature__argument__name">$exception</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">array<string, mixed> </span><span class="phpdocumentor-signature__argument__name">$context</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">[]</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
|
||||||
|
<dl class="phpdocumentor-argument-list">
|
||||||
|
<dt class="phpdocumentor-argument-list__entry">
|
||||||
|
<span class="phpdocumentor-signature__argument__name">$message</span>
|
||||||
|
: <span class="phpdocumentor-signature__argument__return-type">string</span>
|
||||||
|
</dt>
|
||||||
|
<dd class="phpdocumentor-argument-list__definition">
|
||||||
|
<section class="phpdocumentor-description"><p>Kurzer Kontexttext zur Exception</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
<dt class="phpdocumentor-argument-list__entry">
|
||||||
|
<span class="phpdocumentor-signature__argument__name">$exception</span>
|
||||||
|
: <span class="phpdocumentor-signature__argument__return-type"><abbr title="\Throwable">Throwable</abbr></span>
|
||||||
|
</dt>
|
||||||
|
<dd class="phpdocumentor-argument-list__definition">
|
||||||
|
<section class="phpdocumentor-description"><p>Die geworfene Exception</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
<dt class="phpdocumentor-argument-list__entry">
|
||||||
|
<span class="phpdocumentor-signature__argument__name">$context</span>
|
||||||
|
: <span class="phpdocumentor-signature__argument__return-type">array<string, mixed></span>
|
||||||
|
= <span class="phpdocumentor-signature__argument__default-value">[]</span> </dt>
|
||||||
|
<dd class="phpdocumentor-argument-list__definition">
|
||||||
|
<section class="phpdocumentor-description"><p>Zusätzlicher Kontext (Route, Benutzername, Remote-IP, ...)</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-private
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method_ensureLogDirectoryExists">
|
||||||
|
ensureLogDirectoryExists()
|
||||||
|
<a href="classes/App-Services-Logging-LoggingService.html#method_ensureLogDirectoryExists" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Logging/LoggingService.php"><a href="files/app-services-logging-loggingservice.html"><abbr title="app/Services/Logging/LoggingService.php">LoggingService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">60</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Stellt sicher, dass das Log-Verzeichnis existiert.</p>
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">private</span>
|
||||||
|
<span class="phpdocumentor-signature__name">ensureLogDirectoryExists</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/app/Services/Logging/LoggingService.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li><a href="classes/App-Services-Logging-LoggingService.html#toc-constants">Constants</a></li>
|
||||||
|
<li><a href="classes/App-Services-Logging-LoggingService.html#toc-properties">Properties</a></li>
|
||||||
|
<li><a href="classes/App-Services-Logging-LoggingService.html#toc-methods">Methods</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Constants</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class=""><a href="classes/App-Services-Logging-LoggingService.html#constant_LEVEL_MAP">LEVEL_MAP</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Properties</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class=""><a href="classes/App-Services-Logging-LoggingService.html#property_logDir">$logDir</a></li>
|
||||||
|
<li class=""><a href="classes/App-Services-Logging-LoggingService.html#property_logFile">$logFile</a></li>
|
||||||
|
<li class=""><a href="classes/App-Services-Logging-LoggingService.html#property_minLevel">$minLevel</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Methods</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class=""><a href="classes/App-Services-Logging-LoggingService.html#method___construct">__construct()</a></li>
|
||||||
|
<li class=""><a href="classes/App-Services-Logging-LoggingService.html#method_log">log()</a></li>
|
||||||
|
<li class=""><a href="classes/App-Services-Logging-LoggingService.html#method_logException">logException()</a></li>
|
||||||
|
<li class=""><a href="classes/App-Services-Logging-LoggingService.html#method_ensureLogDirectoryExists">ensureLogDirectoryExists()</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="classes/App-Services-Logging-LoggingService.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
521
docs/api/classes/App-Services-Snmp-SnmpServerStatusService.html
Normal file
521
docs/api/classes/App-Services-Snmp-SnmpServerStatusService.html
Normal file
@ -0,0 +1,521 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app.html">App</a></li>
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app-services.html">Services</a></li>
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app-services-snmp.html">Snmp</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -class">
|
||||||
|
<h2 class="phpdocumentor-content__title">
|
||||||
|
SnmpServerStatusService
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-element__package">
|
||||||
|
in package
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Snmp/SnmpServerStatusService.php"><a href="files/app-services-snmp-snmpserverstatusservice.html"><abbr title="app/Services/Snmp/SnmpServerStatusService.php">SnmpServerStatusService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">21</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Service zur Ermittlung des Serverstatus per SNMP.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>Features:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Robuste Fehlerbehandlung mit aussagekräftigen Exceptions</li>
|
||||||
|
<li>Intelligente Fallback-Logik bei fehlenden oder unerwarteten OID-Beschreibungen</li>
|
||||||
|
<li>Unterstützung für Windows (C:) und Linux (/) Systeme</li>
|
||||||
|
<li>Detailliertes Logging über Exceptions</li>
|
||||||
|
</ul>
|
||||||
|
<p>Wird vom DashboardController beim initialen Laden aufgerufen.
|
||||||
|
Das Live-Polling erfolgt über das API-Endpunkt (public/api/snmp_status.php).</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="classes/App-Services-Snmp-SnmpServerStatusService.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-properties">
|
||||||
|
Properties
|
||||||
|
<a href="classes/App-Services-Snmp-SnmpServerStatusService.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -property -private">
|
||||||
|
<a class="" href="classes/App-Services-Snmp-SnmpServerStatusService.html#property_config">$config</a>
|
||||||
|
<span>
|
||||||
|
: array<string, mixed> </span>
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<h4 id="toc-methods">
|
||||||
|
Methods
|
||||||
|
<a href="classes/App-Services-Snmp-SnmpServerStatusService.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
||||||
|
<a class="" href="classes/App-Services-Snmp-SnmpServerStatusService.html#method___construct">__construct()</a>
|
||||||
|
<span>
|
||||||
|
: mixed </span>
|
||||||
|
</dt>
|
||||||
|
<dd>Erwartet den Teilbereich "snmp" aus der allgemeinen Konfiguration (config.php).</dd>
|
||||||
|
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -method -public">
|
||||||
|
<a class="" href="classes/App-Services-Snmp-SnmpServerStatusService.html#method_getServerStatus">getServerStatus()</a>
|
||||||
|
<span>
|
||||||
|
: array<string, mixed> </span>
|
||||||
|
</dt>
|
||||||
|
<dd>Liefert den aktuellen Serverstatus zurück.</dd>
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-properties">
|
||||||
|
<h3 class="phpdocumentor-elements__header" id="properties">
|
||||||
|
Properties
|
||||||
|
<a href="classes/App-Services-Snmp-SnmpServerStatusService.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
<article
|
||||||
|
class="
|
||||||
|
phpdocumentor-element
|
||||||
|
-property
|
||||||
|
-private
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="property_config">
|
||||||
|
$config
|
||||||
|
<a href="classes/App-Services-Snmp-SnmpServerStatusService.html#property_config" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
<span class="phpdocumentor-element__modifiers">
|
||||||
|
</span>
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Snmp/SnmpServerStatusService.php"><a href="files/app-services-snmp-snmpserverstatusservice.html"><abbr title="app/Services/Snmp/SnmpServerStatusService.php">SnmpServerStatusService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">24</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">private</span>
|
||||||
|
<span class="phpdocumentor-signature__type">array<string, mixed></span>
|
||||||
|
<span class="phpdocumentor-signature__name">$config</span>
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>SNMP-Konfiguration (Host, Community, Timeout, OIDs, etc.)</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-methods">
|
||||||
|
<h3 class="phpdocumentor-elements__header" id="methods">
|
||||||
|
Methods
|
||||||
|
<a href="classes/App-Services-Snmp-SnmpServerStatusService.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-public
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method___construct">
|
||||||
|
__construct()
|
||||||
|
<a href="classes/App-Services-Snmp-SnmpServerStatusService.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Snmp/SnmpServerStatusService.php"><a href="files/app-services-snmp-snmpserverstatusservice.html"><abbr title="app/Services/Snmp/SnmpServerStatusService.php">SnmpServerStatusService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">31</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Erwartet den Teilbereich "snmp" aus der allgemeinen Konfiguration (config.php).</p>
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">public</span>
|
||||||
|
<span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array<string, mixed> </span><span class="phpdocumentor-signature__argument__name">$snmpConfig</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
|
||||||
|
<dl class="phpdocumentor-argument-list">
|
||||||
|
<dt class="phpdocumentor-argument-list__entry">
|
||||||
|
<span class="phpdocumentor-signature__argument__name">$snmpConfig</span>
|
||||||
|
: <span class="phpdocumentor-signature__argument__return-type">array<string, mixed></span>
|
||||||
|
</dt>
|
||||||
|
<dd class="phpdocumentor-argument-list__definition">
|
||||||
|
<section class="phpdocumentor-description"><p>Konfiguration für die SNMP-Abfragen</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
<article
|
||||||
|
class="phpdocumentor-element
|
||||||
|
-method
|
||||||
|
-public
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<h4 class="phpdocumentor-element__name" id="method_getServerStatus">
|
||||||
|
getServerStatus()
|
||||||
|
<a href="classes/App-Services-Snmp-SnmpServerStatusService.html#method_getServerStatus" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<aside class="phpdocumentor-element-found-in">
|
||||||
|
<abbr class="phpdocumentor-element-found-in__file" title="app/Services/Snmp/SnmpServerStatusService.php"><a href="files/app-services-snmp-snmpserverstatusservice.html"><abbr title="app/Services/Snmp/SnmpServerStatusService.php">SnmpServerStatusService.php</abbr></a></abbr>
|
||||||
|
:
|
||||||
|
<span class="phpdocumentor-element-found-in__line">43</span>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<p class="phpdocumentor-summary">Liefert den aktuellen Serverstatus zurück.</p>
|
||||||
|
|
||||||
|
<code class="phpdocumentor-code phpdocumentor-signature ">
|
||||||
|
<span class="phpdocumentor-signature__visibility">public</span>
|
||||||
|
<span class="phpdocumentor-signature__name">getServerStatus</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array<string, mixed></span></code>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-label-line">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h5 class="phpdocumentor-tag-list__heading" id="tags">
|
||||||
|
Tags
|
||||||
|
<a href="classes/App-Services-Snmp-SnmpServerStatusService.html#method_getServerStatus#tags" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h5>
|
||||||
|
<dl class="phpdocumentor-tag-list">
|
||||||
|
<dt class="phpdocumentor-tag-list__entry">
|
||||||
|
<span class="phpdocumentor-tag__name">throws</span>
|
||||||
|
</dt>
|
||||||
|
<dd class="phpdocumentor-tag-list__definition">
|
||||||
|
<span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-description"><p>wenn die SNMP-Konfiguration unvollständig ist oder Abfragen fehlschlagen</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
|
||||||
|
<span class="phpdocumentor-signature__response_type">array<string, mixed></span>
|
||||||
|
—
|
||||||
|
<section class="phpdocumentor-description"><p>Assoziatives Array mit Statuswerten (Hostname, CPU%, RAM%, etc.)</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/app/Services/Snmp/SnmpServerStatusService.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li><a href="classes/App-Services-Snmp-SnmpServerStatusService.html#toc-properties">Properties</a></li>
|
||||||
|
<li><a href="classes/App-Services-Snmp-SnmpServerStatusService.html#toc-methods">Methods</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Properties</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class=""><a href="classes/App-Services-Snmp-SnmpServerStatusService.html#property_config">$config</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Methods</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class=""><a href="classes/App-Services-Snmp-SnmpServerStatusService.html#method___construct">__construct()</a></li>
|
||||||
|
<li class=""><a href="classes/App-Services-Snmp-SnmpServerStatusService.html#method_getServerStatus">getServerStatus()</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="classes/App-Services-Snmp-SnmpServerStatusService.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
1236
docs/api/css/base.css
Normal file
1236
docs/api/css/base.css
Normal file
File diff suppressed because it is too large
Load Diff
427
docs/api/css/normalize.css
vendored
Normal file
427
docs/api/css/normalize.css
vendored
Normal file
@ -0,0 +1,427 @@
|
|||||||
|
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Set default font family to sans-serif.
|
||||||
|
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
||||||
|
* user zoom.
|
||||||
|
*/
|
||||||
|
|
||||||
|
html {
|
||||||
|
font-family: sans-serif; /* 1 */
|
||||||
|
-ms-text-size-adjust: 100%; /* 2 */
|
||||||
|
-webkit-text-size-adjust: 100%; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove default margin.
|
||||||
|
*/
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* HTML5 display definitions
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Correct `block` display not defined for any HTML5 element in IE 8/9.
|
||||||
|
* Correct `block` display not defined for `details` or `summary` in IE 10/11
|
||||||
|
* and Firefox.
|
||||||
|
* Correct `block` display not defined for `main` in IE 11.
|
||||||
|
*/
|
||||||
|
|
||||||
|
article,
|
||||||
|
aside,
|
||||||
|
details,
|
||||||
|
figcaption,
|
||||||
|
figure,
|
||||||
|
footer,
|
||||||
|
header,
|
||||||
|
hgroup,
|
||||||
|
main,
|
||||||
|
menu,
|
||||||
|
nav,
|
||||||
|
section,
|
||||||
|
summary {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Correct `inline-block` display not defined in IE 8/9.
|
||||||
|
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
||||||
|
*/
|
||||||
|
|
||||||
|
audio,
|
||||||
|
canvas,
|
||||||
|
progress,
|
||||||
|
video {
|
||||||
|
display: inline-block; /* 1 */
|
||||||
|
vertical-align: baseline; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prevent modern browsers from displaying `audio` without controls.
|
||||||
|
* Remove excess height in iOS 5 devices.
|
||||||
|
*/
|
||||||
|
|
||||||
|
audio:not([controls]) {
|
||||||
|
display: none;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address `[hidden]` styling not present in IE 8/9/10.
|
||||||
|
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
||||||
|
*/
|
||||||
|
|
||||||
|
[hidden],
|
||||||
|
template {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Links
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the gray background color from active links in IE 10.
|
||||||
|
*/
|
||||||
|
|
||||||
|
a {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Improve readability when focused and also mouse hovered in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
a:active,
|
||||||
|
a:hover {
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Text-level semantics
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
|
||||||
|
*/
|
||||||
|
|
||||||
|
abbr[title] {
|
||||||
|
border-bottom: 1px dotted;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
|
||||||
|
*/
|
||||||
|
|
||||||
|
b,
|
||||||
|
strong {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address styling not present in Safari and Chrome.
|
||||||
|
*/
|
||||||
|
|
||||||
|
dfn {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address variable `h1` font-size and margin within `section` and `article`
|
||||||
|
* contexts in Firefox 4+, Safari, and Chrome.
|
||||||
|
*/
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 2em;
|
||||||
|
margin: 0.67em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address styling not present in IE 8/9.
|
||||||
|
*/
|
||||||
|
|
||||||
|
mark {
|
||||||
|
background: #ff0;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address inconsistent and variable font size in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
small {
|
||||||
|
font-size: 80%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
sub,
|
||||||
|
sup {
|
||||||
|
font-size: 75%;
|
||||||
|
line-height: 0;
|
||||||
|
position: relative;
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
|
||||||
|
sup {
|
||||||
|
top: -0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub {
|
||||||
|
bottom: -0.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Embedded content
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove border when inside `a` element in IE 8/9/10.
|
||||||
|
*/
|
||||||
|
|
||||||
|
img {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Correct overflow not hidden in IE 9/10/11.
|
||||||
|
*/
|
||||||
|
|
||||||
|
svg:not(:root) {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Grouping content
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address margin not present in IE 8/9 and Safari.
|
||||||
|
*/
|
||||||
|
|
||||||
|
figure {
|
||||||
|
margin: 1em 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address differences between Firefox and other browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
hr {
|
||||||
|
-moz-box-sizing: content-box;
|
||||||
|
box-sizing: content-box;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Contain overflow in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
pre {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address odd `em`-unit font size rendering in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
code,
|
||||||
|
kbd,
|
||||||
|
pre,
|
||||||
|
samp {
|
||||||
|
font-family: var(--font-monospace);
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Forms
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Known limitation: by default, Chrome and Safari on OS X allow very limited
|
||||||
|
* styling of `select`, unless a `border` property is set.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Correct color not being inherited.
|
||||||
|
* Known issue: affects color of disabled elements.
|
||||||
|
* 2. Correct font properties not being inherited.
|
||||||
|
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button,
|
||||||
|
input,
|
||||||
|
optgroup,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
color: inherit; /* 1 */
|
||||||
|
font: inherit; /* 2 */
|
||||||
|
margin: 0; /* 3 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address `overflow` set to `hidden` in IE 8/9/10/11.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
||||||
|
* All other form control elements do not inherit `text-transform` values.
|
||||||
|
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
|
||||||
|
* Correct `select` style inheritance in Firefox.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button,
|
||||||
|
select {
|
||||||
|
text-transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
||||||
|
* and `video` controls.
|
||||||
|
* 2. Correct inability to style clickable `input` types in iOS.
|
||||||
|
* 3. Improve usability and consistency of cursor style between image-type
|
||||||
|
* `input` and others.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button,
|
||||||
|
html input[type="button"], /* 1 */
|
||||||
|
input[type="reset"],
|
||||||
|
input[type="submit"] {
|
||||||
|
-webkit-appearance: button; /* 2 */
|
||||||
|
cursor: pointer; /* 3 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Re-set default cursor for disabled elements.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button[disabled],
|
||||||
|
html input[disabled] {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove inner padding and border in Firefox 4+.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button::-moz-focus-inner,
|
||||||
|
input::-moz-focus-inner {
|
||||||
|
border: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
||||||
|
* the UA stylesheet.
|
||||||
|
*/
|
||||||
|
|
||||||
|
input {
|
||||||
|
line-height: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* It's recommended that you don't attempt to style these elements.
|
||||||
|
* Firefox's implementation doesn't respect box-sizing, padding, or width.
|
||||||
|
*
|
||||||
|
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
||||||
|
* 2. Remove excess padding in IE 8/9/10.
|
||||||
|
*/
|
||||||
|
|
||||||
|
input[type="checkbox"],
|
||||||
|
input[type="radio"] {
|
||||||
|
box-sizing: border-box; /* 1 */
|
||||||
|
padding: 0; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
||||||
|
* `font-size` values of the `input`, it causes the cursor style of the
|
||||||
|
* decrement button to change from `default` to `text`.
|
||||||
|
*/
|
||||||
|
|
||||||
|
input[type="number"]::-webkit-inner-spin-button,
|
||||||
|
input[type="number"]::-webkit-outer-spin-button {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
||||||
|
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
||||||
|
* (include `-moz` to future-proof).
|
||||||
|
*/
|
||||||
|
|
||||||
|
input[type="search"] {
|
||||||
|
-webkit-appearance: textfield; /* 1 */
|
||||||
|
-moz-box-sizing: content-box;
|
||||||
|
-webkit-box-sizing: content-box; /* 2 */
|
||||||
|
box-sizing: content-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
||||||
|
* Safari (but not Chrome) clips the cancel button when the search input has
|
||||||
|
* padding (and `textfield` appearance).
|
||||||
|
*/
|
||||||
|
|
||||||
|
input[type="search"]::-webkit-search-cancel-button,
|
||||||
|
input[type="search"]::-webkit-search-decoration {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Define consistent border, margin, and padding.
|
||||||
|
*/
|
||||||
|
|
||||||
|
fieldset {
|
||||||
|
border: 1px solid #c0c0c0;
|
||||||
|
margin: 0 2px;
|
||||||
|
padding: 0.35em 0.625em 0.75em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Correct `color` not being inherited in IE 8/9/10/11.
|
||||||
|
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
||||||
|
*/
|
||||||
|
|
||||||
|
legend {
|
||||||
|
border: 0; /* 1 */
|
||||||
|
padding: 0; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove default vertical scrollbar in IE 8/9/10/11.
|
||||||
|
*/
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Don't inherit the `font-weight` (applied by a rule above).
|
||||||
|
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
||||||
|
*/
|
||||||
|
|
||||||
|
optgroup {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Tables
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove most spacing between table cells.
|
||||||
|
*/
|
||||||
|
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
td,
|
||||||
|
th {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
279
docs/api/css/template.css
Normal file
279
docs/api/css/template.css
Normal file
@ -0,0 +1,279 @@
|
|||||||
|
|
||||||
|
.phpdocumentor-content {
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
gap: var(--spacing-md);
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-content > section:first-of-type {
|
||||||
|
width: 75%;
|
||||||
|
flex: 1 1 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1900px) {
|
||||||
|
.phpdocumentor-content > section:first-of-type {
|
||||||
|
width: 100%;
|
||||||
|
flex: 1 1 auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor .phpdocumentor-content__title {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
.phpdocumentor-summary {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.phpdocumentor-description {
|
||||||
|
margin-bottom: var(--spacing-md);
|
||||||
|
}
|
||||||
|
.phpdocumentor-element {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-element .phpdocumentor-element {
|
||||||
|
border: 1px solid var(--primary-color-lighten);
|
||||||
|
margin-bottom: var(--spacing-md);
|
||||||
|
padding: var(--spacing-xs);
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-element.-deprecated .phpdocumentor-element__name {
|
||||||
|
text-decoration: line-through;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 550px) {
|
||||||
|
.phpdocumentor-element .phpdocumentor-element {
|
||||||
|
margin-bottom: var(--spacing-lg);
|
||||||
|
padding: var(--spacing-md);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-element__modifier {
|
||||||
|
font-size: var(--text-xxs);
|
||||||
|
padding: calc(var(--spacing-base-size) / 4) calc(var(--spacing-base-size) / 2);
|
||||||
|
color: var(--text-color);
|
||||||
|
background-color: var(--light-gray);
|
||||||
|
border-radius: 3px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor .phpdocumentor-elements__header {
|
||||||
|
margin-top: var(--spacing-xxl);
|
||||||
|
margin-bottom: var(--spacing-lg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor .phpdocumentor-element__name {
|
||||||
|
line-height: 1;
|
||||||
|
margin-top: 0;
|
||||||
|
font-weight: 300;
|
||||||
|
font-size: var(--text-lg);
|
||||||
|
word-break: break-all;
|
||||||
|
margin-bottom: var(--spacing-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 550px) {
|
||||||
|
.phpdocumentor .phpdocumentor-element__name {
|
||||||
|
font-size: var(--text-xl);
|
||||||
|
margin-bottom: var(--spacing-xs);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1200px) {
|
||||||
|
.phpdocumentor .phpdocumentor-element__name {
|
||||||
|
margin-bottom: var(--spacing-md);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-element__package,
|
||||||
|
.phpdocumentor-element__extends,
|
||||||
|
.phpdocumentor-element__implements {
|
||||||
|
display: block;
|
||||||
|
font-size: var(--text-xxs);
|
||||||
|
font-weight: normal;
|
||||||
|
opacity: .7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-element__package .phpdocumentor-breadcrumbs {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
.phpdocumentor .phpdocumentor-signature {
|
||||||
|
display: block;
|
||||||
|
font-size: var(--text-sm);
|
||||||
|
border: 1px solid #f0f0f0;
|
||||||
|
margin-bottom: calc(var(--spacing-sm));
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor .phpdocumentor-signature.-deprecated .phpdocumentor-signature__name {
|
||||||
|
text-decoration: line-through;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 550px) {
|
||||||
|
.phpdocumentor .phpdocumentor-signature {
|
||||||
|
margin-left: calc(var(--spacing-xl) * -1);
|
||||||
|
width: calc(100% + var(--spacing-xl));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-table-of-contents {
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry {
|
||||||
|
margin-bottom: var(--spacing-xxs);
|
||||||
|
margin-left: 2rem;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry > a {
|
||||||
|
flex: 0 1 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry > a.-deprecated {
|
||||||
|
text-decoration: line-through;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry > span {
|
||||||
|
flex: 1;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry:after {
|
||||||
|
content: '';
|
||||||
|
height: 12px;
|
||||||
|
width: 12px;
|
||||||
|
left: 16px;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-private:after {
|
||||||
|
background: url('data:image/svg+xml;utf8,<svg width="8" height="10" viewBox="0 0 8 10" fill="none" xmlns="http://www.w3.org/2000/svg"><rect y="4" width="8" height="6" rx="1.4" fill="%23EE6749"/><path d="M2 4C2 3 2.4 1 4 1C5.6 1 6 3 6 4" stroke="%23EE6749" stroke-width="1.4"/></svg>') no-repeat;
|
||||||
|
}
|
||||||
|
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-protected:after {
|
||||||
|
left: 13px;
|
||||||
|
background: url('data:image/svg+xml;utf8,<svg width="11" height="9" viewBox="0 0 11 9" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="8" height="6" rx="1.4" fill="%23EE9949"/><path d="M5 4C5 3 4.6 1 3 1C1.4 1 1 3 1 4" stroke="%23EE9949" stroke-width="1.4"/></svg>') no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry:before {
|
||||||
|
width: 1.25rem;
|
||||||
|
height: 1.25rem;
|
||||||
|
line-height: 1.25rem;
|
||||||
|
background: transparent url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="10" fill="hsl( 96, 57%, 60%)"/></svg>') no-repeat center center;
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
border-radius: 50%;
|
||||||
|
font-weight: 600;
|
||||||
|
color: white;
|
||||||
|
text-align: center;
|
||||||
|
font-size: .75rem;
|
||||||
|
margin-top: .2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-method:before {
|
||||||
|
content: 'M';
|
||||||
|
color: '';
|
||||||
|
background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="10" fill="hsl( 96, 57%, 60%)"/></svg>');
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-function:before {
|
||||||
|
content: 'M';
|
||||||
|
color: ' 96';
|
||||||
|
background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="10" fill="hsl( 96, 57%, 60%)"/></svg>');
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-property:before {
|
||||||
|
content: 'P'
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-constant:before {
|
||||||
|
content: 'C';
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="-3.05176e-05" y="9.99998" width="14.1422" height="14.1422" transform="rotate(-45 -3.05176e-05 9.99998)" fill="hsl( 96, 57%, 60%)"/></svg>');
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-class:before {
|
||||||
|
content: 'C'
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-interface:before {
|
||||||
|
content: 'I'
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-trait:before {
|
||||||
|
content: 'T'
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-namespace:before {
|
||||||
|
content: 'N'
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-package:before {
|
||||||
|
content: 'P'
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-enum:before {
|
||||||
|
content: 'E'
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-table-of-contents dd {
|
||||||
|
font-style: italic;
|
||||||
|
margin-left: 2rem;
|
||||||
|
}
|
||||||
|
.phpdocumentor-element-found-in {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 550px) {
|
||||||
|
.phpdocumentor-element-found-in {
|
||||||
|
display: block;
|
||||||
|
font-size: var(--text-sm);
|
||||||
|
color: gray;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1200px) {
|
||||||
|
.phpdocumentor-element-found-in {
|
||||||
|
position: absolute;
|
||||||
|
top: var(--spacing-sm);
|
||||||
|
right: var(--spacing-sm);
|
||||||
|
font-size: var(--text-sm);
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-element-found-in .phpdocumentor-element-found-in__source {
|
||||||
|
flex: 0 1 auto;
|
||||||
|
display: inline-flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-element-found-in .phpdocumentor-element-found-in__source:after {
|
||||||
|
width: 1.25rem;
|
||||||
|
height: 1.25rem;
|
||||||
|
line-height: 1.25rem;
|
||||||
|
background: transparent url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="gray"><path d="M5.854 4.854a.5.5 0 1 0-.708-.708l-3.5 3.5a.5.5 0 0 0 0 .708l3.5 3.5a.5.5 0 0 0 .708-.708L2.707 8l3.147-3.146zm4.292 0a.5.5 0 0 1 .708-.708l3.5 3.5a.5.5 0 0 1 0 .708l-3.5 3.5a.5.5 0 0 1-.708-.708L13.293 8l-3.147-3.146z" stroke="gray" stroke-width="1.4"/></svg>') no-repeat center center;
|
||||||
|
content: '';
|
||||||
|
left: 0;
|
||||||
|
border-radius: 50%;
|
||||||
|
font-weight: 600;
|
||||||
|
text-align: center;
|
||||||
|
font-size: .75rem;
|
||||||
|
margin-top: .2rem;
|
||||||
|
}
|
||||||
|
.phpdocumentor-class-graph {
|
||||||
|
width: 100%; height: 600px; border:1px solid black; overflow: hidden
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-class-graph__graph {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.phpdocumentor-tag-list__definition {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phpdocumentor-tag-link {
|
||||||
|
margin-right: var(--spacing-sm);
|
||||||
|
}
|
||||||
|
.phpdocumentor-uml-diagram svg {
|
||||||
|
cursor: zoom-in;
|
||||||
|
}
|
||||||
280
docs/api/files/app-controllers-authcontroller.html
Normal file
280
docs/api/files/app-controllers-authcontroller.html
Normal file
@ -0,0 +1,280 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -file">
|
||||||
|
<h2 class="phpdocumentor-content__title">AuthController.php</h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="files/app-controllers-authcontroller.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-classes">
|
||||||
|
Classes
|
||||||
|
<a href="files/app-controllers-authcontroller.html#toc-classes" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Controllers-AuthController.html"><abbr title="\App\Controllers\AuthController">AuthController</abbr></a></dt><dd>Zuständig für alles rund um den Login:
|
||||||
|
- Login-Formular anzeigen
|
||||||
|
- Login-Daten verarbeiten (Authentifizierung gegen LDAP/AD)
|
||||||
|
- Logout durchführen</dd> </dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/app/Controllers/AuthController.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li><a href="files/app-controllers-authcontroller.html#toc-classes">Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="files/app-controllers-authcontroller.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
277
docs/api/files/app-controllers-dashboardcontroller.html
Normal file
277
docs/api/files/app-controllers-dashboardcontroller.html
Normal file
@ -0,0 +1,277 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -file">
|
||||||
|
<h2 class="phpdocumentor-content__title">DashboardController.php</h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="files/app-controllers-dashboardcontroller.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-classes">
|
||||||
|
Classes
|
||||||
|
<a href="files/app-controllers-dashboardcontroller.html#toc-classes" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Controllers-DashboardController.html"><abbr title="\App\Controllers\DashboardController">DashboardController</abbr></a></dt><dd>Controller für das Dashboard.</dd> </dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/app/Controllers/DashboardController.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li><a href="files/app-controllers-dashboardcontroller.html#toc-classes">Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="files/app-controllers-dashboardcontroller.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
277
docs/api/files/app-controllers-usermanagementcontroller.html
Normal file
277
docs/api/files/app-controllers-usermanagementcontroller.html
Normal file
@ -0,0 +1,277 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -file">
|
||||||
|
<h2 class="phpdocumentor-content__title">UserManagementController.php</h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="files/app-controllers-usermanagementcontroller.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-classes">
|
||||||
|
Classes
|
||||||
|
<a href="files/app-controllers-usermanagementcontroller.html#toc-classes" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Controllers-UserManagementController.html"><abbr title="\App\Controllers\UserManagementController">UserManagementController</abbr></a></dt><dd>Controller für die Benutzer- und Gruppenanzeige.</dd> </dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/app/Controllers/UserManagementController.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li><a href="files/app-controllers-usermanagementcontroller.html#toc-classes">Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="files/app-controllers-usermanagementcontroller.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
277
docs/api/files/app-services-ldap-ldapauthservice.html
Normal file
277
docs/api/files/app-services-ldap-ldapauthservice.html
Normal file
@ -0,0 +1,277 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -file">
|
||||||
|
<h2 class="phpdocumentor-content__title">LdapAuthService.php</h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="files/app-services-ldap-ldapauthservice.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-classes">
|
||||||
|
Classes
|
||||||
|
<a href="files/app-services-ldap-ldapauthservice.html#toc-classes" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Services-Ldap-LdapAuthService.html"><abbr title="\App\Services\Ldap\LdapAuthService">LdapAuthService</abbr></a></dt><dd>Service zur Authentifizierung von Benutzern gegen ein Active Directory per LDAP/LDAPS.</dd> </dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/app/Services/Ldap/LdapAuthService.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li><a href="files/app-services-ldap-ldapauthservice.html#toc-classes">Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="files/app-services-ldap-ldapauthservice.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
277
docs/api/files/app-services-ldap-ldapconnectionhelper.html
Normal file
277
docs/api/files/app-services-ldap-ldapconnectionhelper.html
Normal file
@ -0,0 +1,277 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -file">
|
||||||
|
<h2 class="phpdocumentor-content__title">LdapConnectionHelper.php</h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="files/app-services-ldap-ldapconnectionhelper.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-classes">
|
||||||
|
Classes
|
||||||
|
<a href="files/app-services-ldap-ldapconnectionhelper.html#toc-classes" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Services-Ldap-LdapConnectionHelper.html"><abbr title="\App\Services\Ldap\LdapConnectionHelper">LdapConnectionHelper</abbr></a></dt><dd>Hilfsklasse zum Aufbau einer LDAP/LDAPS-Verbindung.</dd> </dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/app/Services/Ldap/LdapConnectionHelper.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li><a href="files/app-services-ldap-ldapconnectionhelper.html#toc-classes">Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="files/app-services-ldap-ldapconnectionhelper.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
277
docs/api/files/app-services-ldap-ldapdirectoryservice.html
Normal file
277
docs/api/files/app-services-ldap-ldapdirectoryservice.html
Normal file
@ -0,0 +1,277 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -file">
|
||||||
|
<h2 class="phpdocumentor-content__title">LdapDirectoryService.php</h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="files/app-services-ldap-ldapdirectoryservice.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-classes">
|
||||||
|
Classes
|
||||||
|
<a href="files/app-services-ldap-ldapdirectoryservice.html#toc-classes" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Services-Ldap-LdapDirectoryService.html"><abbr title="\App\Services\Ldap\LdapDirectoryService">LdapDirectoryService</abbr></a></dt><dd>Service zum Lesen von Objekten aus dem Active Directory.</dd> </dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/app/Services/Ldap/LdapDirectoryService.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li><a href="files/app-services-ldap-ldapdirectoryservice.html#toc-classes">Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="files/app-services-ldap-ldapdirectoryservice.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
277
docs/api/files/app-services-logging-loggingservice.html
Normal file
277
docs/api/files/app-services-logging-loggingservice.html
Normal file
@ -0,0 +1,277 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -file">
|
||||||
|
<h2 class="phpdocumentor-content__title">LoggingService.php</h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="files/app-services-logging-loggingservice.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-classes">
|
||||||
|
Classes
|
||||||
|
<a href="files/app-services-logging-loggingservice.html#toc-classes" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Services-Logging-LoggingService.html"><abbr title="\App\Services\Logging\LoggingService">LoggingService</abbr></a></dt><dd>Einfacher File-Logger für die AdminTool-Anwendung.</dd> </dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/app/Services/Logging/LoggingService.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li><a href="files/app-services-logging-loggingservice.html#toc-classes">Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="files/app-services-logging-loggingservice.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
277
docs/api/files/app-services-snmp-snmpserverstatusservice.html
Normal file
277
docs/api/files/app-services-snmp-snmpserverstatusservice.html
Normal file
@ -0,0 +1,277 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -file">
|
||||||
|
<h2 class="phpdocumentor-content__title">SnmpServerStatusService.php</h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="files/app-services-snmp-snmpserverstatusservice.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-classes">
|
||||||
|
Classes
|
||||||
|
<a href="files/app-services-snmp-snmpserverstatusservice.html#toc-classes" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Services-Snmp-SnmpServerStatusService.html"><abbr title="\App\Services\Snmp\SnmpServerStatusService">SnmpServerStatusService</abbr></a></dt><dd>Service zur Ermittlung des Serverstatus per SNMP.</dd> </dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="files/app/Services/Snmp/SnmpServerStatusService.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li><a href="files/app-services-snmp-snmpserverstatusservice.html#toc-classes">Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="files/app-services-snmp-snmpserverstatusservice.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
120
docs/api/graphs/classes.html
Normal file
120
docs/api/graphs/classes.html
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<script src='https://unpkg.com/panzoom@8.7.3/dist/panzoom.min.js'></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<div class="phpdocumentor-class-graph">
|
||||||
|
<img class="phpdocumentor-class-graph__graph" src="graphs/classes.svg" id="scene" />
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var element = document.querySelector('#scene');
|
||||||
|
|
||||||
|
// And pass it to panzoom
|
||||||
|
panzoom(element, {
|
||||||
|
smoothScroll: false
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="graphs/classes.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
163
docs/api/index.html
Normal file
163
docs/api/index.html
Normal file
@ -0,0 +1,163 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="./">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<h2>Documentation</h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="namespaces/default.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
<h4 id="packages">
|
||||||
|
Packages
|
||||||
|
<a href="namespaces/default.html#packages" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -package"><a href="packages/Application.html"><abbr title="\Application">Application</abbr></a></dt>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<h4 id="namespaces">
|
||||||
|
Namespaces
|
||||||
|
<a href="namespaces/default.html#namespaces" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -namespace"><a href="namespaces/app.html"><abbr title="\App">App</abbr></a></dt>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="index.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
148
docs/api/indices/files.html
Normal file
148
docs/api/indices/files.html
Normal file
@ -0,0 +1,148 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
|
||||||
|
<h2 class="phpdocumentor-content__title">Files</h2>
|
||||||
|
<h3>A</h3>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li><a href="files/app-controllers-authcontroller.html"><abbr title="app/Controllers/AuthController.php">AuthController.php</abbr></a></li>
|
||||||
|
</ul>
|
||||||
|
<h3>D</h3>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li><a href="files/app-controllers-dashboardcontroller.html"><abbr title="app/Controllers/DashboardController.php">DashboardController.php</abbr></a></li>
|
||||||
|
</ul>
|
||||||
|
<h3>L</h3>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li><a href="files/app-services-ldap-ldapauthservice.html"><abbr title="app/Services/Ldap/LdapAuthService.php">LdapAuthService.php</abbr></a></li>
|
||||||
|
<li><a href="files/app-services-ldap-ldapconnectionhelper.html"><abbr title="app/Services/Ldap/LdapConnectionHelper.php">LdapConnectionHelper.php</abbr></a></li>
|
||||||
|
<li><a href="files/app-services-ldap-ldapdirectoryservice.html"><abbr title="app/Services/Ldap/LdapDirectoryService.php">LdapDirectoryService.php</abbr></a></li>
|
||||||
|
<li><a href="files/app-services-logging-loggingservice.html"><abbr title="app/Services/Logging/LoggingService.php">LoggingService.php</abbr></a></li>
|
||||||
|
</ul>
|
||||||
|
<h3>S</h3>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li><a href="files/app-services-snmp-snmpserverstatusservice.html"><abbr title="app/Services/Snmp/SnmpServerStatusService.php">SnmpServerStatusService.php</abbr></a></li>
|
||||||
|
</ul>
|
||||||
|
<h3>U</h3>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li><a href="files/app-controllers-usermanagementcontroller.html"><abbr title="app/Controllers/UserManagementController.php">UserManagementController.php</abbr></a></li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="indices/files.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
173
docs/api/js/search.js
Normal file
173
docs/api/js/search.js
Normal file
@ -0,0 +1,173 @@
|
|||||||
|
// Search module for phpDocumentor
|
||||||
|
//
|
||||||
|
// This module is a wrapper around fuse.js that will use a given index and attach itself to a
|
||||||
|
// search form and to a search results pane identified by the following data attributes:
|
||||||
|
//
|
||||||
|
// 1. data-search-form
|
||||||
|
// 2. data-search-results
|
||||||
|
//
|
||||||
|
// The data-search-form is expected to have a single input element of type 'search' that will trigger searching for
|
||||||
|
// a series of results, were the data-search-results pane is expected to have a direct UL child that will be populated
|
||||||
|
// with rendered results.
|
||||||
|
//
|
||||||
|
// The search has various stages, upon loading this stage the data-search-form receives the CSS class
|
||||||
|
// 'phpdocumentor-search--enabled'; this indicates that JS is allowed and indices are being loaded. It is recommended
|
||||||
|
// to hide the form by default and show it when it receives this class to achieve progressive enhancement for this
|
||||||
|
// feature.
|
||||||
|
//
|
||||||
|
// After loading this module, it is expected to load a search index asynchronously, for example:
|
||||||
|
//
|
||||||
|
// <script defer src="js/searchIndex.js"></script>
|
||||||
|
//
|
||||||
|
// In this script the generated index should attach itself to the search module using the `appendIndex` function. By
|
||||||
|
// doing it like this the page will continue loading, unhindered by the loading of the search.
|
||||||
|
//
|
||||||
|
// After the page has fully loaded, and all these deferred indexes loaded, the initialization of the search module will
|
||||||
|
// be called and the form will receive the class 'phpdocumentor-search--active', indicating search is ready. At this
|
||||||
|
// point, the input field will also have it's 'disabled' attribute removed.
|
||||||
|
var Search = (function () {
|
||||||
|
var fuse;
|
||||||
|
var index = [];
|
||||||
|
var options = {
|
||||||
|
shouldSort: true,
|
||||||
|
threshold: 0.6,
|
||||||
|
location: 0,
|
||||||
|
distance: 100,
|
||||||
|
maxPatternLength: 32,
|
||||||
|
minMatchCharLength: 1,
|
||||||
|
keys: [
|
||||||
|
"fqsen",
|
||||||
|
"name",
|
||||||
|
"summary",
|
||||||
|
"url"
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
// Credit David Walsh (https://davidwalsh.name/javascript-debounce-function)
|
||||||
|
// Returns a function, that, as long as it continues to be invoked, will not
|
||||||
|
// be triggered. The function will be called after it stops being called for
|
||||||
|
// N milliseconds. If `immediate` is passed, trigger the function on the
|
||||||
|
// leading edge, instead of the trailing.
|
||||||
|
function debounce(func, wait, immediate) {
|
||||||
|
var timeout;
|
||||||
|
|
||||||
|
return function executedFunction() {
|
||||||
|
var context = this;
|
||||||
|
var args = arguments;
|
||||||
|
|
||||||
|
var later = function () {
|
||||||
|
timeout = null;
|
||||||
|
if (!immediate) func.apply(context, args);
|
||||||
|
};
|
||||||
|
|
||||||
|
var callNow = immediate && !timeout;
|
||||||
|
clearTimeout(timeout);
|
||||||
|
timeout = setTimeout(later, wait);
|
||||||
|
if (callNow) func.apply(context, args);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function close() {
|
||||||
|
// Start scroll prevention: https://css-tricks.com/prevent-page-scrolling-when-a-modal-is-open/
|
||||||
|
const scrollY = document.body.style.top;
|
||||||
|
document.body.style.position = '';
|
||||||
|
document.body.style.top = '';
|
||||||
|
window.scrollTo(0, parseInt(scrollY || '0') * -1);
|
||||||
|
// End scroll prevention
|
||||||
|
|
||||||
|
var form = document.querySelector('[data-search-form]');
|
||||||
|
var searchResults = document.querySelector('[data-search-results]');
|
||||||
|
|
||||||
|
form.classList.toggle('phpdocumentor-search--has-results', false);
|
||||||
|
searchResults.classList.add('phpdocumentor-search-results--hidden');
|
||||||
|
var searchField = document.querySelector('[data-search-form] input[type="search"]');
|
||||||
|
searchField.blur();
|
||||||
|
}
|
||||||
|
|
||||||
|
function search(event) {
|
||||||
|
// Start scroll prevention: https://css-tricks.com/prevent-page-scrolling-when-a-modal-is-open/
|
||||||
|
document.body.style.position = 'fixed';
|
||||||
|
document.body.style.top = `-${window.scrollY}px`;
|
||||||
|
// End scroll prevention
|
||||||
|
|
||||||
|
// prevent enter's from autosubmitting
|
||||||
|
event.stopPropagation();
|
||||||
|
|
||||||
|
var form = document.querySelector('[data-search-form]');
|
||||||
|
var searchResults = document.querySelector('[data-search-results]');
|
||||||
|
var searchResultEntries = document.querySelector('[data-search-results] .phpdocumentor-search-results__entries');
|
||||||
|
|
||||||
|
searchResultEntries.innerHTML = '';
|
||||||
|
|
||||||
|
if (!event.target.value) {
|
||||||
|
close();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
form.classList.toggle('phpdocumentor-search--has-results', true);
|
||||||
|
searchResults.classList.remove('phpdocumentor-search-results--hidden');
|
||||||
|
var results = fuse.search(event.target.value, {limit: 25});
|
||||||
|
|
||||||
|
results.forEach(function (result) {
|
||||||
|
var entry = document.createElement("li");
|
||||||
|
entry.classList.add("phpdocumentor-search-results__entry");
|
||||||
|
entry.innerHTML += '<h3><a href="' + document.baseURI + result.url + '">' + result.name + "</a></h3>\n";
|
||||||
|
entry.innerHTML += '<small>' + result.fqsen + "</small>\n";
|
||||||
|
entry.innerHTML += '<div class="phpdocumentor-summary">' + result.summary + '</div>';
|
||||||
|
searchResultEntries.appendChild(entry)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function appendIndex(added) {
|
||||||
|
index = index.concat(added);
|
||||||
|
|
||||||
|
// re-initialize search engine when appending an index after initialisation
|
||||||
|
if (typeof fuse !== 'undefined') {
|
||||||
|
fuse = new Fuse(index, options);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function init() {
|
||||||
|
fuse = new Fuse(index, options);
|
||||||
|
|
||||||
|
var form = document.querySelector('[data-search-form]');
|
||||||
|
var searchField = document.querySelector('[data-search-form] input[type="search"]');
|
||||||
|
|
||||||
|
var closeButton = document.querySelector('.phpdocumentor-search-results__close');
|
||||||
|
closeButton.addEventListener('click', function() { close() }.bind(this));
|
||||||
|
|
||||||
|
var searchResults = document.querySelector('[data-search-results]');
|
||||||
|
searchResults.addEventListener('click', function() { close() }.bind(this));
|
||||||
|
|
||||||
|
form.classList.add('phpdocumentor-search--active');
|
||||||
|
|
||||||
|
searchField.setAttribute('placeholder', 'Search (Press "/" to focus)');
|
||||||
|
searchField.removeAttribute('disabled');
|
||||||
|
searchField.addEventListener('keyup', debounce(search, 300));
|
||||||
|
|
||||||
|
window.addEventListener('keyup', function (event) {
|
||||||
|
if (event.key === '/') {
|
||||||
|
searchField.focus();
|
||||||
|
}
|
||||||
|
if (event.code === 'Escape') {
|
||||||
|
close();
|
||||||
|
}
|
||||||
|
}.bind(this));
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
appendIndex,
|
||||||
|
init
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
|
||||||
|
window.addEventListener('DOMContentLoaded', function () {
|
||||||
|
var form = document.querySelector('[data-search-form]');
|
||||||
|
|
||||||
|
// When JS is supported; show search box. Must be before including the search for it to take effect immediately
|
||||||
|
form.classList.add('phpdocumentor-search--enabled');
|
||||||
|
});
|
||||||
|
|
||||||
|
window.addEventListener('load', function () {
|
||||||
|
Search.init();
|
||||||
|
});
|
||||||
279
docs/api/js/searchIndex.js
Normal file
279
docs/api/js/searchIndex.js
Normal file
@ -0,0 +1,279 @@
|
|||||||
|
Search.appendIndex(
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"fqsen": "\\App\\Controllers\\AuthController",
|
||||||
|
"name": "AuthController",
|
||||||
|
"summary": "Zust\u00E4ndig\u0020f\u00FCr\u0020alles\u0020rund\u0020um\u0020den\u0020Login\u003A\n\u002D\u0020Login\u002DFormular\u0020anzeigen\n\u002D\u0020Login\u002DDaten\u0020verarbeiten\u0020\u0028Authentifizierung\u0020gegen\u0020LDAP\/AD\u0029\n\u002D\u0020Logout\u0020durchf\u00FChren",
|
||||||
|
"url": "classes/App-Controllers-AuthController.html"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Controllers\\AuthController\u003A\u003A__construct\u0028\u0029",
|
||||||
|
"name": "__construct",
|
||||||
|
"summary": "\u00DCbergibt\u0020die\u0020Konfiguration\u0020an\u0020den\u0020Controller\u0020und\u0020initialisiert\u0020den\u0020LDAP\u002DAuthentifizierungsservice.",
|
||||||
|
"url": "classes/App-Controllers-AuthController.html#method___construct"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Controllers\\AuthController\u003A\u003AshowLoginForm\u0028\u0029",
|
||||||
|
"name": "showLoginForm",
|
||||||
|
"summary": "Zeigt\u0020das\u0020Login\u002DFormular\u0020an.",
|
||||||
|
"url": "classes/App-Controllers-AuthController.html#method_showLoginForm"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Controllers\\AuthController\u003A\u003AprocessLogin\u0028\u0029",
|
||||||
|
"name": "processLogin",
|
||||||
|
"summary": "Verarbeitet\u0020das\u0020Login\u002DFormular\u003A\n\u002D\u0020Liest\u0020Benutzername\u0020und\u0020Passwort\u0020aus\u0020\u0024_POST\n\u002D\u0020Ruft\u0020den\u0020LdapAuthService\u0020zur\u0020Authentifizierung\u0020auf\n\u002D\u0020Liefert\u0020bei\u0020Erfolg\u0020ein\u0020Redirect\u002DResult\u0020zum\u0020Dashboard\n\u002D\u0020Liefert\u0020bei\u0020Fehlern\u0020ein\u0020View\u002DResult\u0020f\u00FCr\u0020das\u0020Login\u002DFormular\u0020mit\u0020Fehlermeldung",
|
||||||
|
"url": "classes/App-Controllers-AuthController.html#method_processLogin"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Controllers\\AuthController\u003A\u003Alogout\u0028\u0029",
|
||||||
|
"name": "logout",
|
||||||
|
"summary": "Meldet\u0020den\u0020aktuell\u0020eingeloggten\u0020Benutzer\u0020ab,\u0020indem\u0020der\u0020entsprechende\u0020Session\u002DEintrag\u0020entfernt\u0020wird,\nund\u0020liefert\u0020anschlie\u00DFend\u0020ein\u0020Redirect\u002DResult\u0020zur\u00FCck\u0020auf\u0020die\u0020Login\u002DSeite.",
|
||||||
|
"url": "classes/App-Controllers-AuthController.html#method_logout"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Controllers\\AuthController\u003A\u003A\u0024config",
|
||||||
|
"name": "config",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Controllers-AuthController.html#property_config"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Controllers\\AuthController\u003A\u003A\u0024ldapAuthService",
|
||||||
|
"name": "ldapAuthService",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Controllers-AuthController.html#property_ldapAuthService"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Controllers\\AuthController\u003A\u003A\u0024logger",
|
||||||
|
"name": "logger",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Controllers-AuthController.html#property_logger"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Controllers\\DashboardController",
|
||||||
|
"name": "DashboardController",
|
||||||
|
"summary": "Controller\u0020f\u00FCr\u0020das\u0020Dashboard.",
|
||||||
|
"url": "classes/App-Controllers-DashboardController.html"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Controllers\\DashboardController\u003A\u003A__construct\u0028\u0029",
|
||||||
|
"name": "__construct",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Controllers-DashboardController.html#method___construct"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Controllers\\DashboardController\u003A\u003Ashow\u0028\u0029",
|
||||||
|
"name": "show",
|
||||||
|
"summary": "Zeigt\u0020das\u0020Dashboard\u0020an.",
|
||||||
|
"url": "classes/App-Controllers-DashboardController.html#method_show"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Controllers\\DashboardController\u003A\u003A\u0024config",
|
||||||
|
"name": "config",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Controllers-DashboardController.html#property_config"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Controllers\\DashboardController\u003A\u003A\u0024snmpService",
|
||||||
|
"name": "snmpService",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Controllers-DashboardController.html#property_snmpService"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Controllers\\UserManagementController",
|
||||||
|
"name": "UserManagementController",
|
||||||
|
"summary": "Controller\u0020f\u00FCr\u0020die\u0020Benutzer\u002D\u0020und\u0020Gruppenanzeige.",
|
||||||
|
"url": "classes/App-Controllers-UserManagementController.html"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Controllers\\UserManagementController\u003A\u003A__construct\u0028\u0029",
|
||||||
|
"name": "__construct",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Controllers-UserManagementController.html#method___construct"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Controllers\\UserManagementController\u003A\u003Ashow\u0028\u0029",
|
||||||
|
"name": "show",
|
||||||
|
"summary": "Zeigt\u0020Benutzer\u002D\u0020und\u0020Gruppenliste\u0020an.",
|
||||||
|
"url": "classes/App-Controllers-UserManagementController.html#method_show"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Controllers\\UserManagementController\u003A\u003A\u0024config",
|
||||||
|
"name": "config",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Controllers-UserManagementController.html#property_config"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Controllers\\UserManagementController\u003A\u003A\u0024directoryService",
|
||||||
|
"name": "directoryService",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Controllers-UserManagementController.html#property_directoryService"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Controllers\\UserManagementController\u003A\u003A\u0024logger",
|
||||||
|
"name": "logger",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Controllers-UserManagementController.html#property_logger"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Ldap\\LdapAuthService",
|
||||||
|
"name": "LdapAuthService",
|
||||||
|
"summary": "Service\u0020zur\u0020Authentifizierung\u0020von\u0020Benutzern\u0020gegen\u0020ein\u0020Active\u0020Directory\u0020per\u0020LDAP\/LDAPS.",
|
||||||
|
"url": "classes/App-Services-Ldap-LdapAuthService.html"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Ldap\\LdapAuthService\u003A\u003A__construct\u0028\u0029",
|
||||||
|
"name": "__construct",
|
||||||
|
"summary": "Erwartet\u0020den\u0020Teilbereich\u0020\u0022ldap\u0022\u0020aus\u0020der\u0020allgemeinen\u0020Konfiguration\u0020\u0028config.php\u0029.",
|
||||||
|
"url": "classes/App-Services-Ldap-LdapAuthService.html#method___construct"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Ldap\\LdapAuthService\u003A\u003Aauthenticate\u0028\u0029",
|
||||||
|
"name": "authenticate",
|
||||||
|
"summary": "F\u00FChrt\u0020die\u0020eigentliche\u0020LDAP\/AD\u002DAuthentifizierung\u0020durch.",
|
||||||
|
"url": "classes/App-Services-Ldap-LdapAuthService.html#method_authenticate"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Ldap\\LdapAuthService\u003A\u003A\u0024config",
|
||||||
|
"name": "config",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Services-Ldap-LdapAuthService.html#property_config"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Ldap\\LdapAuthService\u003A\u003A\u0024connectionHelper",
|
||||||
|
"name": "connectionHelper",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Services-Ldap-LdapAuthService.html#property_connectionHelper"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Ldap\\LdapConnectionHelper",
|
||||||
|
"name": "LdapConnectionHelper",
|
||||||
|
"summary": "Hilfsklasse\u0020zum\u0020Aufbau\u0020einer\u0020LDAP\/LDAPS\u002DVerbindung.",
|
||||||
|
"url": "classes/App-Services-Ldap-LdapConnectionHelper.html"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Ldap\\LdapConnectionHelper\u003A\u003A__construct\u0028\u0029",
|
||||||
|
"name": "__construct",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Services-Ldap-LdapConnectionHelper.html#method___construct"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Ldap\\LdapConnectionHelper\u003A\u003AcreateConnection\u0028\u0029",
|
||||||
|
"name": "createConnection",
|
||||||
|
"summary": "Erstellt\u0020eine\u0020LDAP\u002DVerbindung\u0020mit\u0020gesetzten\u0020Optionen\u0020\u0028Protokollversion,\u0020Timeout\u0029,\naber\u0020ohne\u0020Bind.\u0020Den\u0020Bind\u0020f\u00FChren\u0020die\u0020aufrufenden\u0020Services\u0020durch.",
|
||||||
|
"url": "classes/App-Services-Ldap-LdapConnectionHelper.html#method_createConnection"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Ldap\\LdapConnectionHelper\u003A\u003A\u0024config",
|
||||||
|
"name": "config",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Services-Ldap-LdapConnectionHelper.html#property_config"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Ldap\\LdapDirectoryService",
|
||||||
|
"name": "LdapDirectoryService",
|
||||||
|
"summary": "Service\u0020zum\u0020Lesen\u0020von\u0020Objekten\u0020aus\u0020dem\u0020Active\u0020Directory.",
|
||||||
|
"url": "classes/App-Services-Ldap-LdapDirectoryService.html"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Ldap\\LdapDirectoryService\u003A\u003A__construct\u0028\u0029",
|
||||||
|
"name": "__construct",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Services-Ldap-LdapDirectoryService.html#method___construct"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Ldap\\LdapDirectoryService\u003A\u003Aconnect\u0028\u0029",
|
||||||
|
"name": "connect",
|
||||||
|
"summary": "Stellt\u0020eine\u0020LDAP\u002DVerbindung\u0020her\u0020und\u0020bindet\u0020sich\u0020mit\u0020dem\u0020technischen\u0020Konto.",
|
||||||
|
"url": "classes/App-Services-Ldap-LdapDirectoryService.html#method_connect"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Ldap\\LdapDirectoryService\u003A\u003AgetUsers\u0028\u0029",
|
||||||
|
"name": "getUsers",
|
||||||
|
"summary": "Liefert\u0020eine\u0020Liste\u0020von\u0020Benutzern\u0020aus\u0020dem\u0020AD.",
|
||||||
|
"url": "classes/App-Services-Ldap-LdapDirectoryService.html#method_getUsers"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Ldap\\LdapDirectoryService\u003A\u003AgetGroups\u0028\u0029",
|
||||||
|
"name": "getGroups",
|
||||||
|
"summary": "Liefert\u0020eine\u0020Liste\u0020von\u0020Gruppen\u0020aus\u0020dem\u0020AD.",
|
||||||
|
"url": "classes/App-Services-Ldap-LdapDirectoryService.html#method_getGroups"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Ldap\\LdapDirectoryService\u003A\u003A\u0024config",
|
||||||
|
"name": "config",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Services-Ldap-LdapDirectoryService.html#property_config"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Ldap\\LdapDirectoryService\u003A\u003A\u0024connectionHelper",
|
||||||
|
"name": "connectionHelper",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Services-Ldap-LdapDirectoryService.html#property_connectionHelper"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Logging\\LoggingService",
|
||||||
|
"name": "LoggingService",
|
||||||
|
"summary": "Einfacher\u0020File\u002DLogger\u0020f\u00FCr\u0020die\u0020AdminTool\u002DAnwendung.",
|
||||||
|
"url": "classes/App-Services-Logging-LoggingService.html"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Logging\\LoggingService\u003A\u003A__construct\u0028\u0029",
|
||||||
|
"name": "__construct",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Services-Logging-LoggingService.html#method___construct"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Logging\\LoggingService\u003A\u003AensureLogDirectoryExists\u0028\u0029",
|
||||||
|
"name": "ensureLogDirectoryExists",
|
||||||
|
"summary": "Stellt\u0020sicher,\u0020dass\u0020das\u0020Log\u002DVerzeichnis\u0020existiert.",
|
||||||
|
"url": "classes/App-Services-Logging-LoggingService.html#method_ensureLogDirectoryExists"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Logging\\LoggingService\u003A\u003Alog\u0028\u0029",
|
||||||
|
"name": "log",
|
||||||
|
"summary": "Allgemeiner\u0020Log\u002DEintrag.",
|
||||||
|
"url": "classes/App-Services-Logging-LoggingService.html#method_log"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Logging\\LoggingService\u003A\u003AlogException\u0028\u0029",
|
||||||
|
"name": "logException",
|
||||||
|
"summary": "Komfortmethode,\u0020um\u0020Exceptions\u0020strukturiert\u0020zu\u0020loggen.",
|
||||||
|
"url": "classes/App-Services-Logging-LoggingService.html#method_logException"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Logging\\LoggingService\u003A\u003ALEVEL_MAP",
|
||||||
|
"name": "LEVEL_MAP",
|
||||||
|
"summary": "Zuordnung\u0020der\u0020Log\u002DLevel\u0020zu\u0020numerischen\u0020Werten\u0020zur\u0020Filterung.",
|
||||||
|
"url": "classes/App-Services-Logging-LoggingService.html#constant_LEVEL_MAP"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Logging\\LoggingService\u003A\u003A\u0024logDir",
|
||||||
|
"name": "logDir",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Services-Logging-LoggingService.html#property_logDir"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Logging\\LoggingService\u003A\u003A\u0024logFile",
|
||||||
|
"name": "logFile",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Services-Logging-LoggingService.html#property_logFile"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Logging\\LoggingService\u003A\u003A\u0024minLevel",
|
||||||
|
"name": "minLevel",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Services-Logging-LoggingService.html#property_minLevel"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Snmp\\SnmpServerStatusService",
|
||||||
|
"name": "SnmpServerStatusService",
|
||||||
|
"summary": "Service\u0020zur\u0020Ermittlung\u0020des\u0020Serverstatus\u0020per\u0020SNMP.",
|
||||||
|
"url": "classes/App-Services-Snmp-SnmpServerStatusService.html"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Snmp\\SnmpServerStatusService\u003A\u003A__construct\u0028\u0029",
|
||||||
|
"name": "__construct",
|
||||||
|
"summary": "Erwartet\u0020den\u0020Teilbereich\u0020\u0022snmp\u0022\u0020aus\u0020der\u0020allgemeinen\u0020Konfiguration\u0020\u0028config.php\u0029.",
|
||||||
|
"url": "classes/App-Services-Snmp-SnmpServerStatusService.html#method___construct"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Snmp\\SnmpServerStatusService\u003A\u003AgetServerStatus\u0028\u0029",
|
||||||
|
"name": "getServerStatus",
|
||||||
|
"summary": "Liefert\u0020den\u0020aktuellen\u0020Serverstatus\u0020zur\u00FCck.",
|
||||||
|
"url": "classes/App-Services-Snmp-SnmpServerStatusService.html#method_getServerStatus"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Snmp\\SnmpServerStatusService\u003A\u003A\u0024config",
|
||||||
|
"name": "config",
|
||||||
|
"summary": "",
|
||||||
|
"url": "classes/App-Services-Snmp-SnmpServerStatusService.html#property_config"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\",
|
||||||
|
"name": "\\",
|
||||||
|
"summary": "",
|
||||||
|
"url": "namespaces/default.html"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Controllers",
|
||||||
|
"name": "Controllers",
|
||||||
|
"summary": "",
|
||||||
|
"url": "namespaces/app-controllers.html"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App",
|
||||||
|
"name": "App",
|
||||||
|
"summary": "",
|
||||||
|
"url": "namespaces/app.html"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Ldap",
|
||||||
|
"name": "Ldap",
|
||||||
|
"summary": "",
|
||||||
|
"url": "namespaces/app-services-ldap.html"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services",
|
||||||
|
"name": "Services",
|
||||||
|
"summary": "",
|
||||||
|
"url": "namespaces/app-services.html"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Logging",
|
||||||
|
"name": "Logging",
|
||||||
|
"summary": "",
|
||||||
|
"url": "namespaces/app-services-logging.html"
|
||||||
|
}, {
|
||||||
|
"fqsen": "\\App\\Services\\Snmp",
|
||||||
|
"name": "Snmp",
|
||||||
|
"summary": "",
|
||||||
|
"url": "namespaces/app-services-snmp.html"
|
||||||
|
} ]
|
||||||
|
);
|
||||||
34
docs/api/js/template.js
Normal file
34
docs/api/js/template.js
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
(function(){
|
||||||
|
window.addEventListener('load', () => {
|
||||||
|
const el = document.querySelector('.phpdocumentor-on-this-page__content')
|
||||||
|
if (!el) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const observer = new IntersectionObserver(
|
||||||
|
([e]) => {
|
||||||
|
e.target.classList.toggle("-stuck", e.intersectionRatio < 1);
|
||||||
|
},
|
||||||
|
{threshold: [1]}
|
||||||
|
);
|
||||||
|
|
||||||
|
observer.observe(el);
|
||||||
|
})
|
||||||
|
})();
|
||||||
|
function openSvg(svg) {
|
||||||
|
// convert to a valid XML source
|
||||||
|
const as_text = new XMLSerializer().serializeToString(svg);
|
||||||
|
// store in a Blob
|
||||||
|
const blob = new Blob([as_text], { type: "image/svg+xml" });
|
||||||
|
// create an URI pointing to that blob
|
||||||
|
const url = URL.createObjectURL(blob);
|
||||||
|
const win = open(url);
|
||||||
|
// so the Garbage Collector can collect the blob
|
||||||
|
win.onload = (evt) => URL.revokeObjectURL(url);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
var svgs = document.querySelectorAll(".phpdocumentor-uml-diagram svg");
|
||||||
|
for( var i=0,il = svgs.length; i< il; i ++ ) {
|
||||||
|
svgs[i].onclick = (evt) => openSvg(evt.target);
|
||||||
|
}
|
||||||
274
docs/api/namespaces/app-controllers.html
Normal file
274
docs/api/namespaces/app-controllers.html
Normal file
@ -0,0 +1,274 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="-active">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app.html">App</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -namespace">
|
||||||
|
<h2 class="phpdocumentor-content__title">Controllers</h2>
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="namespaces/app-controllers.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-classes">
|
||||||
|
Classes
|
||||||
|
<a href="namespaces/app-controllers.html#toc-classes" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Controllers-AuthController.html"><abbr title="\App\Controllers\AuthController">AuthController</abbr></a></dt><dd>Zuständig für alles rund um den Login:
|
||||||
|
- Login-Formular anzeigen
|
||||||
|
- Login-Daten verarbeiten (Authentifizierung gegen LDAP/AD)
|
||||||
|
- Logout durchführen</dd> <dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Controllers-DashboardController.html"><abbr title="\App\Controllers\DashboardController">DashboardController</abbr></a></dt><dd>Controller für das Dashboard.</dd> <dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Controllers-UserManagementController.html"><abbr title="\App\Controllers\UserManagementController">UserManagementController</abbr></a></dt><dd>Controller für die Benutzer- und Gruppenanzeige.</dd> </dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li><a href="namespaces/app-controllers.html#toc-classes">Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="namespaces/app-controllers.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
272
docs/api/namespaces/app-services-ldap.html
Normal file
272
docs/api/namespaces/app-services-ldap.html
Normal file
@ -0,0 +1,272 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app.html">App</a></li>
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app-services.html">Services</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -namespace">
|
||||||
|
<h2 class="phpdocumentor-content__title">Ldap</h2>
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="namespaces/app-services-ldap.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-classes">
|
||||||
|
Classes
|
||||||
|
<a href="namespaces/app-services-ldap.html#toc-classes" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Services-Ldap-LdapAuthService.html"><abbr title="\App\Services\Ldap\LdapAuthService">LdapAuthService</abbr></a></dt><dd>Service zur Authentifizierung von Benutzern gegen ein Active Directory per LDAP/LDAPS.</dd> <dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Services-Ldap-LdapConnectionHelper.html"><abbr title="\App\Services\Ldap\LdapConnectionHelper">LdapConnectionHelper</abbr></a></dt><dd>Hilfsklasse zum Aufbau einer LDAP/LDAPS-Verbindung.</dd> <dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Services-Ldap-LdapDirectoryService.html"><abbr title="\App\Services\Ldap\LdapDirectoryService">LdapDirectoryService</abbr></a></dt><dd>Service zum Lesen von Objekten aus dem Active Directory.</dd> </dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li><a href="namespaces/app-services-ldap.html#toc-classes">Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="namespaces/app-services-ldap.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
272
docs/api/namespaces/app-services-logging.html
Normal file
272
docs/api/namespaces/app-services-logging.html
Normal file
@ -0,0 +1,272 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app.html">App</a></li>
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app-services.html">Services</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -namespace">
|
||||||
|
<h2 class="phpdocumentor-content__title">Logging</h2>
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="namespaces/app-services-logging.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-classes">
|
||||||
|
Classes
|
||||||
|
<a href="namespaces/app-services-logging.html#toc-classes" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Services-Logging-LoggingService.html"><abbr title="\App\Services\Logging\LoggingService">LoggingService</abbr></a></dt><dd>Einfacher File-Logger für die AdminTool-Anwendung.</dd> </dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li><a href="namespaces/app-services-logging.html#toc-classes">Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="namespaces/app-services-logging.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
272
docs/api/namespaces/app-services-snmp.html
Normal file
272
docs/api/namespaces/app-services-snmp.html
Normal file
@ -0,0 +1,272 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app.html">App</a></li>
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app-services.html">Services</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -namespace">
|
||||||
|
<h2 class="phpdocumentor-content__title">Snmp</h2>
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="namespaces/app-services-snmp.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-classes">
|
||||||
|
Classes
|
||||||
|
<a href="namespaces/app-services-snmp.html#toc-classes" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Services-Snmp-SnmpServerStatusService.html"><abbr title="\App\Services\Snmp\SnmpServerStatusService">SnmpServerStatusService</abbr></a></dt><dd>Service zur Ermittlung des Serverstatus per SNMP.</dd> </dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li><a href="namespaces/app-services-snmp.html#toc-classes">Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="namespaces/app-services-snmp.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
273
docs/api/namespaces/app-services.html
Normal file
273
docs/api/namespaces/app-services.html
Normal file
@ -0,0 +1,273 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="-active">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li class="phpdocumentor-breadcrumb"><a href="namespaces/app.html">App</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -namespace">
|
||||||
|
<h2 class="phpdocumentor-content__title">Services</h2>
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="namespaces/app-services.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="namespaces">
|
||||||
|
Namespaces
|
||||||
|
<a href="namespaces/app-services.html#namespaces" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -namespace"><a href="namespaces/app-services-ldap.html"><abbr title="\App\Services\Ldap">Ldap</abbr></a></dt>
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -namespace"><a href="namespaces/app-services-logging.html"><abbr title="\App\Services\Logging">Logging</abbr></a></dt>
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -namespace"><a href="namespaces/app-services-snmp.html"><abbr title="\App\Services\Snmp">Snmp</abbr></a></dt>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="namespaces/app-services.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
271
docs/api/namespaces/app.html
Normal file
271
docs/api/namespaces/app.html
Normal file
@ -0,0 +1,271 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="-active">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -namespace">
|
||||||
|
<h2 class="phpdocumentor-content__title">App</h2>
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="namespaces/app.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="namespaces">
|
||||||
|
Namespaces
|
||||||
|
<a href="namespaces/app.html#namespaces" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -namespace"><a href="namespaces/app-controllers.html"><abbr title="\App\Controllers">Controllers</abbr></a></dt>
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -namespace"><a href="namespaces/app-services.html"><abbr title="\App\Services">Services</abbr></a></dt>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="namespaces/app.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
270
docs/api/namespaces/default.html
Normal file
270
docs/api/namespaces/default.html
Normal file
@ -0,0 +1,270 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -namespace">
|
||||||
|
<h2 class="phpdocumentor-content__title">API Documentation</h2>
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="namespaces/default.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="namespaces">
|
||||||
|
Namespaces
|
||||||
|
<a href="namespaces/default.html#namespaces" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -namespace"><a href="namespaces/app.html"><abbr title="\App">App</abbr></a></dt>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="namespaces/default.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
273
docs/api/packages/Application.html
Normal file
273
docs/api/packages/Application.html
Normal file
@ -0,0 +1,273 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="-active">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -package">
|
||||||
|
<h2 class="phpdocumentor-content__title">Application</h2>
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="packages/Application.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h4 id="toc-classes">
|
||||||
|
Classes
|
||||||
|
<a href="packages/Application.html#toc-classes" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Controllers-AuthController.html"><abbr title="\App\Controllers\AuthController">AuthController</abbr></a></dt><dd>Zuständig für alles rund um den Login:
|
||||||
|
- Login-Formular anzeigen
|
||||||
|
- Login-Daten verarbeiten (Authentifizierung gegen LDAP/AD)
|
||||||
|
- Logout durchführen</dd> <dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Controllers-DashboardController.html"><abbr title="\App\Controllers\DashboardController">DashboardController</abbr></a></dt><dd>Controller für das Dashboard.</dd> <dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Controllers-UserManagementController.html"><abbr title="\App\Controllers\UserManagementController">UserManagementController</abbr></a></dt><dd>Controller für die Benutzer- und Gruppenanzeige.</dd> <dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Services-Ldap-LdapAuthService.html"><abbr title="\App\Services\Ldap\LdapAuthService">LdapAuthService</abbr></a></dt><dd>Service zur Authentifizierung von Benutzern gegen ein Active Directory per LDAP/LDAPS.</dd> <dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Services-Ldap-LdapConnectionHelper.html"><abbr title="\App\Services\Ldap\LdapConnectionHelper">LdapConnectionHelper</abbr></a></dt><dd>Hilfsklasse zum Aufbau einer LDAP/LDAPS-Verbindung.</dd> <dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Services-Ldap-LdapDirectoryService.html"><abbr title="\App\Services\Ldap\LdapDirectoryService">LdapDirectoryService</abbr></a></dt><dd>Service zum Lesen von Objekten aus dem Active Directory.</dd> <dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Services-Logging-LoggingService.html"><abbr title="\App\Services\Logging\LoggingService">LoggingService</abbr></a></dt><dd>Einfacher File-Logger für die AdminTool-Anwendung.</dd> <dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/App-Services-Snmp-SnmpServerStatusService.html"><abbr title="\App\Services\Snmp\SnmpServerStatusService">SnmpServerStatusService</abbr></a></dt><dd>Service zur Ermittlung des Serverstatus per SNMP.</dd> </dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li><a href="packages/Application.html#toc-classes">Classes</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="packages/Application.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
270
docs/api/packages/default.html
Normal file
270
docs/api/packages/default.html
Normal file
@ -0,0 +1,270 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Documentation</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<article class="phpdocumentor-element -package">
|
||||||
|
<h2 class="phpdocumentor-content__title">API Documentation</h2>
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="toc">
|
||||||
|
Table of Contents
|
||||||
|
<a href="packages/default.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
<h4 id="packages">
|
||||||
|
Packages
|
||||||
|
<a href="packages/default.html#packages" class="headerlink"><i class="fas fa-link"></i></a>
|
||||||
|
|
||||||
|
</h4>
|
||||||
|
<dl class="phpdocumentor-table-of-contents">
|
||||||
|
<dt class="phpdocumentor-table-of-contents__entry -package"><a href="packages/Application.html"><abbr title="\Application">Application</abbr></a></dt>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-modal" id="source-view">
|
||||||
|
<div class="phpdocumentor-modal-bg" data-exit-button></div>
|
||||||
|
<div class="phpdocumentor-modal-container">
|
||||||
|
<div class="phpdocumentor-modal-content">
|
||||||
|
<pre style="max-height: 500px; overflow-y: scroll" data-src="" class="language-php line-numbers linkable-line-numbers"></pre>
|
||||||
|
</div>
|
||||||
|
<button data-exit-button class="phpdocumentor-modal__close">×</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
function loadExternalCodeSnippet(el, url, line) {
|
||||||
|
Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
|
||||||
|
const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
|
||||||
|
const language = 'php';
|
||||||
|
|
||||||
|
const code = document.createElement('code');
|
||||||
|
code.className = 'language-' + language;
|
||||||
|
pre.textContent = '';
|
||||||
|
pre.setAttribute('data-line', line)
|
||||||
|
code.textContent = 'Loading…';
|
||||||
|
pre.appendChild(code);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
xhr.open('GET', src, true);
|
||||||
|
|
||||||
|
xhr.onreadystatechange = function () {
|
||||||
|
if (xhr.readyState !== 4) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status < 400 && xhr.responseText) {
|
||||||
|
code.textContent = xhr.responseText;
|
||||||
|
Prism.highlightElement(code);
|
||||||
|
d=document.getElementsByClassName("line-numbers");
|
||||||
|
d[0].scrollTop = d[0].children[1].offsetTop;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status === 404) {
|
||||||
|
code.textContent = '✖ Error: File could not be found';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr.status >= 400) {
|
||||||
|
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.textContent = '✖ Error: An unknown error occurred';
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const modalButtons = document.querySelectorAll("[data-modal]");
|
||||||
|
const openedAsLocalFile = window.location.protocol === 'file:';
|
||||||
|
if (modalButtons.length > 0 && openedAsLocalFile) {
|
||||||
|
console.warn(
|
||||||
|
'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
|
||||||
|
'browsers block XHR requests when a page is opened this way'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
modalButtons.forEach(function (trigger) {
|
||||||
|
if (openedAsLocalFile) {
|
||||||
|
trigger.setAttribute("hidden", "hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
trigger.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const modal = document.getElementById(trigger.dataset.modal);
|
||||||
|
if (!modal) {
|
||||||
|
console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
modal.classList.add("phpdocumentor-modal__open");
|
||||||
|
|
||||||
|
loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
|
||||||
|
const exits = modal.querySelectorAll("[data-exit-button]");
|
||||||
|
exits.forEach(function (exit) {
|
||||||
|
exit.addEventListener("click", function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
modal.classList.remove("phpdocumentor-modal__open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-on-this-page__sidebar">
|
||||||
|
|
||||||
|
<section class="phpdocumentor-on-this-page__content">
|
||||||
|
<strong class="phpdocumentor-on-this-page__title">On this page</strong>
|
||||||
|
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
<li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
|
||||||
|
<li>
|
||||||
|
<ul class="phpdocumentor-list -clean">
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="packages/default.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
136
docs/api/reports/deprecated.html
Normal file
136
docs/api/reports/deprecated.html
Normal file
@ -0,0 +1,136 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title> Documentation » Deprecated elements
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li><a href="">Home</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-row">
|
||||||
|
<h2 class="phpdocumentor-content__title">Deprecated</h2>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-admonition phpdocumentor-admonition--success">
|
||||||
|
No deprecated elements have been found in this project.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="reports/deprecated.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
135
docs/api/reports/errors.html
Normal file
135
docs/api/reports/errors.html
Normal file
@ -0,0 +1,135 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title> Documentation » Compilation errors
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li><a href="">Home</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-row">
|
||||||
|
<h2 class="phpdocumentor-content__title">Errors</h2>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="phpdocumentor-admonition phpdocumentor-admonition--success">No errors have been found in this project.</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="reports/errors.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
158
docs/api/reports/markers.html
Normal file
158
docs/api/reports/markers.html
Normal file
@ -0,0 +1,158 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title> Documentation » Markers
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<base href="../">
|
||||||
|
<link rel="icon" href="images/favicon.ico"/>
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/base.css">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/template.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
||||||
|
<script src="js/template.js"></script>
|
||||||
|
<script src="js/search.js"></script>
|
||||||
|
<script defer src="js/searchIndex.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="top">
|
||||||
|
<header class="phpdocumentor-header phpdocumentor-section">
|
||||||
|
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
||||||
|
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
||||||
|
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</label>
|
||||||
|
<section data-search-form class="phpdocumentor-search">
|
||||||
|
<label>
|
||||||
|
<span class="visually-hidden">Search for</span>
|
||||||
|
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
||||||
|
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
||||||
|
</svg>
|
||||||
|
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="phpdocumentor-topnav">
|
||||||
|
<ul class="phpdocumentor-topnav__menu">
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="phpdocumentor">
|
||||||
|
<div class="phpdocumentor-section">
|
||||||
|
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
||||||
|
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
||||||
|
Menu
|
||||||
|
</label>
|
||||||
|
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
|
||||||
|
<section class="phpdocumentor-sidebar__category -namespaces">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="namespaces/app.html" class="">App</a>
|
||||||
|
</h4>
|
||||||
|
<ul class="phpdocumentor-list">
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-controllers.html" class="">Controllers</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="namespaces/app-services.html" class="">Services</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="phpdocumentor-sidebar__category -packages">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
||||||
|
<h4 class="phpdocumentor-sidebar__root-namespace">
|
||||||
|
<a href="packages/Application.html" class="">Application</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -reports">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="phpdocumentor-sidebar__category -indices">
|
||||||
|
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
||||||
|
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
||||||
|
</section>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-column -nine phpdocumentor-content">
|
||||||
|
<section>
|
||||||
|
<ul class="phpdocumentor-breadcrumbs">
|
||||||
|
<li><a href="">Home</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="phpdocumentor-row">
|
||||||
|
<h2 class="phpdocumentor-content__title">Markers</h2>
|
||||||
|
|
||||||
|
<h3>Table of Contents</h3>
|
||||||
|
<table class="phpdocumentor-table_of_contents">
|
||||||
|
<tr>
|
||||||
|
<td class="phpdocumentor-cell"><a href="reports/markers.html#app/Services/Snmp/SnmpServerStatusService.php">app/Services/Snmp/SnmpServerStatusService.php</a></td>
|
||||||
|
<td class="phpdocumentor-cell">1</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<a id="app/Services/Snmp/SnmpServerStatusService.php"></a>
|
||||||
|
<h3><abbr title="app/Services/Snmp/SnmpServerStatusService.php">SnmpServerStatusService.php</abbr></h3>
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th class="phpdocumentor-heading">Type</th>
|
||||||
|
<th class="phpdocumentor-heading">Line</th>
|
||||||
|
<th class="phpdocumentor-heading">Description</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td class="phpdocumentor-cell">TODO</td>
|
||||||
|
<td class="phpdocumentor-cell">218</td>
|
||||||
|
<td class="phpdocumentor-cell">OS dynamisch per SNMP abfragen (OID 1.3.6.1.2.1.1.1.0)
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
||||||
|
<section class="phpdocumentor-search-results__dialog">
|
||||||
|
<header class="phpdocumentor-search-results__header">
|
||||||
|
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
||||||
|
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
||||||
|
</header>
|
||||||
|
<section class="phpdocumentor-search-results__body">
|
||||||
|
<ul class="phpdocumentor-search-results__entries"></ul>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<a href="reports/markers.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
cssVars({});
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -6,16 +6,12 @@ declare(strict_types=1);
|
|||||||
*
|
*
|
||||||
* Nur authentifizierte Admins dürfen auf diesen Endpunkt zugreifen.
|
* Nur authentifizierte Admins dürfen auf diesen Endpunkt zugreifen.
|
||||||
* Wird alle 5s vom JavaScript im Dashboard aufgerufen.
|
* Wird alle 5s vom JavaScript im Dashboard aufgerufen.
|
||||||
*
|
|
||||||
* Sicherheit: Session-Validierung + Admin-Rollenprüfung.
|
|
||||||
* Performance: Datei-basiertes Caching (10 Sekunden) um SNMP-Last zu reduzieren.
|
|
||||||
* Logging: Alle Fehler und wichtigen Daten werden in `public/logs/snmp_api.log` geschrieben.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
// === Authentifizierung + Autorisierung ===
|
// === Authentifizierung + Autorisierung ===
|
||||||
$sessionKeyUser = 'admin_user'; // aus config
|
$sessionKeyUser = 'admin_user';
|
||||||
if (!isset($_SESSION[$sessionKeyUser])) {
|
if (!isset($_SESSION[$sessionKeyUser])) {
|
||||||
http_response_code(401);
|
http_response_code(401);
|
||||||
header('Content-Type: application/json; charset=utf-8');
|
header('Content-Type: application/json; charset=utf-8');
|
||||||
@ -40,19 +36,15 @@ function log_msg(string $msg): void {
|
|||||||
|
|
||||||
function rotate_log_if_needed(): void {
|
function rotate_log_if_needed(): void {
|
||||||
global $logFile;
|
global $logFile;
|
||||||
$maxSize = 500 * 1024; // 500 KB (anpassbar)
|
$maxSize = 500 * 1024; // 500 KB
|
||||||
|
|
||||||
if (file_exists($logFile) && filesize($logFile) > $maxSize) {
|
if (file_exists($logFile) && filesize($logFile) > $maxSize) {
|
||||||
$backupFile = $logFile . '.old';
|
@rename($logFile, $logFile . '.old');
|
||||||
@rename($logFile, $backupFile);
|
log_msg('=== Log rotiert ===');
|
||||||
log_msg('=== Log rotiert (alte Datei: .old) ===');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$configPath = __DIR__ . '/../../config/config.php';
|
$configPath = __DIR__ . '/../../config/config.php';
|
||||||
if (!is_readable($configPath)) {
|
if (!is_readable($configPath)) {
|
||||||
log_msg('ERROR: config.php nicht lesbar');
|
|
||||||
echo json_encode(['error' => 'config_not_found']);
|
echo json_encode(['error' => 'config_not_found']);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@ -62,10 +54,7 @@ $snmp = $config['snmp'] ?? [];
|
|||||||
|
|
||||||
rotate_log_if_needed();
|
rotate_log_if_needed();
|
||||||
|
|
||||||
log_msg('--- SNMP-Abfrage gestartet ---');
|
|
||||||
|
|
||||||
// === Cache-Logik (Datei) ===
|
// === Cache-Logik (Datei) ===
|
||||||
// Cache-Datei wird nach 10 Sekunden als ungültig betrachtet
|
|
||||||
$cacheDir = sys_get_temp_dir();
|
$cacheDir = sys_get_temp_dir();
|
||||||
$cacheFile = $cacheDir . DIRECTORY_SEPARATOR . 'snmp_status_cache.json';
|
$cacheFile = $cacheDir . DIRECTORY_SEPARATOR . 'snmp_status_cache.json';
|
||||||
$cacheTTL = 10; // Sekunden
|
$cacheTTL = 10; // Sekunden
|
||||||
@ -73,53 +62,54 @@ $cacheTTL = 10; // Sekunden
|
|||||||
if (file_exists($cacheFile)) {
|
if (file_exists($cacheFile)) {
|
||||||
$cacheAge = time() - filemtime($cacheFile);
|
$cacheAge = time() - filemtime($cacheFile);
|
||||||
if ($cacheAge < $cacheTTL) {
|
if ($cacheAge < $cacheTTL) {
|
||||||
// Cache ist noch gültig
|
|
||||||
$cached = file_get_contents($cacheFile);
|
$cached = file_get_contents($cacheFile);
|
||||||
if ($cached !== false) {
|
if ($cached !== false) {
|
||||||
log_msg("Cache HIT (Alter: {$cacheAge}s)");
|
|
||||||
echo $cached;
|
echo $cached;
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
log_msg("Cache abgelaufen (Alter: {$cacheAge}s), neue Abfrage");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// === SNMP Setup ===
|
||||||
$host = $snmp['host'] ?? '127.0.0.1';
|
$host = $snmp['host'] ?? '127.0.0.1';
|
||||||
$community = $snmp['community'] ?? 'public';
|
$community = $snmp['community'] ?? 'public';
|
||||||
$timeout = (int)($snmp['timeout'] ?? 2);
|
|
||||||
|
// Timeout von Sekunden in Mikrosekunden umrechnen (wichtig für PHP snmp Funktionen)
|
||||||
|
$timeoutSec = (int)($snmp['timeout'] ?? 2);
|
||||||
|
$timeoutMicro = $timeoutSec * 1_000_000;
|
||||||
$retries = (int)($snmp['retries'] ?? 1);
|
$retries = (int)($snmp['retries'] ?? 1);
|
||||||
|
|
||||||
log_msg("SNMP-Host: $host, Community: $community, Timeout: {$timeout}s");
|
|
||||||
|
|
||||||
if (!function_exists('snmpget')) {
|
if (!function_exists('snmpget')) {
|
||||||
log_msg('ERROR: SNMP-Erweiterung nicht installiert');
|
|
||||||
echo json_encode(['error' => 'snmp_extension_missing']);
|
echo json_encode(['error' => 'snmp_extension_missing']);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
snmp_set_quick_print(true);
|
// Grundeinstellungen
|
||||||
snmp_set_oid_output_format(SNMP_OID_OUTPUT_NUMERIC);
|
snmp_set_oid_output_format(SNMP_OID_OUTPUT_NUMERIC);
|
||||||
|
|
||||||
// Hilfsfunktion: sichere snmpget-Rückgabe (numeric oder null)
|
// Hilfsfunktion: sichere snmpget-Rückgabe
|
||||||
function sget(string $host, string $community, string $oid, int $timeout, int $retries)
|
function sget(string $host, string $community, string $oid, int $timeout, int $retries) {
|
||||||
{
|
|
||||||
$v = @snmpget($host, $community, $oid, $timeout, $retries);
|
$v = @snmpget($host, $community, $oid, $timeout, $retries);
|
||||||
if ($v === false || $v === null) return null;
|
if ($v === false || $v === null) return null;
|
||||||
return is_string($v) ? trim($v) : $v;
|
return is_string($v) ? trim($v) : $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
// System-Uptime (TimeTicks)
|
// --- 1. Uptime ---
|
||||||
|
// Wir deaktivieren quick_print, damit wir das Format "Timeticks: (12345) 1 day..." erhalten.
|
||||||
|
// Nur so können wir die echten Ticks in der Klammer zuverlässig parsen.
|
||||||
|
snmp_set_quick_print(false);
|
||||||
|
|
||||||
$uptimeOid = $snmp['oids']['uptime'] ?? '1.3.6.1.2.1.1.3.0';
|
$uptimeOid = $snmp['oids']['uptime'] ?? '1.3.6.1.2.1.1.3.0';
|
||||||
$upticksRaw = @sget($host, $community, $uptimeOid, $timeout, $retries);
|
$uptimeRaw = @sget($host, $community, $uptimeOid, $timeoutMicro, $retries);
|
||||||
$upticks = $upticksRaw !== null ? (int)preg_replace('/[^0-9]/', '', (string)$upticksRaw) : null;
|
$upticks = null;
|
||||||
|
|
||||||
log_msg("Uptime OID: $uptimeOid, Raw: " . ($upticksRaw ?? 'null'));
|
// Regex sucht nach Zahl in Klammern: (12345678)
|
||||||
|
if ($uptimeRaw && preg_match('/\((.*?)\)/', (string)$uptimeRaw, $matches)) {
|
||||||
|
$upticks = (int)$matches[1];
|
||||||
|
}
|
||||||
|
|
||||||
function format_uptime(?int $ticks): ?string
|
function format_uptime(?int $ticks): ?string {
|
||||||
{
|
|
||||||
if ($ticks === null) return null;
|
if ($ticks === null) return null;
|
||||||
// ticks sind Hundertstel-Sekunden
|
|
||||||
$seconds = (int)floor($ticks / 100);
|
$seconds = (int)floor($ticks / 100);
|
||||||
$days = intdiv($seconds, 86400);
|
$days = intdiv($seconds, 86400);
|
||||||
$seconds -= $days * 86400;
|
$seconds -= $days * 86400;
|
||||||
@ -127,166 +117,131 @@ function format_uptime(?int $ticks): ?string
|
|||||||
$seconds -= $hours * 3600;
|
$seconds -= $hours * 3600;
|
||||||
$minutes = intdiv($seconds, 60);
|
$minutes = intdiv($seconds, 60);
|
||||||
$seconds -= $minutes * 60;
|
$seconds -= $minutes * 60;
|
||||||
|
|
||||||
$parts = [];
|
$parts = [];
|
||||||
if ($days) $parts[] = $days . ' Tage';
|
if ($days) $parts[] = $days . ' Tage';
|
||||||
if ($hours) $parts[] = $hours . ' Std';
|
$parts[] = sprintf('%02d:%02d:%02d', $hours, $minutes, $seconds);
|
||||||
if ($minutes) $parts[] = $minutes . ' Min';
|
return implode(', ', $parts);
|
||||||
$parts[] = $seconds . ' Sek';
|
|
||||||
return implode(' ', $parts);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$uptimeStr = format_uptime($upticks);
|
$uptimeStr = format_uptime($upticks);
|
||||||
|
|
||||||
// CPU: ersten Eintrag aus der CPU-Tabelle lesen
|
// Für den Rest aktivieren wir quick_print wieder, um "saubere" Werte zu bekommen
|
||||||
|
snmp_set_quick_print(true);
|
||||||
|
|
||||||
|
|
||||||
|
// --- 2. CPU (Walk über alle Kerne) ---
|
||||||
$cpuTable = $snmp['oids']['cpu_table'] ?? '1.3.6.1.2.1.25.3.3.1.2';
|
$cpuTable = $snmp['oids']['cpu_table'] ?? '1.3.6.1.2.1.25.3.3.1.2';
|
||||||
$cpuOid = $cpuTable . '.1';
|
$cpuValues = @snmpwalk($host, $community, $cpuTable, $timeoutMicro, $retries);
|
||||||
$cpuRaw = @sget($host, $community, $cpuOid, $timeout, $retries);
|
|
||||||
$cpu = $cpuRaw !== null ? (float)preg_replace('/[^0-9.]/', '', (string)$cpuRaw) : null;
|
|
||||||
|
|
||||||
log_msg("CPU OID: $cpuOid, Raw: " . ($cpuRaw ?? 'null') . ", Parsed: " . ($cpu ?? 'null'));
|
$cpuUsage = 0;
|
||||||
|
if (is_array($cpuValues) && count($cpuValues) > 0) {
|
||||||
|
$totalLoad = 0;
|
||||||
|
$coreCount = 0;
|
||||||
|
foreach ($cpuValues as $val) {
|
||||||
|
$v = (int)filter_var($val, FILTER_SANITIZE_NUMBER_INT);
|
||||||
|
$totalLoad += $v;
|
||||||
|
$coreCount++;
|
||||||
|
}
|
||||||
|
if ($coreCount > 0) {
|
||||||
|
$cpuUsage = round($totalLoad / $coreCount, 2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Storage-Tabellen: Versuche, C: (Windows) oder Root ("/") zu finden
|
|
||||||
|
// --- 3. Storage (Disk & RAM) ---
|
||||||
$descrOid = $snmp['oids']['storage_descr'] ?? '1.3.6.1.2.1.25.2.3.1.3';
|
$descrOid = $snmp['oids']['storage_descr'] ?? '1.3.6.1.2.1.25.2.3.1.3';
|
||||||
$unitsOid = $snmp['oids']['storage_units'] ?? '1.3.6.1.2.1.25.2.3.1.4';
|
$unitsOid = $snmp['oids']['storage_units'] ?? '1.3.6.1.2.1.25.2.3.1.4';
|
||||||
$sizeOid = $snmp['oids']['storage_size'] ?? '1.3.6.1.2.1.25.2.3.1.5';
|
$sizeOid = $snmp['oids']['storage_size'] ?? '1.3.6.1.2.1.25.2.3.1.5';
|
||||||
$usedOid = $snmp['oids']['storage_used'] ?? '1.3.6.1.2.1.25.2.3.1.6';
|
$usedOid = $snmp['oids']['storage_used'] ?? '1.3.6.1.2.1.25.2.3.1.6';
|
||||||
|
|
||||||
log_msg("Starte Storage-Walk - Descr: $descrOid, Units: $unitsOid, Size: $sizeOid, Used: $usedOid");
|
$descrWalk = @snmprealwalk($host, $community, $descrOid, $timeoutMicro, $retries);
|
||||||
|
$unitsWalk = @snmprealwalk($host, $community, $unitsOid, $timeoutMicro, $retries);
|
||||||
$descrWalk = @snmprealwalk($host, $community, $descrOid);
|
$sizeWalk = @snmprealwalk($host, $community, $sizeOid, $timeoutMicro, $retries);
|
||||||
$unitsWalk = @snmprealwalk($host, $community, $unitsOid);
|
$usedWalk = @snmprealwalk($host, $community, $usedOid, $timeoutMicro, $retries);
|
||||||
$sizeWalk = @snmprealwalk($host, $community, $sizeOid);
|
|
||||||
$usedWalk = @snmprealwalk($host, $community, $usedOid);
|
|
||||||
|
|
||||||
if (!is_array($descrWalk)) {
|
|
||||||
log_msg('WARNING: snmprealwalk für Beschreibungen fehlgeschlagen');
|
|
||||||
$descrWalk = [];
|
|
||||||
}
|
|
||||||
if (!is_array($unitsWalk)) {
|
|
||||||
log_msg('WARNING: snmprealwalk für Units fehlgeschlagen');
|
|
||||||
$unitsWalk = [];
|
|
||||||
}
|
|
||||||
if (!is_array($sizeWalk)) {
|
|
||||||
log_msg('WARNING: snmprealwalk für Größe fehlgeschlagen');
|
|
||||||
$sizeWalk = [];
|
|
||||||
}
|
|
||||||
if (!is_array($usedWalk)) {
|
|
||||||
log_msg('WARNING: snmprealwalk für Used fehlgeschlagen');
|
|
||||||
$usedWalk = [];
|
|
||||||
}
|
|
||||||
|
|
||||||
log_msg('Storage-Einträge gefunden: ' . count($descrWalk));
|
|
||||||
|
|
||||||
$diskPercent = null;
|
$diskPercent = null;
|
||||||
$memPercent = null;
|
$memPercent = null;
|
||||||
$storageEntries = [];
|
$storageEntries = []; // Fallback-Liste
|
||||||
|
|
||||||
// Sammeln aller Storage-Einträge für Debug-Logging
|
if (is_array($descrWalk)) {
|
||||||
if (is_array($descrWalk) && count($descrWalk) > 0) {
|
|
||||||
foreach ($descrWalk as $descrOidFull => $descrRaw) {
|
foreach ($descrWalk as $descrOidFull => $descrRaw) {
|
||||||
// Index extrahieren
|
|
||||||
if (!preg_match('/\.(\d+)$/', $descrOidFull, $m)) continue;
|
if (!preg_match('/\.(\d+)$/', $descrOidFull, $m)) continue;
|
||||||
$idx = $m[1];
|
$idx = $m[1];
|
||||||
$descr = trim((string)$descrRaw, ' "');
|
|
||||||
|
|
||||||
// Suche nach passenden Einträgen in anderen Walks mit gleichem Index
|
// Bereinigen
|
||||||
$units = null;
|
$descr = trim(str_ireplace('STRING:', '', (string)$descrRaw), ' "');
|
||||||
$size = null;
|
|
||||||
$used = null;
|
|
||||||
|
|
||||||
foreach ($unitsWalk as $oid => $val) {
|
// Helper zum Finden der Werte
|
||||||
if (preg_match('/\.(\d+)$/', $oid, $m2) && $m2[1] === $idx) {
|
$findVal = function($walkArr, $idx) {
|
||||||
$units = (int)preg_replace('/[^0-9]/', '', (string)$val);
|
if(!is_array($walkArr)) return null;
|
||||||
break;
|
foreach ($walkArr as $oid => $val) {
|
||||||
|
if (preg_match('/\.(\d+)$/', $oid, $m2) && $m2[1] === $idx) {
|
||||||
|
return (int)filter_var($val, FILTER_SANITIZE_NUMBER_INT);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
return null;
|
||||||
|
};
|
||||||
|
|
||||||
foreach ($sizeWalk as $oid => $val) {
|
$units = $findVal($unitsWalk, $idx);
|
||||||
if (preg_match('/\.(\d+)$/', $oid, $m2) && $m2[1] === $idx) {
|
$size = $findVal($sizeWalk, $idx);
|
||||||
$size = (int)preg_replace('/[^0-9]/', '', (string)$val);
|
$used = $findVal($usedWalk, $idx);
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($usedWalk as $oid => $val) {
|
if ($size === null || $units === null || $used === null || $size === 0) continue;
|
||||||
if (preg_match('/\.(\d+)$/', $oid, $m2) && $m2[1] === $idx) {
|
|
||||||
$used = (int)preg_replace('/[^0-9]/', '', (string)$val);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
log_msg("Storage[$idx]: Desc='$descr', Size=$size, Used=$used, Units=$units");
|
|
||||||
|
|
||||||
if ($size === null || $units === null || $used === null || $size === 0 || $units === 0) {
|
|
||||||
log_msg("Storage[$idx]: SKIP (fehlende oder ungültige Daten)");
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$totalBytes = $size * $units;
|
$totalBytes = $size * $units;
|
||||||
$usedBytes = $used * $units;
|
$usedBytes = $used * $units;
|
||||||
$percent = $totalBytes > 0 ? ($usedBytes / $totalBytes) * 100 : 0;
|
$percent = ($totalBytes > 0) ? ($usedBytes / $totalBytes) * 100 : 0;
|
||||||
|
|
||||||
$storageEntries[] = [
|
$storageEntries[] = ['idx' => $idx, 'descr' => $descr, 'percent' => $percent, 'totalGB' => $totalBytes / (1024**3)];
|
||||||
'idx' => $idx,
|
|
||||||
'descr' => $descr,
|
|
||||||
'percent' => $percent,
|
|
||||||
'totalGB' => $totalBytes / (1024 ** 3),
|
|
||||||
'usedGB' => $usedBytes / (1024 ** 3),
|
|
||||||
];
|
|
||||||
|
|
||||||
// Heuristik 1: Suche nach C: oder Root
|
|
||||||
$lower = strtolower($descr);
|
$lower = strtolower($descr);
|
||||||
if ($diskPercent === null && (strpos($lower, 'c:') !== false || strpos($lower, 'c:\\') !== false || strpos($lower, 'c:/') !== false || $lower === '/' || strpos($lower, 'root') !== false)) {
|
|
||||||
$diskPercent = $percent;
|
// DISK C: oder Root
|
||||||
log_msg("Datenträger erkannt (Index $idx): $descr → $percent%");
|
if ($diskPercent === null) {
|
||||||
|
if (str_starts_with($lower, 'c:') || str_starts_with($lower, 'c:\\') || $lower === '/' || str_contains($lower, 'root')) {
|
||||||
|
$diskPercent = $percent;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Heuristik 2: Suche nach Physical Memory
|
// RAM
|
||||||
if ($memPercent === null && ((strpos($lower, 'physical') !== false && strpos($lower, 'memory') !== false) || strpos($lower, 'ram') !== false || strpos($lower, 'physical memory') !== false)) {
|
if ($memPercent === null) {
|
||||||
$memPercent = $percent;
|
if (str_contains($lower, 'physical memory') || str_contains($lower, 'ram')) {
|
||||||
log_msg("Speicher erkannt (Index $idx): $descr → $percent%");
|
$memPercent = $percent;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fallback 1: Wenn keine Disk gefunden, nimm den größten Storage-Eintrag > 1GB
|
// Fallback Disk: Größter Speicher > 5GB
|
||||||
if ($diskPercent === null && count($storageEntries) > 0) {
|
if ($diskPercent === null && count($storageEntries) > 0) {
|
||||||
log_msg('Fallback: Suche Disk (größter Eintrag > 1GB)');
|
|
||||||
usort($storageEntries, fn($a, $b) => $b['totalGB'] <=> $a['totalGB']);
|
usort($storageEntries, fn($a, $b) => $b['totalGB'] <=> $a['totalGB']);
|
||||||
foreach ($storageEntries as $entry) {
|
foreach($storageEntries as $entry) {
|
||||||
if ($entry['totalGB'] > 1) {
|
if ($entry['totalGB'] > 5) {
|
||||||
$diskPercent = $entry['percent'];
|
$diskPercent = $entry['percent'];
|
||||||
log_msg('Fallback Disk gefunden (Index ' . $entry['idx'] . '): ' . $entry['descr'] . ' → ' . $diskPercent . '%');
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fallback 2: Wenn kein Speicher gefunden, nimm den kleinsten Eintrag (meist Physical Memory)
|
// --- 4. Hostname ---
|
||||||
if ($memPercent === null && count($storageEntries) > 0) {
|
$hostnameOid = '1.3.6.1.2.1.1.5.0';
|
||||||
log_msg('Fallback: Suche Memory (kleinster Eintrag)');
|
$hostname = @sget($host, $community, $hostnameOid, $timeoutMicro, $retries);
|
||||||
usort($storageEntries, fn($a, $b) => $a['totalGB'] <=> $b['totalGB']);
|
if($hostname) $hostname = trim(str_ireplace('STRING:', '', $hostname), ' "');
|
||||||
$memPercent = $storageEntries[0]['percent'];
|
|
||||||
log_msg('Fallback Memory gefunden (Index ' . $storageEntries[0]['idx'] . '): ' . $storageEntries[0]['descr'] . ' → ' . $memPercent . '%');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
// --- Ergebnis ---
|
||||||
$result = [
|
$result = [
|
||||||
'hostname' => @sget($host, $community, '1.3.6.1.2.1.1.5.0', $timeout, $retries) ?? null,
|
'hostname' => $hostname ?? 'n/a',
|
||||||
'uptime' => $uptimeStr,
|
'uptime' => $uptimeStr,
|
||||||
'upticks' => $upticks,
|
'upticks' => $upticks,
|
||||||
'cpu_usage' => $cpu,
|
'cpu_usage' => $cpuUsage,
|
||||||
'memory_usage' => $memPercent !== null ? round($memPercent, 2) : null,
|
'memory_usage' => $memPercent !== null ? round($memPercent, 2) : 0,
|
||||||
'disk_usage_c' => $diskPercent !== null ? round($diskPercent, 2) : null,
|
'disk_usage_c' => $diskPercent !== null ? round($diskPercent, 2) : 0,
|
||||||
'last_update' => time(),
|
'last_update' => time(),
|
||||||
];
|
];
|
||||||
|
|
||||||
log_msg('RESULT: CPU=' . $result['cpu_usage'] . ', Mem=' . $result['memory_usage'] . ', Disk=' . $result['disk_usage_c']);
|
log_msg('RESULT: UptimeRaw='.($uptimeRaw??'null').' CPU=' . $result['cpu_usage'] . ' Mem=' . $result['memory_usage']);
|
||||||
|
|
||||||
$resultJson = json_encode($result);
|
$resultJson = json_encode($result);
|
||||||
|
|
||||||
// === Cache schreiben ===
|
|
||||||
@file_put_contents($cacheFile, $resultJson);
|
@file_put_contents($cacheFile, $resultJson);
|
||||||
log_msg('Cache geschrieben, TTL: ' . $cacheTTL . 's');
|
|
||||||
|
|
||||||
echo $resultJson;
|
echo $resultJson;
|
||||||
exit;
|
|
||||||
|
|||||||
101
public/index.php
101
public/index.php
@ -19,10 +19,15 @@ declare(strict_types=1);
|
|||||||
* - Alle neuen Routen sollten über den Switch-Block am Ende ergänzt werden.
|
* - Alle neuen Routen sollten über den Switch-Block am Ende ergänzt werden.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// Eine neue Session wird gestartet und die entsprechende Variable ($_SESSION) angelegt
|
||||||
// Eine neue Session wird gestartet und die entsprechende Variable ($_SESSION) angelegt oder eine bestehende wird fortgesetzt.
|
// oder eine bestehende wird fortgesetzt.
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
|
// PHP-Fehler erfassen, aber veraltete Hinweise (E_DEPRECATED) ignorieren,
|
||||||
|
// weil sie sonst im Zusammenspiel mit IIS/fastcgi zu 500-Fehlern führen können.
|
||||||
|
error_reporting(E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED);
|
||||||
|
ini_set('display_errors', '0');
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Registriert eine Autoload-Funktion für Klassen mit dem Namespace-Präfix "App\".
|
* Registriert eine Autoload-Funktion für Klassen mit dem Namespace-Präfix "App\".
|
||||||
* Statt jede Klasse manuell über "require pfad_zur_klasse.php" einzubinden,
|
* Statt jede Klasse manuell über "require pfad_zur_klasse.php" einzubinden,
|
||||||
@ -31,7 +36,7 @@ session_start();
|
|||||||
*/
|
*/
|
||||||
spl_autoload_register(
|
spl_autoload_register(
|
||||||
static function (string $class): void {
|
static function (string $class): void {
|
||||||
$prefix = 'App\\';
|
$prefix = 'App\\';
|
||||||
$baseDir = __DIR__ . '/../app/';
|
$baseDir = __DIR__ . '/../app/';
|
||||||
|
|
||||||
$len = strlen($prefix);
|
$len = strlen($prefix);
|
||||||
@ -40,7 +45,7 @@ spl_autoload_register(
|
|||||||
}
|
}
|
||||||
|
|
||||||
$relativeClass = substr($class, $len);
|
$relativeClass = substr($class, $len);
|
||||||
$file = $baseDir . str_replace('\\', DIRECTORY_SEPARATOR, $relativeClass) . '.php';
|
$file = $baseDir . str_replace('\\', DIRECTORY_SEPARATOR, $relativeClass) . '.php';
|
||||||
|
|
||||||
if (file_exists($file) === true) {
|
if (file_exists($file) === true) {
|
||||||
require $file;
|
require $file;
|
||||||
@ -48,11 +53,11 @@ spl_autoload_register(
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Layout-Funktion einbinden (renderLayout)
|
||||||
require __DIR__ . '/views/layout.php';
|
require __DIR__ . '/views/layout.php';
|
||||||
|
|
||||||
// Die Konfigurationsdatei liefert ein assoziatives Array mit den Teilbereichen
|
// Die Konfigurationsdatei liefert ein assoziatives Array mit den Teilbereichen
|
||||||
// "ldap", "snmp" und "security" (u. a. Session-Keys, Timeout-Einstellungen, OIDs).
|
// "ldap", "snmp", "security" und "logging" (u. a. Session-Keys, Timeout-Einstellungen, OIDs, Log-Pfade).
|
||||||
|
|
||||||
$configPath = __DIR__ . '/../config/config.php';
|
$configPath = __DIR__ . '/../config/config.php';
|
||||||
if (file_exists($configPath) === false) {
|
if (file_exists($configPath) === false) {
|
||||||
// Fail fast: ohne Konfiguration macht die App keinen Sinn
|
// Fail fast: ohne Konfiguration macht die App keinen Sinn
|
||||||
@ -68,6 +73,61 @@ $config = require $configPath;
|
|||||||
use App\Controllers\AuthController;
|
use App\Controllers\AuthController;
|
||||||
use App\Controllers\DashboardController;
|
use App\Controllers\DashboardController;
|
||||||
use App\Controllers\UserManagementController;
|
use App\Controllers\UserManagementController;
|
||||||
|
use App\Services\Logging\LoggingService;
|
||||||
|
|
||||||
|
// Globalen Logger initialisieren, damit auch Fehler außerhalb der Controller
|
||||||
|
// (z. B. in index.php selbst) sauber protokolliert werden.
|
||||||
|
$globalLogger = new LoggingService($config['logging'] ?? []);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Globale Fehlerbehandlung:
|
||||||
|
* - PHP-Fehler (Warnings, Notices, ...) werden in den Logger geschrieben.
|
||||||
|
* - Unbehandelte Exceptions werden ebenfalls geloggt und führen zu einer generischen 500er-Meldung.
|
||||||
|
*/
|
||||||
|
set_error_handler(
|
||||||
|
static function (
|
||||||
|
int $severity,
|
||||||
|
string $message,
|
||||||
|
string $file = '',
|
||||||
|
int $line = 0
|
||||||
|
) use ($globalLogger): bool {
|
||||||
|
// Fehler nur loggen, wenn sie durch error_reporting() nicht unterdrückt sind.
|
||||||
|
if ((error_reporting() & $severity) === 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
$globalLogger->log(
|
||||||
|
'error',
|
||||||
|
'PHP-Fehler: ' . $message,
|
||||||
|
[
|
||||||
|
'severity' => $severity,
|
||||||
|
'file' => $file,
|
||||||
|
'line' => $line,
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
|
// false zurückgeben = PHP darf seinen Standard-Handler zusätzlich verwenden
|
||||||
|
// (der Browser sieht wegen display_errors=0 trotzdem nichts).
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
set_exception_handler(
|
||||||
|
static function (\Throwable $exception) use ($globalLogger): void {
|
||||||
|
$globalLogger->logException(
|
||||||
|
'Unbehandelte Exception in der Anwendung.',
|
||||||
|
$exception,
|
||||||
|
[
|
||||||
|
'request_uri' => $_SERVER['REQUEST_URI'] ?? null,
|
||||||
|
'route' => $_GET['route'] ?? null,
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
|
http_response_code(500);
|
||||||
|
echo 'Es ist ein unerwarteter Fehler aufgetreten. '
|
||||||
|
. 'Bitte versuchen Sie es später erneut oder wenden Sie sich an den Administrator.';
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hilfsfunktion: Prüft, ob ein Benutzer eingeloggt ist.
|
* Hilfsfunktion: Prüft, ob ein Benutzer eingeloggt ist.
|
||||||
@ -99,20 +159,24 @@ function handleResult(?array $result): void
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Redirect-Result
|
||||||
if (isset($result['redirect']) === true) {
|
if (isset($result['redirect']) === true) {
|
||||||
header('Location: ' . (string)$result['redirect']);
|
header('Location: ' . (string)$result['redirect']);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// View-Result
|
||||||
$contentView = (string)($result['view'] ?? '');
|
$contentView = (string)($result['view'] ?? '');
|
||||||
$viewData = (array)($result['data'] ?? []);
|
$viewData = (array)($result['data'] ?? []);
|
||||||
|
|
||||||
// Standard: Wir gehen davon aus, dass es KEINE Loginseite ist,
|
// Standard: Wir gehen davon aus, dass es KEINE Loginseite ist,
|
||||||
// außer der Controller sagt explizit etwas anderes.
|
// außer der Controller sagt explizit etwas anderes.
|
||||||
if (!array_key_exists('loginPage', $viewData)) {
|
if (array_key_exists('loginPage', $viewData) === false) {
|
||||||
$viewData['loginPage'] = false;
|
$viewData['loginPage'] = false;
|
||||||
}
|
}
|
||||||
$pageTitle = (string)($result['pageTitle'] ?? '');
|
|
||||||
$activeMenu = $result['activeMenu'] ?? null;
|
$pageTitle = (string)($result['pageTitle'] ?? '');
|
||||||
|
$activeMenu = $result['activeMenu'] ?? null;
|
||||||
|
|
||||||
if ($contentView === '' || file_exists($contentView) === false) {
|
if ($contentView === '' || file_exists($contentView) === false) {
|
||||||
http_response_code(500);
|
http_response_code(500);
|
||||||
@ -121,30 +185,33 @@ function handleResult(?array $result): void
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Hier rufen wir jetzt die Layout-Funktion aus layout.php auf
|
// Hier rufen wir jetzt die Layout-Funktion aus layout.php auf
|
||||||
renderLayout($contentView, $viewData, $pageTitle, is_string($activeMenu) ? $activeMenu : null);
|
renderLayout(
|
||||||
|
$contentView,
|
||||||
|
$viewData,
|
||||||
|
$pageTitle,
|
||||||
|
is_string($activeMenu) ? $activeMenu : null
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Zentrale Controller der Anwendung initialisieren und ihnen die vollständige Konfiguration übergeben.
|
// Zentrale Controller der Anwendung initialisieren und ihnen die vollständige Konfiguration übergeben.
|
||||||
// Die Controller holen sich daraus bei Bedarf ihre spezifischen Teilkonfigurationen (z. B. "ldap" oder "snmp").
|
// Die Controller holen sich daraus bei Bedarf ihre spezifischen Teilkonfigurationen (z. B. "ldap" oder "snmp").
|
||||||
|
// Jeder Controller erzeugt intern seinen eigenen LoggingService aus $config['logging'].
|
||||||
$authController = new AuthController($config);
|
$authController = new AuthController($config);
|
||||||
$dashboardController = new DashboardController($config);
|
$dashboardController = new DashboardController($config);
|
||||||
$userManagementController = new UserManagementController($config);
|
$userManagementController = new UserManagementController($config);
|
||||||
|
|
||||||
// Route aus dem Query-Parameter lesen. Standardroute ist "login",
|
// Route aus dem Query-Parameter lesen. Standardroute ist "login",
|
||||||
// sodass nicht angemeldete Benutzer automatisch auf die Login-Seite geführt werden.
|
// sodass nicht angemeldete Benutzer automatisch auf die Login-Seite geführt werden.
|
||||||
|
|
||||||
$route = $_GET['route'] ?? 'login';
|
$route = $_GET['route'] ?? 'login';
|
||||||
|
|
||||||
// Einfache Router-Logik: Jede Route ruft eine Controller-Methode auf und
|
// Einfache Router-Logik: Jede Route ruft eine Controller-Methode auf und
|
||||||
// übergibt deren View-Result an handleResult(). Neue Seiten werden hier ergänzt.
|
// übergibt deren View-Result an handleResult(). Neue Seiten werden hier ergänzt.
|
||||||
|
|
||||||
switch ($route) {
|
switch ($route) {
|
||||||
case 'login':
|
case 'login':
|
||||||
// Login-Formular anzeigen (ggf. mit Fehlermeldung)
|
// Login-Formular anzeigen (ggf. mit Fehlermeldung)
|
||||||
$result = $authController->showLoginForm();
|
$result = $authController->showLoginForm();
|
||||||
handleResult($result);
|
handleResult($result);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'login.submit':
|
case 'login.submit':
|
||||||
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
|
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
|
||||||
@ -178,5 +245,3 @@ switch ($route) {
|
|||||||
echo 'Route nicht gefunden.';
|
echo 'Route nicht gefunden.';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -153,6 +153,7 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('DOMContentLoaded', function(){
|
document.addEventListener('DOMContentLoaded', function(){
|
||||||
|
const hostnameEl = document.querySelector('.col-xl-3:first-child .h5.mb-0'); // Hostname card (first card)
|
||||||
const diskEl = document.getElementById('disk_usage_text');
|
const diskEl = document.getElementById('disk_usage_text');
|
||||||
const uptimeEl = document.getElementById('uptime_text');
|
const uptimeEl = document.getElementById('uptime_text');
|
||||||
const cpuEl = document.getElementById('cpu_card_value');
|
const cpuEl = document.getElementById('cpu_card_value');
|
||||||
@ -161,6 +162,7 @@ document.addEventListener('DOMContentLoaded', function(){
|
|||||||
|
|
||||||
function updateUI(data){
|
function updateUI(data){
|
||||||
if(!data) return;
|
if(!data) return;
|
||||||
|
if(hostnameEl) hostnameEl.textContent = data.hostname || 'n/a';
|
||||||
if(diskEl) diskEl.textContent = (data.disk_usage_c !== null && data.disk_usage_c !== undefined) ? Math.round(data.disk_usage_c) : 'n/a';
|
if(diskEl) diskEl.textContent = (data.disk_usage_c !== null && data.disk_usage_c !== undefined) ? Math.round(data.disk_usage_c) : 'n/a';
|
||||||
if(uptimeEl) uptimeEl.textContent = data.uptime || 'n/a';
|
if(uptimeEl) uptimeEl.textContent = data.uptime || 'n/a';
|
||||||
if(cpuEl) cpuEl.textContent = (data.cpu_usage !== null && data.cpu_usage !== undefined) ? Math.round(data.cpu_usage) : 0;
|
if(cpuEl) cpuEl.textContent = (data.cpu_usage !== null && data.cpu_usage !== undefined) ? Math.round(data.cpu_usage) : 0;
|
||||||
|
|||||||
@ -31,7 +31,7 @@ declare(strict_types=1);
|
|||||||
<div class="text-center mb-4">
|
<div class="text-center mb-4">
|
||||||
<h1 class="h4 text-gray-900">Willkommen beim AD Admin Tool</h1>
|
<h1 class="h4 text-gray-900">Willkommen beim AD Admin Tool</h1>
|
||||||
<p class="text-muted mb-0">
|
<p class="text-muted mb-0">
|
||||||
Dies ist unser Testserver für den <code>main</code> Branch.
|
Dies ist unser Testserver für den <code>develop</code> Branch.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -44,7 +44,7 @@ declare(strict_types=1);
|
|||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered" id="usersTable" width="100%" cellspacing="0">
|
<table class="table table-bordered" id="usersTable">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><input type="checkbox" name="selectAllUsers"></th>
|
<th><input type="checkbox" name="selectAllUsers"></th>
|
||||||
@ -83,7 +83,7 @@ declare(strict_types=1);
|
|||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered" id="groupsTable" width="100%" cellspacing="0">
|
<table class="table table-bordered" id="groupsTable">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Gruppenname (sAMAccountName)</th>
|
<th>Gruppenname (sAMAccountName)</th>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user