MMOframework
Why AI Playground Libraries Documentation Search Agency
FR EN
Index

InboxStore

MMO\admin\helpers · 1 symbol · generated 27 Oct 2026

class

InboxStore

InboxStore.php:19

The developer layer's store on a server: what is filed from a page goes into an inbox, {folder}/inbox/{board}.json, in a git repository of its own (VersionedFolder) -- apart from the clients' data, and from the release, which brings the board itself. php admin.php developer pull --target=dev (InboxSync) clones it on a development machine, puts its tickets and comments on the board and marks them pulled. The screenshots stay on the server: the repository ignores them.

class MMO\admin\helpers\InboxStore implements MMO\admin\interfaces\iDeveloperStore
Namespace
MMO\admin\helpers
Implements
iDeveloperStore
An entry: `{id, kind: ticket|comment, board, ticket, data, body, author, createdAt, instance, pulled: {at, as, by} | null}` -- `data` a ticket's (without its id), `ticket` the one a comment is on (a board's ticket, or an entry's id).
$store = new InboxStore('/var/www/oviepro/dev/shared/db/developer', 'dev.oviepro.com');

Properties3

folder

readonly
readonly string $folder
Type
string

instance

readonly
readonly string $instance
Type
string

versioned

readonly
readonly MMO\admin\helpers\VersionedFolder $versioned
Type
VersionedFolder

Methods10

add($board, $entry, $author, $message)

InboxStore.php:70
protected function add(string $board, array $entry, array $author, string $message): array
$boardstring
$entryarray
$authorarray
$messagestringthe commit's
returnsarraythe entry

Read($file)

staticInboxStore.php:86
static function Read(string $file): array
$filestring
returnsarraylist<array>} an inbox file, empty when there is none

__construct($folder, $instance, $git)

InboxStore.php:27
function __construct(string $folder, string $instance = '', bool $git = true)
$folderstringthe repository
$instance = ''stringwhat the server is called in what it files (its host)
$git = trueboolwhether each change is committed