|
MediaWiki master
|
Namespaces | |
| namespace | Event |
| namespace | File |
| namespace | Hook |
Classes | |
| class | Article |
| Legacy class representing an editable page and handling UI for some page actions. More... | |
| class | CacheKeyHelper |
| Helper class for mapping page value objects to a string key. More... | |
| class | CategoryPage |
| Special handling for category description pages. More... | |
| interface | ContentModelChangeFactory |
| Service for changing the content model of wiki pages. More... | |
| class | DeleteLinksJob |
| Job to prune link tables for pages that were deleted. More... | |
| class | DeletePage |
| Backend logic for performing a page delete action. More... | |
| interface | DeletePageFactory |
| Service for page delete actions. More... | |
| class | DeletePageJob |
| interface | ExistingPageRecord |
| Data record representing a page that currently exists as an editable page on a wiki. More... | |
| class | ImageHistoryList |
| Builds the image revision log shown on image pages. More... | |
| class | ImageHistoryPseudoPager |
| class | ImagePage |
| Rendering of file description pages. More... | |
| class | LinkBatch |
| Batch query for page metadata and feed to LinkCache. More... | |
| class | LinkBatchFactory |
| Factory for LinkBatch objects to batch query page metadata. More... | |
| class | LinkCache |
| Page existence and metadata cache. More... | |
| class | MergeHistory |
| Handles the backend logic of merging the histories of two pages. More... | |
| interface | MergeHistoryFactory |
| Service for mergehistory actions. More... | |
| class | MovePage |
| Handles the backend logic of moving a page from one title to another. More... | |
| interface | MovePageFactory |
| Service for page rename actions. More... | |
| interface | Page |
| Interface for type hinting (accepts WikiPage, Article, ImagePage, CategoryPage) More... | |
| class | PageArchive |
| Used to show archived pages and eventually restore them. More... | |
| class | PageAssertionException |
| Exception if a PageIdentity is an invalid argument. More... | |
| class | PageCommandFactory |
| Implementation of various page action services. More... | |
| interface | PageIdentity |
| Interface for objects (potentially) representing an editable wiki page. More... | |
| class | PageIdentityValue |
| Immutable value object representing a page identity. More... | |
| interface | PageLookup |
| Service for looking up information about wiki pages. More... | |
| class | PageProps |
| Gives access to properties of a page. More... | |
| interface | PageRecord |
| Data record representing a page that is (or used to be, or could be) an editable page on a wiki. More... | |
| interface | PageReference |
| Interface for objects (potentially) representing a page that can be viewable and linked to on a wiki. More... | |
| class | PageReferenceValue |
| Immutable value object representing a page reference. More... | |
| class | PageSelectQueryBuilder |
| class | PageStore |
| class | PageStoreFactory |
| class | PageStoreRecord |
| Immutable data record representing an editable page on a wiki. More... | |
| class | ParserOutputAccess |
| Service for getting rendered output of a given page. More... | |
| interface | ProperPageIdentity |
| Interface for a page that is (or could be, or used to be) an editable wiki page. More... | |
| class | ProtectionForm |
| Handles the page protection UI and backend. More... | |
| interface | RedirectLookup |
| Service for resolving a wiki page redirect. More... | |
| class | RedirectStore |
| Service for storing and retrieving page redirect information. More... | |
| class | RollbackPage |
| Backend logic for performing a page rollback action. More... | |
| interface | RollbackPageFactory |
| Service for page rollback actions. More... | |
| class | SitemapGenerator |
| Utility for generating a sitemap. More... | |
| interface | UndeletePageFactory |
| Service for page undelete actions. More... | |
| class | WikiCategoryPage |
| Special handling for representing category pages. More... | |
| class | WikiFilePage |
| Special handling for representing file pages. More... | |
| class | WikiPage |
| Base representation for an editable wiki page. More... | |
| class | WikiPageFactory |
| Service for creating WikiPage objects. More... | |
Variables | |
| trait | LegacyArticleIdAccess |
| Convenience trait for conversion to PageIdentity. | |
| trait MediaWiki::Page\LegacyArticleIdAccess |
Convenience trait for conversion to PageIdentity.
For the cross-wiki aware code, this should be used instead of PageIdentity::getId until Title is dropped. Before transition to PageIdentity, Title could exist for foreign wikis with no indication about it (Title does not have $wikiId). It was very brittle, but it worked. Until Title is deprecated in the codebase, most of the PageIdentity instances passed around are Titles. So for cross-wiki access, stricter domain validation of PageIdentity::getId will break wikis.
Additionally, loose checks on Title regarding whether the page can exist or not have been depended upon in a number of places in the codebase.
This trait is only supposed to be used in cross-wiki aware code, and only exists until code up the stack is guaranteed not to pass Title.
Definition at line 25 of file LegacyArticleIdAccess.php.