BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
WikiFilePage Class Reference
Inheritance diagram for WikiFilePage:
Collaboration diagram for WikiFilePage:

Public Member Functions

 __construct ($title)
 
 setFile ($file)
 
 getRedirectTarget ()
 
 followRedirect ()
 
 isRedirect ()
 
 isLocal ()
 
 getFile ()
 
 doPurge ()
 
 getWikiDisplayName ()
 
 getSourceURL ()
 
- Public Member Functions inherited from WikiPage
 __construct (Title $title)
 
 __clone ()
 
 getActionOverrides ()
 
 getContentHandler ()
 
 getTitle ()
 
 clear ()
 
 clearPreparedEdit ()
 
 pageDataFromTitle ($dbr, $title, $options=[])
 
 pageDataFromId ($dbr, $id, $options=[])
 
 loadPageData ($from= 'fromdb')
 
 loadFromRow ($data, $from)
 
 getId ()
 
 exists ()
 
 hasViewableContent ()
 
 isRedirect ()
 
 getContentModel ()
 
 checkTouched ()
 
 getTouched ()
 
 getLinksTimestamp ()
 
 getLatest ()
 
 getOldestRevision ()
 
 getRevision ()
 
 getContent ($audience=Revision::FOR_PUBLIC, User $user=null)
 
 getTimestamp ()
 
 setTimestamp ($ts)
 
 getUser ($audience=Revision::FOR_PUBLIC, User $user=null)
 
 getCreator ($audience=Revision::FOR_PUBLIC, User $user=null)
 
 getUserText ($audience=Revision::FOR_PUBLIC, User $user=null)
 
 getComment ($audience=Revision::FOR_PUBLIC, User $user=null)
 
 getMinorEdit ()
 
 isCountable ($editInfo=false)
 
 getRedirectTarget ()
 
 insertRedirect ()
 
 insertRedirectEntry (Title $rt, $oldLatest=null)
 
 followRedirect ()
 
 getRedirectURL ($rt)
 
 getContributors ()
 
 shouldCheckParserCache (ParserOptions $parserOptions, $oldId)
 
 getParserOutput (ParserOptions $parserOptions, $oldid=null, $forceParse=false)
 
 doViewUpdates (User $user, $oldid=0)
 
 doPurge ()
 
 insertOn ($dbw, $pageId=null)
 
 updateRevisionOn ($dbw, $revision, $lastRevision=null, $lastRevIsRedirect=null)
 
 updateRedirectOn ($dbw, $redirectTitle, $lastRevIsRedirect=null)
 
 updateIfNewerOn ($dbw, $revision)
 
 getUndoContent (Revision $undo, Revision $undoafter=null)
 
 supportsSections ()
 
 replaceSectionContent ($sectionId, Content $sectionContent, $sectionTitle= '', $edittime=null)
 
 replaceSectionAtRev ($sectionId, Content $sectionContent, $sectionTitle= '', $baseRevId=null)
 
 checkFlags ($flags)
 
 doEditContent (Content $content, $summary, $flags=0, $baseRevId=false, User $user=null, $serialFormat=null, $tags=[], $undidRevId=0)
 
 makeParserOptions ($context)
 
 prepareContentForEdit (Content $content, $revision=null, User $user=null, $serialFormat=null, $useCache=true)
 
 doEditUpdates (Revision $revision, User $user, array $options=[])
 
 doUpdateRestrictions (array $limit, array $expiry, &$cascade, $reason, User $user, $tags=null)
 
 insertProtectNullRevision ($revCommentMsg, array $limit, array $expiry, $cascade, $reason, $user=null)
 
 protectDescription (array $limit, array $expiry)
 
 protectDescriptionLog (array $limit, array $expiry)
 
 doDeleteArticle ($reason, $suppress=false, $u1=null, $u2=null, &$error= '', User $user=null)
 
 lockAndGetLatest ()
 
 doDeleteUpdates ($id, Content $content=null, Revision $revision=null, User $user=null)
 
 doRollback ($fromP, $summary, $token, $bot, &$resultDetails, User $user, $tags=null)
 
 commitRollback ($fromP, $summary, $bot, &$resultDetails, User $guser, $tags=null)
 
 getCategories ()
 
 getHiddenCategories ()
 
 getAutoDeleteReason (&$hasHistory)
 
 updateCategoryCounts (array $added, array $deleted, $id=0)
 
 triggerOpportunisticLinksUpdate (ParserOutput $parserOutput)
 
 getDeletionUpdates (Content $content=null)
 
 isLocal ()
 
 getWikiDisplayName ()
 
 getSourceURL ()
 
 getMutableCacheKeys (WANObjectCache $cache)
 

Protected Member Functions

 loadFile ()
 
- Protected Member Functions inherited from WikiPage
 clearCacheFields ()
 
 pageData ($dbr, $conditions, $options=[])
 
 loadLastEdit ()
 
 setLastEdit (Revision $revision)
 
 formatExpiry ($expiry)
 

Protected Attributes

 $mFile = false
 
 $mRepo = null
 
 $mFileLoaded = false
 
 $mDupes = null
 
- Protected Attributes inherited from WikiPage
 $mId = null
 
 $mDataLoadedFrom = self::READ_NONE
 
 $mRedirectTarget = null
 
 $mLastRevision = null
 
 $mTimestamp = ''
 
 $mTouched = '19700101000000'
 
 $mLinksUpdated = '19700101000000'
 

Additional Inherited Members

- Static Public Member Functions inherited from WikiPage
static factory (Title $title)
 
static newFromID ($id, $from= 'fromdb')
 
static newFromRow ($row, $from= 'fromdb')
 
static selectFields ()
 
static getQueryInfo ()
 
static onArticleCreate (Title $title)
 
static onArticleDelete (Title $title)
 
static onArticleEdit (Title $title, Revision $revision=null)
 
- Public Attributes inherited from WikiPage
 $mTitle = null
 
 $mPreparedEdit = false
 
 $mDataLoaded = false
 
 $mIsRedirect = false
 
 $mLatest = false
 
- Public Attributes inherited from IDBAccessObject
const READ_NORMAL = 0
 
const READ_LATEST = 1
 
const READ_LOCKING = 3
 
const READ_EXCLUSIVE = 7
 
const READ_LATEST_IMMUTABLE = 8
 
const READ_NONE = -1
 
- Static Protected Member Functions inherited from WikiPage
static flattenRestrictions ($limit)
 

Detailed Description

Special handling for file pages

Member Function Documentation

WikiFilePage::doPurge ( )

Override handling of action=purge

Returns
bool
WikiFilePage::followRedirect ( )
Returns
bool|mixed|Title
WikiFilePage::getFile ( )
Returns
bool|File
WikiFilePage::getRedirectTarget ( )
Returns
mixed|null|Title
WikiFilePage::getSourceURL ( )
Since
1.28
Returns
string
WikiFilePage::getWikiDisplayName ( )
Since
1.28
Returns
string
WikiFilePage::isLocal ( )
Returns
bool
WikiFilePage::isRedirect ( )
Returns
bool
WikiFilePage::loadFile ( )
protected
Returns
bool
WikiFilePage::setFile (   $file)
Parameters
File$file

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