MediaWiki  REL1_19
WikiFilePage Class Reference

Special handling for file pages. More...

Inheritance diagram for WikiFilePage:
Collaboration diagram for WikiFilePage:

List of all members.

Public Member Functions

 __construct ($title)
 doPurge ()
 Override handling of action=purge.
 followRedirect ()
 getActionOverrides ()
 Returns overrides for action handlers.
 getDuplicates ()
 getFile ()
 getRedirectTarget ()
 isLocal ()
 isRedirect ($text=false)
 setFile ($file)

Protected Member Functions

 loadFile ()

Protected Attributes

 $mDupes = null
 $mFile = false
 $mFileLoaded = false
 $mRepo = null

Detailed Description

Special handling for file pages.

Definition at line 7 of file WikiFilePage.php.


Constructor & Destructor Documentation

Definition at line 16 of file WikiFilePage.php.

References $title.


Member Function Documentation

Override handling of action=purge.

Reimplemented from WikiPage.

Definition at line 152 of file WikiFilePage.php.

References loadFile(), and wfDebug().

Here is the call graph for this function:

Returns:
bool|mixed|Title

Reimplemented from WikiPage.

Definition at line 74 of file WikiFilePage.php.

References loadFile(), and Title\makeTitle().

Here is the call graph for this function:

Returns overrides for action handlers.

Classes listed here will be used instead of the default one when (and only when) $wgActions[$action] === true. This allows subclasses to override the default behavior.

Todo:
: move this UI stuff somewhere else
Returns:
Array

Reimplemented from WikiPage.

Definition at line 22 of file WikiFilePage.php.

Returns:
array|null

Definition at line 119 of file WikiFilePage.php.

References $file, $self, $size, loadFile(), and RepoGroup\singleton().

Here is the call graph for this function:

Returns:
bool|File

Definition at line 111 of file WikiFilePage.php.

References loadFile().

Here is the call graph for this function:

Returns:
mixed|null|Title

Reimplemented from WikiPage.

Definition at line 57 of file WikiFilePage.php.

References loadFile(), and Title\makeTitle().

Here is the call graph for this function:

Returns:
bool

Definition at line 103 of file WikiFilePage.php.

References loadFile().

Here is the call graph for this function:

Parameters:
bool$text
Returns:
bool

Reimplemented from WikiPage.

Definition at line 91 of file WikiFilePage.php.

References loadFile().

Here is the call graph for this function:

WikiFilePage::loadFile ( ) [protected]
Returns:
bool

Definition at line 37 of file WikiFilePage.php.

References wfFindFile(), and wfLocalFile().

Referenced by doPurge(), followRedirect(), getDuplicates(), getFile(), getRedirectTarget(), isLocal(), and isRedirect().

Here is the call graph for this function:

Here is the caller graph for this function:

WikiFilePage::setFile ( file)
Parameters:
$fileFile:

Definition at line 29 of file WikiFilePage.php.

References $file.


Member Data Documentation

WikiFilePage::$mDupes = null [protected]

Definition at line 14 of file WikiFilePage.php.

WikiFilePage::$mFile = false [protected]

Definition at line 11 of file WikiFilePage.php.

WikiFilePage::$mFileLoaded = false [protected]

Definition at line 13 of file WikiFilePage.php.

WikiFilePage::$mRepo = null [protected]

Definition at line 12 of file WikiFilePage.php.


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