DocIndex
MMO\doc · 1 symbol · generated 30 Sep 2026
DocIndex
DocIndex.php:22Everything the documentation can point a reader at, in one list: what the index page lists and what the search box searches (DocPageController::routeIndex, SearchController).
- Namespace
MMO\doc
Index
| KIND_ABSTRACT | ||
| KIND_EXCEPTION | ||
| KIND_PAGE | ||
| SECTIONS | ||
| WEIGHTS | ||
| entries static | ||
| Guides($library, $folder) static | The hand-written pages of a documentation folder: every markdown file that is not a generated page (a generated page has its .doc.json model next to it, and its symbols are in the index already). | |
| IsOn($page, $context) static | ||
| KindOf($entry) static | The kind an entry is listed under: its own, except for an exception class and an abstract one, which a reader looks for separately -- an abstract exception is an exception first. | |
| LibraryOf($page) static | ||
| Load($reload) static | ||
| Namespaces($entries) static | The php namespaces, which the php generator does not index on their own: one entry for each namespace holding something documented, pointing at the page of its functions when it has some, at the fo… | |
| Search($q, $limit, $context) static | Search for anything by (sub)string: what is documented on the page the reader is on comes first, then everything else. | |
| Sections() static |
Constants5
KIND_ABSTRACT
KIND_EXCEPTION
KIND_PAGE
SECTIONS
WEIGHTS
Properties1
entries
staticMethods8
Guides($library, $folder)
staticDocIndex.php:226The hand-written pages of a documentation folder: every markdown file that is not a generated page (a generated page has its .doc.json model next to it, and its symbols are in the index already).
IsOn($page, $context)
staticDocIndex.php:182KindOf($entry)
staticDocIndex.php:203The kind an entry is listed under: its own, except for an exception class and an abstract one, which a reader looks for separately -- an abstract exception is an exception first. The php generator flags both (exception, abstract); an index written before it did is read by reflection when the class is loaded, and by the framework's naming conventions otherwise (eNotFound, aController).
LibraryOf($page)
staticDocIndex.php:189Load($reload)
staticDocIndex.php:71Namespaces($entries)
staticDocIndex.php:254The php namespaces, which the php generator does not index on their own: one entry for each namespace holding something documented, pointing at the page of its functions when it has some, at the folder of its classes otherwise.
Search($q, $limit, $context)
staticDocIndex.php:114Search for anything by (sub)string: what is documented on the page the reader is on comes first, then everything else. Inside each of those, an exact match beats a prefix, which beats a substring -- and on equal terms a class beats a method, which beats a guide.
| $q | string | |
| $limit = 20 | int | |
| $context = null | null | string | the page the reader is on, as a page path (mmo.core/php/server/Route.md), or a folder of pages (mmo.core/php/server) -- Documentor::getPagePath |
| returns | array | {name, kind, namespace, shortName, url, summary, language, library, here} each |