MMOframework
Why AI Playground Libraries Developers Agency
FR EN
Build a project live
Index

TypeOverrideStatus

MMO\admin\monitoring · 1 symbol · generated 30 Nov 2026

class

TypeOverrideStatus

TypeOverrideStatus.php:17

The section types each site keeps of its own -- saved on its server with mmo.editor, they replace the project's and no longer follow its releases -- as the last run section-types read them (admin.php's, SectionTypeOverrides), one file per site in the hub's data (project/types/{target}.json), for the pages and the root hub to show without reaching any server.

class MMO\admin\monitoring\TypeOverrideStatus
Namespace
MMO\admin\monitoring
$types = new TypeOverrideStatus($hub); foreach ($types->byType() as $type => $sites) {echo $type, ': ', implode(', ', array_keys($sites)), "\n";}

Index

STATUSESwhat the statuses say: none saved, some saved, saves none of its own, not read, never read
UNCHECKEDa site never read
UNKNOWNa site that could not be read
hub
all()
byType()
counts()
debugName()
fileName($target)
get($target)
getFolder()
save($target, $read, $at)Keep what was read of a site.
__construct($hub)

Constants3

STATUSES

what the statuses say: none saved, some saved, saves none of its own, not read, never read

const STATUSES = ['clean', 'overrides', 'none', 'unknown', 'unchecked']

UNCHECKED

a site never read

const UNCHECKED = 'unchecked'

UNKNOWN

a site that could not be read

const UNKNOWN = 'unknown'

Properties1

hub

protected MMO\admin\monitoring\Hub $hub
Type
Hub

Methods9

byType()

TypeOverrideStatus.php:63
function byType(): array
returnsarrayarray<string, array{new: bool, replaces: ?string, files: array<string, string>, mtime: int}>> type => site => its saved type: which sites keep their own version of each type

counts()

TypeOverrideStatus.php:73
function counts(): array
returnsarrayint|null> how many sites are in each of STATUSES, types how many types are kept somewhere, checkedAt the oldest reading (null: one never was)