Go to the documentation of this file.
27 function error() {
throw new MWException(
"Attempt to call member function of FakeTitle\n" ); }
110 function moveTo( &$nt, $auth =
true, $reason =
'', $createRedirect =
true ) { $this->
error(); }
111 function moveSubpages( $nt, $auth =
true, $reason =
'', $createRedirect =
true ) { $this->
error(); }
getInternalURL( $query='', $variant=false)
Get the URL form for an internal link.
purgeSquid()
Purge all applicable Squid URLs.
getBrokenLinksFrom()
Get an array of Title objects referring to non-existent articles linked from this page.
getNextRevisionID( $revId, $flags=0)
Get the revision ID of the next revision.
isCascadeProtected()
Cascading protection: Return true if cascading restrictions apply to this page, false if not.
isAlwaysKnown()
Should links to this title be shown as potentially viewable (i.e.
isValidMoveOperation(&$nt, $auth=true, $reason='')
Check whether a given move operation would be valid.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
getFullURL( $query='', $variant=false)
isJsSubpage()
Is this a .js subpage of a user page?
escapeFullURL( $query='', $query2=false)
Get an HTML-escaped version of the URL form, suitable for using in a link, including the server name ...
isCssOrJsPage()
Could this page contain custom CSS or JavaScript for the global UI.
resetArticleID( $newid)
This clears some fields in this object, and clears any associated keys in the "bad links" section of ...
countRevisionsBetween( $old, $new)
isCssSubpage()
Is this a .css subpage of a user page?
getRedirectsHere( $ns=null)
Get all extant redirects to this Title.
getLatestRevID( $flags=0)
What is the page_latest field for this page?
getText()
Get the text form (spaces not underscores) of the main part.
isSemiProtected( $action='edit')
Is this page "semi-protected" - the only protection levels are listed in $wgSemiprotectedRestrictionL...
getParentCategoryTree( $children=array())
Get a tree of parent categories.
getTemplateLinksTo( $options=array())
Get an array of Title objects using this Title as a template Also stores the IDs in the link cache.
getBacklinkCache()
Get a backlink cache object.
getSkinFromCssJsSubpage()
Trim down a .css or .js subpage title to get the corresponding skin name.
getLinkURL( $query=array(), $variant=false)
canUseNoindex()
Whether the magic words INDEX and NOINDEX function for this page.
touchLinks()
Update page_touched timestamps and send squid purge messages for pages linking to this title.
quickUserCan( $action, $user=null)
Can $user perform $action on this page? This skips potentially expensive cascading permission checks ...
isValidMoveTarget( $nt)
Checks if $this can be moved to a given Title.
getLocalURL( $query='', $variant=false)
Get a URL with no fragment or server name (relative URL) from a Title object.
getNamespaceKey( $prepend='nstab-')
Generate strings used for xml 'id' names in monobook tabs.
it s the revision text itself In either if gzip is the revision text is gzipped $flags
isTrans()
Determine whether the object refers to a page within this project and is transcludable.
Fake title class that triggers an error if any members are called.
exists()
Check if page exists.
isExternal()
Is this Title interwiki?
hasFragment()
Check if a Title fragment is set.
canExist()
Is this in a namespace that allows actual pages?
pageCond()
Get an associative array for selecting this title from the "page" table.
hasSubpages()
Does this have subpages? (Warning, usually requires an extra DB query.)
getDefaultNamespace()
Get the default namespace index, for when there is no namespace.
getPreviousRevisionID( $revId, $flags=0)
Get the revision ID of the previous revision.
setFragment( $fragment)
Set the fragment for this title.
getPartialURL()
Get the URL-encoded form of the main part.
getNsText()
Get the namespace text.
getRestrictions( $action)
Accessor/initialisation for mRestrictions.
getNamespace()
Get the namespace index, i.e.
moveTo(&$nt, $auth=true, $reason='', $createRedirect=true)
Move a title to a new location.
getFirstRevision( $flags=0)
Get the first revision of the page.
isLocal()
Determine whether the object refers to a page within this project.
isTalkPage()
Is this a talk page of some sort?
getNotificationTimestamp( $user=null)
Get the timestamp when this page was updated since the user last saw it.
loadRestrictionsFromRows( $rows, $oldFashionedRestrictions=null)
Compiles list of active page restrictions from both page table (pre 1.10) and page_restrictions table...
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
getCascadeProtectionSources( $get_pages=true)
Cascading protection: Get the source of any cascading restrictions on this page.
userCan( $action, $user=null, $doExpensiveQueries=true)
Can $user perform $action on this page?
getInterwiki()
Get the interwiki prefix.
getRestrictionTypes()
Returns restriction types for the current Title.
isValidRedirectTarget()
Check if this Title is a valid redirect target.
updateTitleProtection( $create_perm, $reason, $expiry)
Update the title protection status.
areRestrictionsCascading()
Returns cascading restrictions for the current article.
isDeletedQuick()
Is there a version of this page in the deletion archive?
getFullText()
Get the prefixed title with spaces, plus any fragment (part beginning with '#')
getTalkNsText()
Get the namespace text of the talk page.
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options
getRestrictionExpiry( $action)
Get the expiry time for the restriction against a given action.
getLength( $flags=0)
What is the length of this page? Uses link cache, adding it if necessary.
getPrefixedText()
Get the prefixed title with spaces.
getLinksTo( $options=array(), $table='pagelinks', $prefix='pl')
Get an array of Title objects linking to this Title Also stores the IDs in the link cache.
presenting them properly to the user as errors is done by the caller $title
getPrefixedDBkey()
Get the prefixed database key form.
Allows to change the fields on the form that will be generated $name
isSubpage()
Is this a subpage?
getSquidURLs()
Get a list of URLs to purge from the Squid cache when this page changes.
getTouched( $db=null)
Get the last touched timestamp.
invalidateCache()
Updates page_touched for this page; called from LinksUpdate.php.
getSubjectNsText()
Get the namespace text of the subject (rather than talk) page.
moveSubpages( $nt, $auth=true, $reason='', $createRedirect=true)
Move this page's subpages to be subpages of $nt.
isRedirect( $flags=0)
Is this an article that is a redirect page? Uses link cache, adding it if necessary.
getEscapedText()
Get the HTML-escaped displayable text form.
getSubpages( $limit=-1)
Get all subpages of this page.
getDBkey()
Get the main part with underscores.
escapeLocalURL( $query='', $query2=false)
Get an HTML-escaped version of the URL form, suitable for using in a link, without a server name or f...
getFragment()
Get the Title fragment (i.e. the bit after the #) in text form.
isMovable()
Would anybody with sufficient privileges be able to move this page? Some pages just aren't movable.
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account $user
isProtected( $action='')
Does the title correspond to a protected article?
isConversionTable()
Is this a conversion table for the LanguageConverter?
equals(Title $title)
Compare with another title.
getArticleID( $flags=0)
Get the article ID for this Title from the link cache, adding it if necessary.
Represents a title within MediaWiki.
isCssJsSubpage()
Is this a .css or .js subpage of a user page?
isNamespaceProtected(User $user)
Determines if $user is unable to edit this page because it has been protected by $wgNamespaceProtecti...
isSpecial( $name)
Returns true if this title resolves to the named special page.
isKnown()
Does this title refer to a page that can (or might) be meaningfully viewed? In particular,...
isWatchable()
Can this title be added to a user's watchlist?
getIndexTitle()
Get title for search index.
getSubjectPage()
Get a title object associated with the subject page of this talk page.
isSpecialPage()
Returns true if this is a special page.
isNewPage()
Check if this is a new page.
isSingleRevRedirect()
Checks if this page is just a one-rev redirect.
getBaseText()
Get the base page name without a namespace, i.e.
canTalk()
Could this title have a corresponding talk page?
isDeleted()
Is there a version of this page in the deletion archive?
loadRestrictions( $res=null)
Load restrictions from the page_restrictions table.
getSubpageUrlForm()
Get a URL-encoded form of the subpage text.
deleteTitleProtection()
Remove any title protection due to page existing.
userCanRead()
Can $wgUser read this page?
getUserCaseDBKey()
Get the DB key with the initial letter case as specified by the user.
getParentCategories()
Get categories to which this Title belongs and return an array of categories' names.
getTalkPage()
Get a Title object associated with the talk page of this article.
return true to allow those checks to and false if checking is done use this to change the tables headers temp or archived zone change it to an object instance and return false override the list derivative used the name of the old file when set the default code will be skipped add a value to it if you want to add a cookie that have to vary cache options can modify $query
getPrefixedURL()
Get a URL-encoded title (not an actual URL) including interwiki.
userIsWatching()
Is $wgUser watching this page?
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
fixSpecialName()
If the Title refers to a special page alias which is not the local default, resolve the alias,...
moveNoAuth(&$nt)
Move this page without authentication.
getUserPermissionsErrors( $action, $user, $doExpensiveQueries=true, $ignoreErrors=array())
Can $user perform $action on this page?
getEditURL()
Get the edit URL for this Title.
getFragmentForURL()
Get the fragment in URL form, including the "#" character if there is one.
getSubpageText()
Get the lowest-level subpage name, i.e.
getEarliestRevTime( $flags=0)
Get the oldest revision timestamp of this page.
isContentPage()
Is this Title in a namespace which contains content? In other words, is this a content page,...