NetworkContext
Corex\Multisite\NetworkContext · interface · Core layer
Provides network identity and deterministic site enumeration (spec FR-001).
Public API
Section titled “Public API”id(): int
Section titled “id(): int”mainSiteId(): int
Section titled “mainSiteId(): int”siteCount(): int
Section titled “siteCount(): int”siteIds(int $limit, int $offset): array
Section titled “siteIds(int $limit, int $offset): array”A limit of zero enumerates the whole network, which is unbounded work on a large one. Callers that can be reached by a page render MUST pass a limit and page with the offset; the unlimited form belongs to CLI and scheduled work only (spec FR-028).