MediaWiki  1.23.2
CategoryPage Class Reference

Special handling for category description pages, showing pages, subcategories and file that belong to the category. More...

Inheritance diagram for CategoryPage:
Collaboration diagram for CategoryPage:

Public Member Functions

 closeShowCategory ()
 
 openShowCategory ()
 
 view ()
 This is the default action of the index.php entry point: just view the page of the given title. More...
 
- Public Member Functions inherited from Article
 __call ( $fname, $args)
 Use PHP's magic __call handler to transform instance calls to WikiPage functions for backwards compatibility. More...
 
 __construct (Title $title, $oldId=null)
 Constructor and clear the article. More...
 
 __get ( $fname)
 Use PHP's magic __get handler to handle accessing of raw WikiPage fields for backwards compatibility. More...
 
 __set ( $fname, $fvalue)
 Use PHP's magic __set handler to handle setting of raw WikiPage fields for backwards compatibility. More...
 
 adjustDisplayTitle (ParserOutput $pOutput)
 Adjust title for pages with displaytitle, -{T|}- or language conversion. More...
 
 clear ()
 Clear the object. More...
 
 commitRollback ( $fromP, $summary, $bot, &$resultDetails, User $guser=null)
 
 confirmDelete ( $reason)
 Output deletion confirmation dialog. More...
 
 delete ()
 UI entry point for page deletion. More...
 
 doDelete ( $reason, $suppress=false)
 Perform a deletion and output success or failure messages. More...
 
 doDeleteArticle ( $reason, $suppress=false, $id=0, $commit=true, &$error='')
 
 doRollback ( $fromP, $summary, $token, $bot, &$resultDetails, User $user=null)
 
 doUpdateRestrictions (array $limit, array $expiry, &$cascade, $reason, User $user)
 
 fetchContent ()
 Get text of an article from database Does NOT follow redirects. More...
 
 generateReason (&$hasHistory)
 
 getContent ()
 Note that getContent/loadContent do not follow redirects anymore. More...
 
 getContext ()
 Gets the context this Article is executed in. More...
 
 getOldID ()
 
 getOldIDFromRequest ()
 Sets $this->mRedirectUrl to a correct URL if the query parameters are incorrect. More...
 
 getPage ()
 Get the WikiPage object of this instance. More...
 
 getParserOptions ()
 Get parser options suitable for rendering the primary article wikitext. More...
 
 getParserOutput ( $oldid=null, User $user=null)
 #- More...
 
 getRevIdFetched ()
 Use this to fetch the rev ID used on page views. More...
 
 getRevisionFetched ()
 Get the fetched Revision object depending on request parameters or null on failure. More...
 
 getRobotPolicy ( $action, $pOutput=null)
 Get the robot policy to be used for the current view. More...
 
 getTitle ()
 Get the title object of the article. More...
 
 info ()
 Info about this page. More...
 
 isCurrent ()
 Returns true if the currently-referenced revision is the current edit to this page (and it exists). More...
 
 isFileCacheable ()
 Check if the page can be cached. More...
 
 loadContent ()
 Load the revision (including text) into this object. More...
 
 protect ()
 action=protect handler More...
 
 purge ()
 Handle action=purge. More...
 
 render ()
 Handle action=render. More...
 
 revert ()
 Handle action=revert. More...
 
 rollback ()
 Handle action=rollback. More...
 
 setContext ( $context)
 Sets the context this Article is executed in. More...
 
 setOldSubtitle ( $oldid=0)
 Generate the navigation links when browsing through an article revisions It shows the information as: Revision as of <date>; view current revision <- Previous version | Next Version -> More...
 
 setParserOptions (ParserOptions $options)
 Override the ParserOptions used to render the primary article wikitext. More...
 
 setRedirectedFrom (Title $from)
 Tell the page view functions that this view was redirected from another page on the wiki. More...
 
 showDeletedRevisionHeader ()
 If the revision requested for view is deleted, check permissions. More...
 
 showDiffPage ()
 Show a diff page according to current request variables. More...
 
 showMissingArticle ()
 Show the error text for a missing article. More...
 
 showNamespaceHeader ()
 Show a header specific to the namespace currently being viewed, like [[MediaWiki:Talkpagetext]]. More...
 
 showPatrolFooter ()
 If patrol is possible, output a patrol UI box. More...
 
 showRedirectedFromHeader ()
 If this request is a redirect view, send "redirected from" subtitle to the output. More...
 
 showViewFooter ()
 Show the footer section of an ordinary page view. More...
 
 unprotect ()
 action=unprotect handler (alias) More...
 
 updateRestrictions ( $limit=array(), $reason='', &$cascade=0, $expiry=array())
 
 viewRedirect ( $target, $appendSubtitle=true, $forceKnown=false)
 View redirect. More...
 

