SyncStatus
MMO\admin\monitoring · 1 symbole · générée le 30 Nov 2026
SyncStatus
SyncStatus.php:18Whether each site holds what this machine holds: its data, its metrics, its database files, its database server -- as the last data-status read it (admin.php's, DataSync::summary), one file per site in the hub's data (project/sync/{target}.json), for the pages and the root hub to show without reaching any server.
- Espace de noms
MMO\admin\monitoring
Index
| SCHEDULE | the schedule of a hub that never set one: every week, Sunday night | |
| STATUSES | what the statuses say, for the pages: to do nothing, to pull, to push, to merge, to look at | |
| UNCHECKED | a site whose data was never read | |
| UNKNOWN | a site whose data could not be read: its server unreachable, its folder missing... | |
| hub | ||
| all() | ||
| Check($schedule) static | ||
| counts() | ||
| debugName() | ||
| due($now) | ||
| fileName($target) | ||
| get($target) | ||
| getFolder() | ||
| getSchedule() | ||
| getScheduleFilename() | ||
| markRun($at) | Remember that the scheduled reading ran. | |
| next($now) | ||
| Previous($schedule, $now) static | ||
| save($target, $status, $at) | Keep what was read of a site. | |
| schedule() | ||
| setSchedule($schedule) | ||
| __construct($hub) |
Constantes4
SCHEDULE
the schedule of a hub that never set one: every week, Sunday night
STATUSES
what the statuses say, for the pages: to do nothing, to pull, to push, to merge, to look at
UNCHECKED
a site whose data was never read
UNKNOWN
a site whose data could not be read: its server unreachable, its folder missing...
Propriétés1
hub
- Type
- Hub
Méthodes17
all()
SyncStatus.php:59Check($schedule)
staticSyncStatus.php:95| $schedule | array | |
| retourne | array | bool, every: string, day: int, time: string} Schedule::Check |
counts()
SyncStatus.php:66debugName()
SyncStatus.php:32| retourne | string |
due($now)
SyncStatus.php:104- Voir
Schedule::due
fileName($target)
SyncStatus.php:79get($target)
SyncStatus.php:52| $target | string | |
| retourne | array | mixed> what was last read of a site: target, at (null: never), status (UNCHECKED when never), and DataSync::summary |
getFolder()
SyncStatus.php:35| retourne | string | the folder of the sites' statuses |
getSchedule()
SyncStatus.php:92| retourne | array | bool, every: string, day: int, time: string, setAt: ?int, lastRun: ?int} Schedule::get |
getScheduleFilename()
SyncStatus.php:89| retourne | string | the schedule's file |
markRun($at)
SyncStatus.php:101Remember that the scheduled reading ran.
next($now)
SyncStatus.php:107- Voir
Schedule::next
Previous($schedule, $now)
staticSyncStatus.php:110save($target, $status, $at)
SyncStatus.php:44Keep what was read of a site.
schedule()
SyncStatus.php:86setSchedule($schedule)
SyncStatus.php:98- Voir
Schedule::set
__construct($hub)
SyncStatus.php:30| $hub | Hub |