MMOframework
Why AI Playground Libraries Documentation Search Agency
FR EN
Index

JsonNotificationStore

MMO\client\classes · 1 symbol · generated 27 Oct 2026

class

JsonNotificationStore

JsonNotificationStore.php:13

The notifications kept in a folder, one JSON file per recipient ({md5 of the uid}.json, the uid inside), the latest last, at most $max: the oldest read ones go first. Written under a lock and through a temporary file.

class MMO\client\classes\JsonNotificationStore implements MMO\client\interfaces\iNotificationStore
Namespace
MMO\client\classes
Implements
iNotificationStore
$store = new JsonNotificationStore('/var/www/app/db/notifications');$store->add('main/users/42', ['kind' => 'dev.ticket', 'title' => 'New ticket #175', 'url' => 'developer/boards']);

Properties2

folder

readonly
readonly string $folder
Type
string

max

readonly
readonly int $max
Type
int

Methods8