CronFailureNotificationTargetProbe
in package
implements
NotificationTargetProbeInterface
FinalYes
Notification target probe: a `CRON_ITEM_FAILED` notification points at a `cms_system_cron_failures` row.
The table has no Api entity, hence a dedicated probe instead of EntityNotificationTargetProbe. A successful item deletes its row (raw SQL, outside the ORM), so the notification becomes an orphan and the cleanup detaches it from the target.
Table of Contents
Interfaces
- NotificationTargetProbeInterface
- Tells whether the records admin notifications point to still exist.
Properties
Methods
- __construct() : mixed
- existingIds() : array<int, int>|null
- typeKeysForEntity() : array<int, string>
- A failure row has no Api entity and the ORM never deletes it, so only the cleanup detaches the notification.
Properties
$cronFailureManager read-only
private
CronFailureManager
$cronFailureManager
Methods
__construct()
public
__construct(CronFailureManager $cronFailureManager) : mixed
Parameters
- $cronFailureManager : CronFailureManager
existingIds()
public
existingIds(string $typeKey, array<string|int, mixed> $ids) : array<int, int>|null
Parameters
- $typeKey : string
- $ids : array<string|int, mixed>
-
record ids the notifications of this type point to
Return values
array<int, int>|null —ids that still exist; null = this probe does not own the type
typeKeysForEntity()
A failure row has no Api entity and the ORM never deletes it, so only the cleanup detaches the notification.
public
typeKeysForEntity(object $entity) : array<int, string>
Parameters
- $entity : object