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

Public Member Functions

 preloadPreparedEdit (WikiPage $page)
 
 clear ()
 
 getFile ()
 
 isStableShownByDefault ()
 
 editsRequireReview ()
 
 isDataLoaded ()
 
 revsArePending ()
 
 getPendingRevCount ($flags=0)
 
 stableVersionIsSynced ()
 
 onlyTemplatesOrFilesPending ()
 
 isPageLocked ()
 
 isPageUnlocked ()
 
 lowProfileUI ()
 
 isReviewable ()
 
 getStable ()
 
 getStableRev ()
 
 getStabilitySettings ()
 
 syncedInTracking ()
 
 getBestFlaggedRevId ()
 
 lazyUpdateSyncStatus ()
 
 loadPageData ($data= 'fromdb')
 
 updateStableVersion (FlaggedRevision $srev, $latest=null)
 
 clearStableVersion ()
 
- Public Member Functions inherited from WikiPage
 __construct (Title $title)
 
 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)
 
 getText ($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)
 
 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)
 
 doEdit ($text, $summary, $flags=0, $baseRevId=false, $user=null)
 
 doEditContent (Content $content, $summary, $flags=0, $baseRevId=false, User $user=null, $serialFormat=null, $tags=null)
 
 makeParserOptions ($context)
 
 prepareTextForEdit ($text, $revid=null, User $user=null)
 
 prepareContentForEdit (Content $content, $revision=null, User $user=null, $serialFormat=null, $useCache=true)
 
 doEditUpdates (Revision $revision, User $user, array $options=[])
 
 doQuickEditContent (Content $content, User $user, $comment= '', $minor=false, $serialFormat=null)
 
 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)
 
 doDeleteArticleReal ($reason, $suppress=false, $u1=null, $u2=null, &$error= '', User $user=null)
 
 lockAndGetLatest ()
 
 doDeleteUpdates ($id, Content $content=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)
 
 triggerOpportunisticLinksUpdate (ParserOutput $parserOutput)
 
 getDeletionUpdates (Content $content=null)
 

Static Public Member Functions

static getTitleInstance (Title $title)
 
- Static Public Member Functions inherited from WikiPage
static factory (Title $title)
 
static newFromID ($id, $from= 'fromdb')
 
static newFromRow ($row, $from= 'fromdb')
 
static selectFields ()
 
static onArticleCreate (Title $title)
 
static onArticleDelete (Title $title)
 
static onArticleEdit (Title $title, Revision $revision=null)
 
static getAutosummary ($oldtext, $newtext, $flags)
 

Protected Member Functions

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

Static Protected Member Functions

static updatePendingList ($pageId, $latest)
 
- Static Protected Member Functions inherited from WikiPage
static flattenRestrictions ($limit)
 

Protected Attributes

 $stable = 0
 
 $stableRev = null
 
 $revsArePending = null
 
 $pendingRevCount = null
 
 $pageConfig = null
 
 $syncedInTracking = null
 
 $file = null
 
- Protected Attributes inherited from WikiPage
 $mId = null
 
 $mDataLoadedFrom = self::READ_NONE
 
 $mRedirectTarget = null
 
 $mLastRevision = null
 
 $mTimestamp = ''
 
 $mTouched = '19700101000000'
 
 $mLinksUpdated = '19700101000000'
 

Additional Inherited Members

- Public Attributes inherited from WikiPage
 $mTitle = null
 
 $mPreparedEdit = false
 
 $mDataLoaded = false
 
 $mIsRedirect = false
 
 $mLatest = false
 
- Public Attributes inherited from IDBAccessObject
const READ_LATEST = 1
 
const READ_LOCKING = 3
 
const READ_EXCLUSIVE = 7
 
const READ_NORMAL = 0
 
const READ_NONE = -1
 

Detailed Description

Class representing a MediaWiki article and history

FlaggableWikiPage::getTitleInstance() is preferred over constructor calls

Member Function Documentation

FlaggableWikiPage::clear ( )

Clear object process cache values

Returns
void
FlaggableWikiPage::clearStableVersion ( )

Updates the flagging tracking tables for this page

Returns
void
FlaggableWikiPage::editsRequireReview ( )

Do edits have to be reviewed before being shown by default (going live)?

Returns
bool
FlaggableWikiPage::getBestFlaggedRevId ( )

Get the newest of the highest rated flagged revisions of this page Note: will not return deleted revisions

Returns
int
FlaggableWikiPage::getFile ( )

Get the current file version (null if this not a File page)

Returns
File|null|bool false
FlaggableWikiPage::getPendingRevCount (   $flags = 0)

Get number of revs since the stable revision Note: slower than revsArePending()

Parameters
int$flagsFR_MASTER (be sure to use loadFromDB( FR_MASTER ) if set)
Returns
int
FlaggableWikiPage::getStabilitySettings ( )

Get visiblity restrictions on page

Returns
array (select,override)
FlaggableWikiPage::getStable ( )

Get the stable revision ID

Returns
int
FlaggableWikiPage::getStableRev ( )

Get the stable revision

Returns
FlaggedRevision|null
static FlaggableWikiPage::getTitleInstance ( Title  $title)
static

Get a FlaggableWikiPage for a given title

Parameters
$titleTitle
Returns
FlaggableWikiPage
FlaggableWikiPage::isDataLoaded ( )

Has data for this page been loaded?

Returns
bool
FlaggableWikiPage::isPageLocked ( )

Is this page less open than the site defaults?

Returns
bool
FlaggableWikiPage::isPageUnlocked ( )

Is this page more open than the site defaults?

Returns
bool
FlaggableWikiPage::isReviewable ( )

Is this article reviewable?

Returns
bool
FlaggableWikiPage::isStableShownByDefault ( )

Is the stable version shown by default for this page?

Returns
bool
FlaggableWikiPage::lazyUpdateSyncStatus ( )

Updates the fp_reviewed field for this article

FlaggableWikiPage::loadPageData (   $data = 'fromdb')

Set the page field data loaded from some source

Parameters
\Database | string$dataDatabase row object or "fromdb"
Returns
void
FlaggableWikiPage::lowProfileUI ( )

Tags are only shown for unreviewed content and this page is not locked/unlocked?

Returns
bool
FlaggableWikiPage::onlyTemplatesOrFilesPending ( )

Are template/file changes and ONLY template/file changes pending?

Returns
bool
FlaggableWikiPage::pageData (   $dbr,
  $conditions,
  $options = array() 
)
protected

Fetch a page record with the given conditions

Parameters
$dbrDatabase object
$conditionsArray
array$options
Returns
mixed Database result resource, or false on failure
FlaggableWikiPage::preloadPreparedEdit ( WikiPage  $page)

Transfer the prepared edit cache from a WikiPage object

Parameters
WikiPage$page
Returns
void
FlaggableWikiPage::revsArePending ( )

Are edits to this page currently pending?

Returns
bool
FlaggableWikiPage::stableVersionIsSynced ( )

Checks if the stable version is synced with the current revision Note: slower than getPendingRevCount()

Returns
bool
static FlaggableWikiPage::updatePendingList (   $pageId,
  $latest 
)
staticprotected

Updates the flaggedpage_pending table

Parameters
int$pageIdPage ID
int$latestLatest revision
FlaggableWikiPage::updateStableVersion ( FlaggedRevision  $srev,
  $latest = null 
)

Updates the flagging tracking tables for this page

Parameters
FlaggedRevision$srevThe new stable version
int | null$latestThe latest rev ID (optional)
Returns
bool Updates were done

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