

Insert an entry for this page into the redirect table if the content is a redirect. Insert a new empty page record for this article. Insert a new null revision for this page. InsertNullProtectionRevision (string $revCommentMsg, array $limit, array $expiry, bool $cascade, string $reason, UserIdentity $user) More.Ĭheck if this page is something we're going to be showing some sort of sensible content for. The display name for the site this content come from. GetUserText ( $audience=RevisionRecord::FOR_PUBLIC, Authority $performer=null) GetUser ( $audience=RevisionRecord::FOR_PUBLIC, Authority $performer=null) Get the source URL for the content on this page, typically the canonical URL, but may be a remote link if the content comes from another site. Get the Title object or URL to use for a redirect. If this page is a redirect, get its target. Get a ParserOutput for the given ParserOptions and revision ID.

GetParserOutput (? ParserOptions $parserOptions=null, $oldid=null, $noCache=false) Get the value of the page_is_redirect field in the DB. Returns the page's namespace number.The value returned by this method should represent a valid namespace, but this cannot be guaranteed in all cases.

Returns true if last revision was marked as "minor edit". Returns a list of hidden categories this page is a member of. Returns a list of updates to be performed when this page is deleted. Get the page title in DB key form.This should always return a valid DB key. Get the state of an ongoing update, shortly before or just after it is saved to the database. Get the User object of the user who created the page. GetCreator ( $audience=RevisionRecord::FOR_PUBLIC, Authority $performer=null) Get a list of users who have edited this article, not including the user who made the most recent revision, which you can get from $article-> getUser() if you want it. Returns the page's content model id (see the CONTENT_MODEL_XXX constants). Returns the ContentHandler instance to be used to deal with the content of this WikiPage. GetContent ( $audience=RevisionRecord::FOR_PUBLIC, Authority $performer=null) GetComment ( $audience=RevisionRecord::FOR_PUBLIC, Authority $performer=null) Returns a list of categories this page is a member of. Get the Title object or URL this page redirects to. More.ĭoViewUpdates ( Authority $performer, $oldid=0, RevisionRecord $oldRev=null)ĭo standard deferred updates after page view (existing or missing page) More. More.ĭoUserEditContent ( Content $content, Authority $performer, $summary, $flags=0, $originalRevId=false, $tags=, $undidRevId=0)Ĭhange an existing article or create a new article.
#Mediawiki reference update#
Update the article's restriction field, and leave a log entry. More.ĭoUpdateRestrictions (array $limit, array $expiry, &$cascade, $reason, UserIdentity $user, $tags=) More.ĭoSecondaryDataUpdates (array $options=)ĭo secondary data updates (such as updating link tables). More.ĭoEditUpdates ( RevisionRecord $revisionRecord, UserIdentity $user, array $options=)ĭo standard deferred updates after page edit. More.ĭoDeleteUpdates ( $id, Content $content=null, RevisionRecord $revRecord=null, UserIdentity $user=null)ĭo some database updates after deletion. More.ĭoDeleteArticleBatched ( $reason, $suppress, UserIdentity $deleter, $tags, $logsubtype, $immediate=false, $webRequestId=null)ĭoDeleteArticleReal ( $reason, UserIdentity $deleter, $suppress=false, $u1=null, &$error='', $u2=null, $tags=, $logsubtype='delete', $immediate=false)īack-end article deletion Deletes the article with database consistency, writes logs, purges caches. More.Ĭlear the mPreparedEdit cache field, as may be needed by mutable content types. Loads page_touched and returns a value indicating if it should be used. More.Ĭheck flags and add EDIT_NEW or EDIT_UPDATE to them as needed. Returns string More.Įnsure consistency when unserializing. Returns an informative human readable unique representation of the page identity, for use as a cache key and for logging and debugging. Makes sure that the mTitle object is cloned to the newly cloned WikiPage.
