Inherits Title.
Public Member Functions | |
error () | |
__call ($name, $args) | |
isLocal () | |
Determine whether the object refers to a page within this project. | |
isTrans () | |
Determine whether the object refers to a page within this project and is transcludable. | |
getText () | |
Simple accessors. | |
getPartialURL () | |
Get the URL-encoded form of the main part. | |
getDBkey () | |
Get the main part with underscores. | |
getNamespace () | |
Get the namespace index, i.e. one of the NS_xxxx constants. | |
getNsText () | |
Get the namespace text. | |
getUserCaseDBKey () | |
Get the DB key with the initial letter case as specified by the user. | |
getSubjectNsText () | |
Get the namespace text of the subject (rather than talk) page. | |
getTalkNsText () | |
Get the namespace text of the talk page. | |
canTalk () | |
Could this title have a corresponding talk page? | |
getInterwiki () | |
Get the interwiki prefix (or null string). | |
getFragment () | |
Get the Title fragment (i.e. the bit after the #) in text form. | |
getFragmentForURL () | |
Get the fragment in URL form, including the "#" character if there is one. | |
getDefaultNamespace () | |
Get the default namespace index, for when there is no namespace. | |
getIndexTitle () | |
Get title for search index. | |
getPrefixedDBkey () | |
Get the prefixed database key form. | |
getPrefixedText () | |
Get the prefixed title with spaces. | |
getFullText () | |
Get the prefixed title with spaces, plus any fragment (part beginning with '#'). | |
getBaseText () | |
Get the base name, i.e. | |
getSubpageText () | |
Get the lowest-level subpage name, i.e. | |
getSubpageUrlForm () | |
Get a URL-encoded form of the subpage text. | |
getPrefixedURL () | |
Get a URL-encoded title (not an actual URL) including interwiki. | |
getFullURL ($query= '', $variant=false) | |
Get a real URL referring to this title, with interwiki link and fragment. | |
getLocalURL ($query= '', $variant=false) | |
Get a URL with no fragment or server name. | |
getLinkUrl ($query=array(), $variant=false) | |
Get a URL that's the simplest URL that will be valid to link, locally, to the current Title. | |
escapeLocalURL ($query= '') | |
Get an HTML-escaped version of the URL form, suitable for using in a link, without a server name or fragment. | |
escapeFullURL ($query= '') | |
Get an HTML-escaped version of the URL form, suitable for using in a link, including the server name and fragment. | |
getInternalURL ($query= '', $variant=false) | |
Get the URL form for an internal link. | |
getEditURL () | |
Get the edit URL for this Title. | |
getEscapedText () | |
Get the HTML-escaped displayable text form. | |
isExternal () | |
Is this Title interwiki? | |
isSemiProtected ($action= 'edit') | |
Is this page "semi-protected" - the *only* protection is autoconfirm? | |
isProtected ($action= '') | |
Does the title correspond to a protected article? | |
isConversionTable () | |
Is this a conversion table for the LanguageConverter? | |
userIsWatching () | |
Is $wgUser watching this page? | |
quickUserCan ($action) | |
Can $wgUser perform $action on this page? This skips potentially expensive cascading permission checks as well as avoids expensive error formatting. | |
isNamespaceProtected () | |
Determines if $wgUser is unable to edit this page because it has been protected by $wgNamespaceProtection. | |
userCan ($action, $doExpensiveQueries=true) | |
Can $wgUser perform $action on this page? | |
getUserPermissionsErrors ($action, $user, $doExpensiveQueries=true, $ignoreErrors=array()) | |
Can $user perform $action on this page? | |
updateTitleProtection ($create_perm, $reason, $expiry) | |
Update the title protection status. | |
deleteTitleProtection () | |
Remove any title protection due to page existing. | |
isMovable () | |
Would anybody with sufficient privileges be able to move this page? Some pages just aren't movable. | |
userCanRead () | |
Can $wgUser read this page? | |
isTalkPage () | |
Is this a talk page of some sort? | |
isSubpage () | |
Is this a subpage? | |
hasSubpages () | |
Does this have subpages? (Warning, usually requires an extra DB query. | |
getSubpages ($limit=-1) | |
Get all subpages of this page. | |
isCssJsSubpage () | |
Is this a .css or .js subpage of a user page? | |
isCssOrJsPage () | |
Could this page contain custom CSS or JavaScript, based on the title? | |
isValidCssJsSubpage () | |
Is this a *valid* .css or .js subpage of a user page? Check that the corresponding skin exists. | |
getSkinFromCssJsSubpage () | |
Trim down a .css or .js subpage title to get the corresponding skin name. | |
isCssSubpage () | |
Is this a .css subpage of a user page? | |
isJsSubpage () | |
Is this a .js subpage of a user page? | |
userCanEditCssJsSubpage () | |
userCanEditCssSubpage () | |
Protect css subpages of user pages: can $wgUser edit this page? | |
userCanEditJsSubpage () | |
Protect js subpages of user pages: can $wgUser edit this page? | |
isCascadeProtected () | |
Cascading protection: Return true if cascading restrictions apply to this page, false if not. | |
getCascadeProtectionSources ($get_pages=true) | |
Cascading protection: Get the source of any cascading restrictions on this page. | |
areRestrictionsCascading () | |
loadRestrictionsFromRows ($rows, $oldFashionedRestrictions=null) | |
loadRestrictions ($res=null) | |
Load restrictions from the page_restrictions table. | |
getRestrictions ($action) | |
Accessor/initialisation for mRestrictions. | |
getRestrictionExpiry ($action) | |
Get the expiry time for the restriction against a given action. | |
isDeleted () | |
Is there a version of this page in the deletion archive? | |
isDeletedQuick () | |
Is there a version of this page in the deletion archive? | |
getArticleID ($flags=0) | |
Get the article ID for this Title from the link cache, adding it if necessary. | |
isRedirect ($flags=0) | |
Is this an article that is a redirect page? Uses link cache, adding it if necessary. | |
getLength ($flags=0) | |
What is the length of this page? Uses link cache, adding it if necessary. | |
getLatestRevID ($flags=0) | |
What is the page_latest field for this page? | |
resetArticleID ($newid) | |
This clears some fields in this object, and clears any associated keys in the "bad links" section of the link cache. | |
invalidateCache () | |
Updates page_touched for this page; called from LinksUpdate.php. | |
getTalkPage () | |
Get a Title object associated with the talk page of this article. | |
setFragment ($fragment) | |
Set the fragment for this title. | |
getSubjectPage () | |
Get a title object associated with the subject page of this talk page. | |
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. | |
getTemplateLinksTo ($options=array()) | |
Get an array of Title objects using this Title as a template Also stores the IDs in the link cache. | |
getBrokenLinksFrom () | |
Get an array of Title objects referring to non-existent articles linked from this page. | |
getSquidURLs () | |
Get a list of URLs to purge from the Squid cache when this page changes. | |
purgeSquid () | |
Purge all applicable Squid URLs. | |
moveNoAuth (&$nt) | |
Move this page without authentication. | |
isValidMoveOperation (&$nt, $auth=true, $reason= '') | |
Check whether a given move operation would be valid. | |
moveTo (&$nt, $auth=true, $reason= '', $createRedirect=true) | |
Move a title to a new location. | |
moveOverExistingRedirect (&$nt, $reason= '', $createRedirect=true) | |
Move page to a title which is at present a redirect to the source page. | |
moveToNewTitle (&$nt, $reason= '', $createRedirect=true) | |
Move page to non-existing title. | |
moveSubpages ($nt, $auth=true, $reason= '', $createRedirect=true) | |
Move this page's subpages to be subpages of $nt. | |
isSingleRevRedirect () | |
Checks if this page is just a one-rev redirect. | |
isValidMoveTarget ($nt) | |
Checks if $this can be moved to a given Title
| |
isWatchable () | |
Can this title be added to a user's watchlist? | |
getParentCategories () | |
Get categories to which this Title belongs and return an array of categories' names. | |
getParentCategoryTree ($children=array()) | |
Get a tree of parent categories. | |
pageCond () | |
Get an associative array for selecting this title from the "page" table. | |
getPreviousRevisionID ($revId, $flags=0) | |
Get the revision ID of the previous revision. | |
getNextRevisionID ($revId, $flags=0) | |
Get the revision ID of the next revision. | |
getFirstRevision ($flags=0) | |
Get the first revision of the page. | |
isNewPage () | |
Check if this is a new page. | |
getEarliestRevTime () | |
Get the oldest revision timestamp of this page. | |
countRevisionsBetween ($old, $new) | |
Get the number of revisions between the given revision IDs. | |
equals (Title $title) | |
Compare with another title. | |
exists () | |
Check if page exists. | |
isAlwaysKnown () | |
Should links to this title be shown as potentially viewable (i.e. | |
isKnown () | |
Does this title refer to a page that can (or might) be meaningfully viewed? In particular, this function may be used to determine if links to the title should be rendered as "bluelinks" (as opposed to "redlinks" to non-existent pages). | |
canExist () | |
Is this in a namespace that allows actual pages? | |
touchLinks () | |
Update page_touched timestamps and send squid purge messages for pages linking to this title. | |
getTouched ($db=null) | |
Get the last touched timestamp. | |
getNotificationTimestamp ($user=null) | |
Get the timestamp when this page was updated since the user last saw it. | |
trackbackURL () | |
Get the trackback URL for this page. | |
trackbackRDF () | |
Get the trackback RDF for this page. | |
getNamespaceKey ($prepend= 'nstab-') | |
Generate strings used for xml 'id' names in monobook tabs. | |
isSpecialPage () | |
Returns true if this is a special page. | |
isSpecial ($name) | |
Returns true if this title resolves to the named special page. | |
fixSpecialName () | |
If the Title refers to a special page alias which is not the local default,. | |
isContentPage () | |
Is this Title in a namespace which contains content? In other words, is this a content page, for the purposes of calculating statistics, etc? | |
getRedirectsHere ($ns=null) | |
Get all extant redirects to this Title. | |
isValidRedirectTarget () | |
Check if this Title is a valid redirect target. | |
getBacklinkCache () | |
Get a backlink cache object. | |
canUseNoindex () | |
Whether the magic words __INDEX__ and __NOINDEX__ function for this page. | |
getRestrictionTypes () |
Definition at line 6 of file FakeTitle.php.
FakeTitle::__call | ( | $ | name, | |
$ | args | |||
) |
FakeTitle::areRestrictionsCascading | ( | ) |
FakeTitle::canExist | ( | ) |
Is this in a namespace that allows actual pages?
Reimplemented from Title.
Definition at line 115 of file FakeTitle.php.
References error().
FakeTitle::canTalk | ( | ) |
Could this title have a corresponding talk page?
Reimplemented from Title.
Definition at line 23 of file FakeTitle.php.
References error().
FakeTitle::canUseNoindex | ( | ) |
Whether the magic words __INDEX__ and __NOINDEX__ function for this page.
Reimplemented from Title.
Definition at line 129 of file FakeTitle.php.
References error().
FakeTitle::countRevisionsBetween | ( | $ | old, | |
$ | new | |||
) |
Get the number of revisions between the given revision IDs.
Used for diffs and other things that really need it.
Reimplemented from Title.
Definition at line 110 of file FakeTitle.php.
References error().
FakeTitle::deleteTitleProtection | ( | ) |
Remove any title protection due to page existing.
Reimplemented from Title.
Definition at line 54 of file FakeTitle.php.
References error().
FakeTitle::equals | ( | Title $ | title | ) |
Compare with another title.
<b> | Title : $title |
Reimplemented from Title.
Definition at line 111 of file FakeTitle.php.
References error().
FakeTitle::error | ( | ) |
Definition at line 7 of file FakeTitle.php.
Referenced by __call(), areRestrictionsCascading(), canExist(), canTalk(), canUseNoindex(), countRevisionsBetween(), deleteTitleProtection(), equals(), escapeFullURL(), escapeLocalURL(), exists(), fixSpecialName(), getArticleID(), getBacklinkCache(), getBaseText(), getBrokenLinksFrom(), getCascadeProtectionSources(), getDBkey(), getDefaultNamespace(), getEarliestRevTime(), getEditURL(), getEscapedText(), getFirstRevision(), getFragment(), getFragmentForURL(), getFullText(), getFullURL(), getIndexTitle(), getInternalURL(), getInterwiki(), getLatestRevID(), getLength(), getLinksTo(), getLinkUrl(), getLocalURL(), getNamespace(), getNamespaceKey(), getNextRevisionID(), getNotificationTimestamp(), getNsText(), getParentCategories(), getParentCategoryTree(), getPartialURL(), getPrefixedDBkey(), getPrefixedText(), getPrefixedURL(), getPreviousRevisionID(), getRedirectsHere(), getRestrictionExpiry(), getRestrictions(), getRestrictionTypes(), getSkinFromCssJsSubpage(), getSquidURLs(), getSubjectNsText(), getSubjectPage(), getSubpages(), getSubpageText(), getSubpageUrlForm(), getTalkNsText(), getTalkPage(), getTemplateLinksTo(), getText(), getTouched(), getUserCaseDBKey(), getUserPermissionsErrors(), hasSubpages(), invalidateCache(), isAlwaysKnown(), isCascadeProtected(), isContentPage(), isConversionTable(), isCssJsSubpage(), isCssOrJsPage(), isCssSubpage(), isDeleted(), isDeletedQuick(), isExternal(), isJsSubpage(), isKnown(), isLocal(), isMovable(), isNamespaceProtected(), isNewPage(), isProtected(), isRedirect(), isSemiProtected(), isSingleRevRedirect(), isSpecial(), isSpecialPage(), isSubpage(), isTalkPage(), isTrans(), isValidCssJsSubpage(), isValidMoveOperation(), isValidMoveTarget(), isValidRedirectTarget(), isWatchable(), loadRestrictions(), loadRestrictionsFromRows(), moveNoAuth(), moveOverExistingRedirect(), moveSubpages(), moveTo(), moveToNewTitle(), pageCond(), purgeSquid(), quickUserCan(), resetArticleID(), setFragment(), touchLinks(), trackbackRDF(), trackbackURL(), updateTitleProtection(), userCan(), userCanEditCssJsSubpage(), userCanEditCssSubpage(), userCanEditJsSubpage(), userCanRead(), and userIsWatching().
FakeTitle::escapeFullURL | ( | $ | query = '' |
) |
Get an HTML-escaped version of the URL form, suitable for using in a link, including the server name and fragment.
$query | String : : an optional query string |
Reimplemented from Title.
Definition at line 40 of file FakeTitle.php.
References error().
FakeTitle::escapeLocalURL | ( | $ | query = '' |
) |
Get an HTML-escaped version of the URL form, suitable for using in a link, without a server name or fragment.
$query | String : : an optional query string |
Reimplemented from Title.
Definition at line 39 of file FakeTitle.php.
References error().
FakeTitle::exists | ( | ) |
Check if page exists.
For historical reasons, this function simply checks for the existence of the title in the page table, and will thus return false for interwiki links, special pages and the like. If you want to know if a title can be meaningfully viewed, you should probably call the isKnown() method instead.
Reimplemented from Title.
Definition at line 112 of file FakeTitle.php.
References error().
FakeTitle::fixSpecialName | ( | ) |
FakeTitle::getArticleID | ( | $ | flags = 0 |
) |
Get the article ID for this Title from the link cache, adding it if necessary.
$flags | Integer : : a bit field; may be GAID_FOR_UPDATE to select for update |
Reimplemented from Title.
Definition at line 79 of file FakeTitle.php.
References error().
FakeTitle::getBacklinkCache | ( | ) |
Get a backlink cache object.
Reimplemented from Title.
Definition at line 128 of file FakeTitle.php.
References error().
FakeTitle::getBaseText | ( | ) |
Get the base name, i.e.
the leftmost parts before the /
Reimplemented from Title.
Definition at line 32 of file FakeTitle.php.
References error().
FakeTitle::getBrokenLinksFrom | ( | ) |
Get an array of Title objects referring to non-existent articles linked from this page.
Reimplemented from Title.
Definition at line 90 of file FakeTitle.php.
References error().
FakeTitle::getCascadeProtectionSources | ( | $ | get_pages = true |
) |
Cascading protection: Get the source of any cascading restrictions on this page.
$get_pages | Boolean : : Whether or not to retrieve the actual pages that the restrictions have come from. |
Reimplemented from Title.
Definition at line 71 of file FakeTitle.php.
References error().
FakeTitle::getDBkey | ( | ) |
Get the main part with underscores.
Reimplemented from Title.
Definition at line 17 of file FakeTitle.php.
References error().
FakeTitle::getDefaultNamespace | ( | ) |
Get the default namespace index, for when there is no namespace.
Reimplemented from Title.
Definition at line 27 of file FakeTitle.php.
References error().
FakeTitle::getEarliestRevTime | ( | ) |
Get the oldest revision timestamp of this page.
Reimplemented from Title.
Definition at line 109 of file FakeTitle.php.
References error().
FakeTitle::getEditURL | ( | ) |
Get the edit URL for this Title.
Reimplemented from Title.
Definition at line 42 of file FakeTitle.php.
References error().
FakeTitle::getEscapedText | ( | ) |
Get the HTML-escaped displayable text form.
Used for the title field in tags.
Reimplemented from Title.
Definition at line 43 of file FakeTitle.php.
References error().
FakeTitle::getFirstRevision | ( | $ | flags = 0 |
) |
Get the first revision of the page.
$flags | Integer : : GAID_FOR_UPDATE |
Reimplemented from Title.
Definition at line 107 of file FakeTitle.php.
References error().
FakeTitle::getFragment | ( | ) |
FakeTitle::getFragmentForURL | ( | ) |
Get the fragment in URL form, including the "#" character if there is one.
Reimplemented from Title.
Definition at line 26 of file FakeTitle.php.
References error().
FakeTitle::getFullText | ( | ) |
Get the prefixed title with spaces, plus any fragment (part beginning with '#').
Reimplemented from Title.
Definition at line 31 of file FakeTitle.php.
References error().
FakeTitle::getFullURL | ( | $ | query = '' , |
|
$ | variant = false | |||
) |
Get a real URL referring to this title, with interwiki link and fragment.
$query | { String :,} an optional query string, not used for interwiki links. Can be specified as an associative array as well, e.g., array( 'action' => 'edit' ) (keys and values will be URL-escaped). | |
$variant | String : : language variant of url (for sr, zh..) |
Reimplemented from Title.
Definition at line 36 of file FakeTitle.php.
References error().
FakeTitle::getIndexTitle | ( | ) |
Get title for search index.
Reimplemented from Title.
Definition at line 28 of file FakeTitle.php.
References error().
FakeTitle::getInternalURL | ( | $ | query = '' , |
|
$ | variant = false | |||
) |
Get the URL form for an internal link.
$query | String : : an optional query string | |
$variant | String : : language variant of url (for sr, zh..) |
Reimplemented from Title.
Definition at line 41 of file FakeTitle.php.
References error().
FakeTitle::getInterwiki | ( | ) |
Get the interwiki prefix (or null string).
Reimplemented from Title.
Definition at line 24 of file FakeTitle.php.
References error().
FakeTitle::getLatestRevID | ( | $ | flags = 0 |
) |
What is the page_latest field for this page?
$flags | Integer : : a bit field; may be GAID_FOR_UPDATE to select for update |
Reimplemented from Title.
Definition at line 82 of file FakeTitle.php.
References error().
FakeTitle::getLength | ( | $ | flags = 0 |
) |
What is the length of this page? Uses link cache, adding it if necessary.
$flags | Integer : : a bit field; may be GAID_FOR_UPDATE to select for update |
Reimplemented from Title.
Definition at line 81 of file FakeTitle.php.
References error().
FakeTitle::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.
WARNING: do not use this function on arbitrary user-supplied titles! On heavily-used templates it will max out the memory.
array | $options may be FOR UPDATE |
Reimplemented from Title.
Definition at line 88 of file FakeTitle.php.
References error().
FakeTitle::getLinkUrl | ( | $ | query = array() , |
|
$ | variant = false | |||
) |
Get a URL that's the simplest URL that will be valid to link, locally, to the current Title.
It includes the fragment, but does not include the server unless action=render is used (or the link is external). If there's a fragment but the prefixed text is empty, we just return a link to the fragment.
The result obviously should not be URL-escaped, but does need to be HTML-escaped if it's being output in HTML.
$query | { String :} : An associative array of key => value pairs for the query string. Keys and values will be escaped. | |
$variant | String : : Language variant of URL (for sr, zh..). Ignored for external links. Default is "false" (same variant as current page, for anonymous users). |
Reimplemented from Title.
Definition at line 38 of file FakeTitle.php.
References error().
FakeTitle::getLocalURL | ( | $ | query = '' , |
|
$ | variant = false | |||
) |
Get a URL with no fragment or server name.
If this page is generated with action=render, $wgServer is prepended.
mixed | $query an optional query string; if not specified, $wgArticlePath will be used. Can be specified as an associative array as well, e.g., array( 'action' => 'edit' ) (keys and values will be URL-escaped). | |
$variant | String : : language variant of url (for sr, zh..) |
Reimplemented from Title.
Definition at line 37 of file FakeTitle.php.
References error().
FakeTitle::getNamespace | ( | ) |
Get the namespace index, i.e. one of the NS_xxxx constants.
Reimplemented from Title.
Definition at line 18 of file FakeTitle.php.
References error().
FakeTitle::getNamespaceKey | ( | $ | prepend = 'nstab-' |
) |
Generate strings used for xml 'id' names in monobook tabs.
Reimplemented from Title.
Definition at line 121 of file FakeTitle.php.
References error().
FakeTitle::getNextRevisionID | ( | $ | revId, | |
$ | flags = 0 | |||
) |
Get the revision ID of the next revision.
$revId | Integer : : Revision ID. Get the revision that was after this one. | |
$flags | Integer : : GAID_FOR_UPDATE |
Reimplemented from Title.
Definition at line 106 of file FakeTitle.php.
References error().
FakeTitle::getNotificationTimestamp | ( | $ | user = null |
) |
Get the timestamp when this page was updated since the user last saw it.
User | $user |
Reimplemented from Title.
Definition at line 118 of file FakeTitle.php.
References error().
FakeTitle::getNsText | ( | ) |
Get the namespace text.
Reimplemented from Title.
Definition at line 19 of file FakeTitle.php.
References error().
FakeTitle::getParentCategories | ( | ) |
Get categories to which this Title belongs and return an array of categories' names.
Reimplemented from Title.
Definition at line 102 of file FakeTitle.php.
References error().
FakeTitle::getParentCategoryTree | ( | $ | children = array() |
) |
Get a tree of parent categories.
$children | : an array with the children in the keys, to check for circular refs |
Reimplemented from Title.
Definition at line 103 of file FakeTitle.php.
References error().
FakeTitle::getPartialURL | ( | ) |
Get the URL-encoded form of the main part.
Reimplemented from Title.
Definition at line 16 of file FakeTitle.php.
References error().
FakeTitle::getPrefixedDBkey | ( | ) |
Get the prefixed database key form.
Reimplemented from Title.
Definition at line 29 of file FakeTitle.php.
References error().
FakeTitle::getPrefixedText | ( | ) |
Get the prefixed title with spaces.
This is the form usually used for display
Reimplemented from Title.
Definition at line 30 of file FakeTitle.php.
References error().
FakeTitle::getPrefixedURL | ( | ) |
Get a URL-encoded title (not an actual URL) including interwiki.
Reimplemented from Title.
Definition at line 35 of file FakeTitle.php.
References error().
FakeTitle::getPreviousRevisionID | ( | $ | revId, | |
$ | flags = 0 | |||
) |
Get the revision ID of the previous revision.
$revId | Integer : : Revision ID. Get the revision that was before this one. | |
$flags | Integer : : GAID_FOR_UPDATE |
Reimplemented from Title.
Definition at line 105 of file FakeTitle.php.
References error().
FakeTitle::getRedirectsHere | ( | $ | ns = null |
) |
FakeTitle::getRestrictionExpiry | ( | $ | action | ) |
Get the expiry time for the restriction against a given action.
Reimplemented from Title.
Definition at line 76 of file FakeTitle.php.
References error().
FakeTitle::getRestrictions | ( | $ | action | ) |
Accessor/initialisation for mRestrictions.
$action | String : : action that permission needs to be checked for |
Reimplemented from Title.
Definition at line 75 of file FakeTitle.php.
References error().
FakeTitle::getRestrictionTypes | ( | ) |
FakeTitle::getSkinFromCssJsSubpage | ( | ) |
Trim down a .css or .js subpage title to get the corresponding skin name.
Reimplemented from Title.
Definition at line 64 of file FakeTitle.php.
References error().
FakeTitle::getSquidURLs | ( | ) |
Get a list of URLs to purge from the Squid cache when this page changes.
Reimplemented from Title.
Definition at line 91 of file FakeTitle.php.
References error().
FakeTitle::getSubjectNsText | ( | ) |
Get the namespace text of the subject (rather than talk) page.
Reimplemented from Title.
Definition at line 21 of file FakeTitle.php.
References error().
FakeTitle::getSubjectPage | ( | ) |
Get a title object associated with the subject page of this talk page.
Reimplemented from Title.
Definition at line 87 of file FakeTitle.php.
References error().
FakeTitle::getSubpages | ( | $ | limit = -1 |
) |
Get all subpages of this page.
$limit | Maximum number of subpages to fetch; -1 for no limit |
Reimplemented from Title.
Definition at line 60 of file FakeTitle.php.
References error().
FakeTitle::getSubpageText | ( | ) |
Get the lowest-level subpage name, i.e.
the rightmost part after /
Reimplemented from Title.
Definition at line 33 of file FakeTitle.php.
References error().
FakeTitle::getSubpageUrlForm | ( | ) |
Get a URL-encoded form of the subpage text.
Reimplemented from Title.
Definition at line 34 of file FakeTitle.php.
References error().
FakeTitle::getTalkNsText | ( | ) |
Get the namespace text of the talk page.
Reimplemented from Title.
Definition at line 22 of file FakeTitle.php.
References error().
FakeTitle::getTalkPage | ( | ) |
FakeTitle::getTemplateLinksTo | ( | $ | options = array() |
) |
Get an array of Title objects using this Title as a template Also stores the IDs in the link cache.
WARNING: do not use this function on arbitrary user-supplied titles! On heavily-used templates it will max out the memory.
array | $options may be FOR UPDATE |
Reimplemented from Title.
Definition at line 89 of file FakeTitle.php.
References error().
FakeTitle::getText | ( | ) |
Simple accessors.
Get the text form (spaces not underscores) of the main part
Reimplemented from Title.
Definition at line 15 of file FakeTitle.php.
References error().
FakeTitle::getTouched | ( | $ | db = null |
) |
Get the last touched timestamp.
Database | $db, optional db |
Reimplemented from Title.
Definition at line 117 of file FakeTitle.php.
References error().
FakeTitle::getUserCaseDBKey | ( | ) |
Get the DB key with the initial letter case as specified by the user.
Reimplemented from Title.
Definition at line 20 of file FakeTitle.php.
References error().
FakeTitle::getUserPermissionsErrors | ( | $ | action, | |
$ | user, | |||
$ | doExpensiveQueries = true , |
|||
$ | ignoreErrors = array() | |||
) |
Can $user perform $action on this page?
FIXME: This *does not* check throttles (User::pingLimiter()).
$action | String : :action that permission needs to be checked for | |
$user | User : user to check | |
$doExpensiveQueries | Boolean : : Set this to false to avoid doing unnecessary queries. | |
$ignoreErrors | { String :} : Set this to a list of message keys whose corresponding errors may be ignored. |
Reimplemented from Title.
Definition at line 52 of file FakeTitle.php.
References error().
FakeTitle::hasSubpages | ( | ) |
Does this have subpages? (Warning, usually requires an extra DB query.
)
Reimplemented from Title.
Definition at line 59 of file FakeTitle.php.
References error().
FakeTitle::invalidateCache | ( | ) |
Updates page_touched for this page; called from LinksUpdate.php.
Reimplemented from Title.
Definition at line 84 of file FakeTitle.php.
References error().
FakeTitle::isAlwaysKnown | ( | ) |
Should links to this title be shown as potentially viewable (i.e.
as "bluelinks"), even if there's no record by this title in the page table?
This function is semi-deprecated for public use, as well as somewhat misleadingly named. You probably just want to call isKnown(), which calls this function internally.
(ISSUE: Most of these checks are cheap, but the file existence check can potentially be quite expensive. Including it here fixes a lot of existing code, but we might want to add an optional parameter to skip it and any other expensive checks.)
Reimplemented from Title.
Definition at line 113 of file FakeTitle.php.
References error().
FakeTitle::isCascadeProtected | ( | ) |
Cascading protection: Return true if cascading restrictions apply to this page, false if not.
Reimplemented from Title.
Definition at line 70 of file FakeTitle.php.
References error().
FakeTitle::isContentPage | ( | ) |
Is this Title in a namespace which contains content? In other words, is this a content page, for the purposes of calculating statistics, etc?
Reimplemented from Title.
Definition at line 125 of file FakeTitle.php.
References error().
FakeTitle::isConversionTable | ( | ) |
Is this a conversion table for the LanguageConverter?
Reimplemented from Title.
Definition at line 47 of file FakeTitle.php.
References error().
FakeTitle::isCssJsSubpage | ( | ) |
Is this a .css or .js subpage of a user page?
Reimplemented from Title.
Definition at line 61 of file FakeTitle.php.
References error().
FakeTitle::isCssOrJsPage | ( | ) |
Could this page contain custom CSS or JavaScript, based on the title?
Reimplemented from Title.
Definition at line 62 of file FakeTitle.php.
References error().
FakeTitle::isCssSubpage | ( | ) |
Is this a .css subpage of a user page?
Reimplemented from Title.
Definition at line 65 of file FakeTitle.php.
References error().
FakeTitle::isDeleted | ( | ) |
Is there a version of this page in the deletion archive?
Reimplemented from Title.
Definition at line 77 of file FakeTitle.php.
References error().
FakeTitle::isDeletedQuick | ( | ) |
Is there a version of this page in the deletion archive?
Reimplemented from Title.
Definition at line 78 of file FakeTitle.php.
References error().
FakeTitle::isExternal | ( | ) |
Is this Title interwiki?
Reimplemented from Title.
Definition at line 44 of file FakeTitle.php.
References error().
FakeTitle::isJsSubpage | ( | ) |
Is this a .js subpage of a user page?
Reimplemented from Title.
Definition at line 66 of file FakeTitle.php.
References error().
FakeTitle::isKnown | ( | ) |
Does this title refer to a page that can (or might) be meaningfully viewed? In particular, this function may be used to determine if links to the title should be rendered as "bluelinks" (as opposed to "redlinks" to non-existent pages).
Reimplemented from Title.
Definition at line 114 of file FakeTitle.php.
References error().
FakeTitle::isLocal | ( | ) |
Determine whether the object refers to a page within this project.
Reimplemented from Title.
Definition at line 13 of file FakeTitle.php.
References error().
FakeTitle::isMovable | ( | ) |
Would anybody with sufficient privileges be able to move this page? Some pages just aren't movable.
Reimplemented from Title.
Definition at line 55 of file FakeTitle.php.
References error().
FakeTitle::isNamespaceProtected | ( | ) |
Determines if $wgUser is unable to edit this page because it has been protected by $wgNamespaceProtection.
Reimplemented from Title.
Definition at line 50 of file FakeTitle.php.
References error().
FakeTitle::isNewPage | ( | ) |
Check if this is a new page.
Reimplemented from Title.
Definition at line 108 of file FakeTitle.php.
References error().
FakeTitle::isProtected | ( | $ | action = '' |
) |
Does the title correspond to a protected article?
$what | String : : the action the page is protected from, by default checks all actions. |
Reimplemented from Title.
Definition at line 46 of file FakeTitle.php.
References error().
FakeTitle::isRedirect | ( | $ | flags = 0 |
) |
Is this an article that is a redirect page? Uses link cache, adding it if necessary.
$flags | Integer : : a bit field; may be GAID_FOR_UPDATE to select for update |
Reimplemented from Title.
Definition at line 80 of file FakeTitle.php.
References error().
FakeTitle::isSemiProtected | ( | $ | action = 'edit' |
) |
Is this page "semi-protected" - the *only* protection is autoconfirm?
@action | String : : Action to check (default: edit) |
Reimplemented from Title.
Definition at line 45 of file FakeTitle.php.
References error().
FakeTitle::isSingleRevRedirect | ( | ) |
Checks if this page is just a one-rev redirect.
Adds lock, so don't use just for light purposes.
Reimplemented from Title.
Definition at line 99 of file FakeTitle.php.
References error().
FakeTitle::isSpecial | ( | $ | name | ) |
Returns true if this title resolves to the named special page.
$name | String : : The special page name |
Reimplemented from Title.
Definition at line 123 of file FakeTitle.php.
References error().
FakeTitle::isSpecialPage | ( | ) |
Returns true if this is a special page.
Reimplemented from Title.
Definition at line 122 of file FakeTitle.php.
References error().
FakeTitle::isSubpage | ( | ) |
Is this a subpage?
Reimplemented from Title.
Definition at line 58 of file FakeTitle.php.
References error().
FakeTitle::isTalkPage | ( | ) |
Is this a talk page of some sort?
Reimplemented from Title.
Definition at line 57 of file FakeTitle.php.
References error().
FakeTitle::isTrans | ( | ) |
Determine whether the object refers to a page within this project and is transcludable.
Reimplemented from Title.
Definition at line 14 of file FakeTitle.php.
References error().
FakeTitle::isValidCssJsSubpage | ( | ) |
Is this a *valid* .css or .js subpage of a user page? Check that the corresponding skin exists.
Reimplemented from Title.
Definition at line 63 of file FakeTitle.php.
References error().
FakeTitle::isValidMoveOperation | ( | &$ | nt, | |
$ | auth = true , |
|||
$ | reason = '' | |||
) |
Check whether a given move operation would be valid.
Returns true if ok, or a getUserPermissionsErrors()-like array otherwise
&$nt | Title : the new title | |
$auth | Boolean : : indicates whether $wgUser's permissions should be checked | |
$reason | String : : is the log summary of the move, used for spam checking |
Reimplemented from Title.
Definition at line 94 of file FakeTitle.php.
References error().
FakeTitle::isValidMoveTarget | ( | $ | nt | ) |
FakeTitle::isValidRedirectTarget | ( | ) |
Check if this Title is a valid redirect target.
Reimplemented from Title.
Definition at line 127 of file FakeTitle.php.
References error().
FakeTitle::isWatchable | ( | ) |
Can this title be added to a user's watchlist?
Reimplemented from Title.
Definition at line 101 of file FakeTitle.php.
References error().
FakeTitle::loadRestrictions | ( | $ | oldFashionedRestrictions = null |
) |
Load restrictions from the page_restrictions table.
Reimplemented from Title.
Definition at line 74 of file FakeTitle.php.
References error().
FakeTitle::loadRestrictionsFromRows | ( | $ | rows, | |
$ | oldFashionedRestrictions = null | |||
) |
FakeTitle::moveNoAuth | ( | &$ | nt | ) |
FakeTitle::moveOverExistingRedirect | ( | &$ | nt, | |
$ | reason = '' , |
|||
$ | createRedirect = true | |||
) |
Move page to a title which is at present a redirect to the source page.
&$nt | Title : the page to move to, which should currently be a redirect | |
$reason | String : : The reason for the move | |
$createRedirect | Boolean : : Whether to leave a redirect at the old title. Ignored if the user doesn't have the suppressredirect right |
Reimplemented from Title.
Definition at line 96 of file FakeTitle.php.
References error().
FakeTitle::moveSubpages | ( | $ | nt, | |
$ | auth = true , |
|||
$ | reason = '' , |
|||
$ | createRedirect = true | |||
) |
Move this page's subpages to be subpages of $nt.
$nt | Title Move target | |
$auth | bool Whether $wgUser's permissions should be checked | |
$reason | string The reason for the move | |
$createRedirect | bool Whether to create redirects from the old subpages to the new ones Ignored if the user doesn't have the 'suppressredirect' right |
Reimplemented from Title.
Definition at line 98 of file FakeTitle.php.
References error().
FakeTitle::moveTo | ( | &$ | nt, | |
$ | auth = true , |
|||
$ | reason = '' , |
|||
$ | createRedirect = true | |||
) |
Move a title to a new location.
&$nt | Title : the new title | |
$auth | Boolean : : indicates whether $wgUser's permissions should be checked | |
$reason | String : : The reason for the move | |
$createRedirect | Boolean : : Whether to create a redirect from the old title to the new title. Ignored if the user doesn't have the suppressredirect right. |
Reimplemented from Title.
Definition at line 95 of file FakeTitle.php.
References error().
FakeTitle::moveToNewTitle | ( | &$ | nt, | |
$ | reason = '' , |
|||
$ | createRedirect = true | |||
) |
Move page to non-existing title.
&$nt | {Title} the new Title | |
$reason | {} The reason for the move | |
$createRedirect | {} Whether to create a redirect from the old title to the new title Ignored if the user doesn't have the suppressredirect right |
Reimplemented from Title.
Definition at line 97 of file FakeTitle.php.
References error().
FakeTitle::pageCond | ( | ) |
Get an associative array for selecting this title from the "page" table.
Reimplemented from Title.
Definition at line 104 of file FakeTitle.php.
References error().
FakeTitle::purgeSquid | ( | ) |
Purge all applicable Squid URLs.
Reimplemented from Title.
Definition at line 92 of file FakeTitle.php.
References error().
FakeTitle::quickUserCan | ( | $ | action | ) |
Can $wgUser perform $action on this page? This skips potentially expensive cascading permission checks as well as avoids expensive error formatting.
Suitable for use for nonessential UI controls in common cases, but _not_ for functional access control.
May provide false positives, but should never provide a false negative.
$action | String : : action that permission needs to be checked for |
Reimplemented from Title.
Definition at line 49 of file FakeTitle.php.
References error().
FakeTitle::resetArticleID | ( | $ | newid | ) |
This clears some fields in this object, and clears any associated keys in the "bad links" section of the link cache.
$newid | Integer : : the new Article ID |
Reimplemented from Title.
Definition at line 83 of file FakeTitle.php.
References error().
FakeTitle::setFragment | ( | $ | fragment | ) |
Set the fragment for this title.
Removes the first character from the specified fragment before setting, so it assumes you're passing it with an initial "#".
Deprecated for public use, use Title::makeTitle() with fragment parameter. Still in active use privately.
$fragment | String : : text |
Reimplemented from Title.
Definition at line 86 of file FakeTitle.php.
References error().
FakeTitle::touchLinks | ( | ) |
Update page_touched timestamps and send squid purge messages for pages linking to this title.
May be sent to the job queue depending on the number of links. Typically called on create and delete.
Reimplemented from Title.
Definition at line 116 of file FakeTitle.php.
References error().
FakeTitle::trackbackRDF | ( | ) |
Get the trackback RDF for this page.
Reimplemented from Title.
Definition at line 120 of file FakeTitle.php.
References error().
FakeTitle::trackbackURL | ( | ) |
Get the trackback URL for this page.
Reimplemented from Title.
Definition at line 119 of file FakeTitle.php.
References error().
FakeTitle::updateTitleProtection | ( | $ | create_perm, | |
$ | reason, | |||
$ | expiry | |||
) |
Update the title protection status.
$create_perm | String : : Permission required for creation | |
$reason | String : : Reason for protection | |
$expiry | String : : Expiry timestamp |
Reimplemented from Title.
Definition at line 53 of file FakeTitle.php.
References error().
FakeTitle::userCan | ( | $ | action, | |
$ | doExpensiveQueries = true | |||
) |
Can $wgUser perform $action on this page?
$action | String : : action that permission needs to be checked for | |
$doExpensiveQueries | Boolean : : Set this to false to avoid doing unnecessary queries. |
Reimplemented from Title.
Definition at line 51 of file FakeTitle.php.
References error().
FakeTitle::userCanEditCssJsSubpage | ( | ) |
FakeTitle::userCanEditCssSubpage | ( | ) |
FakeTitle::userCanEditJsSubpage | ( | ) |
FakeTitle::userCanRead | ( | ) |
FakeTitle::userIsWatching | ( | ) |
Is $wgUser watching this page?
Reimplemented from Title.
Definition at line 48 of file FakeTitle.php.
References error().