MMOframework
Pourquoi l'IA Playground Bibliothèques Documentation Rechercher Agence
FR EN
Index

InboxSync

MMO\admin\helpers · 1 symbole · générée le 27 Oct 2026

class

InboxSync

InboxSync.php:17

Bring a server's inbox (InboxStore) onto the board of this machine: php admin.php developer pull --target=dev.

class MMO\admin\helpers\InboxSync
Espace de noms
MMO\admin\helpers
1. the server's repository is cloned (`git clone`, over ssh with the project's `deploy.ssh.config`) -- without its screenshots, which it ignores: they stay on the server; 2. each entry not pulled yet becomes a ticket of the board (the next number; `origin` says where it comes from), or a comment on its ticket -- the board's, or the one an entry pulled before became; 3. the entries are marked `pulled: {at, as, by}` and pushed back, so the server knows they are on the board. An entry already on the board (its `origin`) is never added twice, even when the last push failed.
(new InboxSync('ssh://my.oviepro/var/www/oviepro/dev/shared/db/developer', '/home/me/app/boards/acme.json', 'acme'))->run(dryRun: true);

Propriétés6

author

readonly
readonly array $author
Type
array

board

readonly
readonly string $board
Type
string

boardFile

readonly
readonly string $boardFile
Type
string

labels

array $labels = []
Type
array

remote

readonly
readonly string $remote
Type
string

sshConfig

?string $sshConfig = null
Type
null | string

Méthodes3

run($dryRun)

InboxSync.php:36
function run(bool $dryRun = false): array
$dryRun = falseboolonly say what would be done
retournearraylist<array>, comments: list<array>, skipped: list<array>, pushed: bool, dryRun: bool}

__construct($remote, $boardFile, $board, $author)

InboxSync.php:30
function __construct( string $remote, string $boardFile, string $board, array $author = ['login' => 'mmo.admin', 'name' => 'mmo.admin'] )
$remotestringthe server's repository: an ssh url, or a path
$boardFilestringthe board of this machine
$boardstringits name, the inbox's file
$author = ['login' => 'mmo.admin', 'name' => 'mmo.admin']array