Static Public Member Functions

static newFromID ( $id)
 Constructor from a page id. More...
 
- Static Public Member Functions inherited from Article
static formatRobotPolicy ( $policy)
 Converts a String robot policy into an associative array, to allow merging of several policies using array_merge(). More...
 
static getAutosummary ( $oldtext, $newtext, $flags)
 
static newFromTitle ( $title, IContextSource $context)
 Create an Article object of the appropriate class for the given page. More...
 
static newFromWikiPage (WikiPage $page, IContextSource $context)
 Create an Article object of the appropriate class for the given page. More...
 
static onArticleCreate ( $title)
 
static onArticleDelete ( $title)
 
static onArticleEdit ( $title)
 
static selectFields ()
 

Protected Member Functions

 newPage (Title $title)
 
- Protected Member Functions inherited from Article
 fetchContentObject ()
 Get text content object Does NOT follow redirects. More...
 
 getContentObject ()
 Returns a Content object representing the pages effective display content, not necessarily the revision's content! More...
 
 showCssOrJsPage ( $showCacheHint=true)
 Show a page view for a page formatted as CSS or JavaScript. More...
 
 tryFileCache ()
 checkLastModified returns true if it has taken care of all output to the client that is necessary for this request. More...
 

Protected Attributes

 $mCategoryViewerClass = 'CategoryViewer'
 
- Protected Attributes inherited from Article
IContextSource $mContext
 The context this Article is executed in $mContext. More...
 
WikiPage $mPage
 The WikiPage object of this instance $mPage. More...
 

Additional Inherited Members

- Public Attributes inherited from Article
ParserOptions $mParserOptions
 ParserOptions object for $wgUser articles $mParserOptions. More...
 
string $mContent
 Text of the revision we are working on $mContent. More...
 
Content $mContentObject
 Content of the revision we are working on. More...
 
bool $mContentLoaded = false
 Is the content ($mContent) already loaded? $mContentLoaded. More...
 
int null $mOldId
 The oldid of the article that is to be shown, 0 for the current revision $mOldId. More...
 
Title $mRedirectedFrom = null
 Title from which we were redirected here $mRedirectedFrom. More...
 
string false $mRedirectUrl = false
 URL to redirect to or false if none $mRedirectUrl. More...
 
int $mRevIdFetched = 0
 Revision ID of revision we are working on $mRevIdFetched. More...
 
Revision $mRevision = null
 Revision we are working on $mRevision. More...
 
ParserOutput $mParserOutput
 ParserOutput object $mParserOutput. More...
 

Detailed Description

Special handling for category description pages, showing pages, subcategories and file that belong to the category.

Definition at line 28 of file CategoryPage.php.

Member Function Documentation

◆ closeShowCategory()

CategoryPage::closeShowCategory ( )

Definition at line 84 of file CategoryPage.php.

References $from, $type, array(), as, Article\getContext(), and Article\getTitle().

Referenced by view().

◆ newFromID()

static CategoryPage::newFromID (   $id)
static

Constructor from a page id.

Parameters
int$idArticle ID to load
Returns
CategoryPage|null

Reimplemented from Article.

Definition at line 46 of file CategoryPage.php.

References $t, and Title\newFromID().

◆ newPage()

CategoryPage::newPage ( Title  $title)
protected
Parameters
Title$title
Returns
WikiCategoryPage

Reimplemented from Article.

Definition at line 36 of file CategoryPage.php.

References $title.

◆ openShowCategory()

CategoryPage::openShowCategory ( )

Definition at line 80 of file CategoryPage.php.

Referenced by view().

◆ view()

CategoryPage::view ( )

This is the default action of the index.php entry point: just view the page of the given title.

Reimplemented from Article.

Definition at line 53 of file CategoryPage.php.

References $title, array(), closeShowCategory(), Article\getContext(), Article\getTitle(), NS_CATEGORY, openShowCategory(), view(), and wfRunHooks().

Member Data Documentation

◆ $mCategoryViewerClass

CategoryPage::$mCategoryViewerClass = 'CategoryViewer'
protected

Definition at line 30 of file CategoryPage.php.


The documentation for this class was generated from the following file: