exp:notificationevents
Die Benachrichtigungsereignisse auflisten oder die alten entfernen (Probelauf, außer mit --apply).
Skript bin/php/notificationevents.php, Code in kernel/private/classes/commands/notificationevents.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:
./console exp:notificationevents --help
./console exp:notification:events --help
./console exp:notify:events --help
php bin/php/notificationevents.php --helpHilfetext
Was --help ausgibt, so wie der Befehl es schreibt:
Notification events
list the newest events: id, status, type, age, messages waiting
cleanup remove the handled events nothing waits for, and with --older-than the
events (and their messages) older than that
An event has no date of its own; its age is read from what it is about (the published version, the
collaboration item, the time of a time event). Events whose age cannot be told, because the content
is gone, are listed as unknown and removed only with --include-unknown.
cleanup without --apply removes nothing: it counts what it would remove. --dry-run is still
accepted and means the same as no flag; --apply together with --dry-run is a usage error (exit 2).
./console exp:notification:events list --status=pending --limit=20
./console exp:notification:events cleanup --older-than=30d
./console exp:notification:events cleanup --older-than=30d --applyOptionen
| Option | Wert | Hilfe |
|---|---|---|
--status | erforderlich | list, cleanup --older-than: pending oder handled (Standard beide) |
--limit | erforderlich | list: wie viele (Standard 50) |
--older-than | erforderlich | cleanup: 90s, 15m, 12h, 30d, 2w oder ein Datum (2026-09-01) |
--include-unknown | cleanup: auch Ereignisse entfernen, deren Alter sich nicht bestimmen lässt | |
--apply | cleanup: die Ereignisse entfernen (Standard zählt sie und entfernt nichts) | |
--dry-run | cleanup: der Standard, beibehalten für Skripte, die die Option übergeben: zählen, nichts entfernen | |
--json | list: JSON |
Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Siehe auch
Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/notificationevents.php, kernel/private/classes/commands/notificationevents.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.