thumb_handler.php doesn't seem to extract path_info correctly
[mediawiki.git] / includes / FakeTitle.php
blobefa213fbe56f59b711b293b9c0c26b7b89f5301b
1 <?php
2 /**
3 * Fake title class that triggers an error if any members are called.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * http://www.gnu.org/copyleft/gpl.html
20 * @file
23 /**
24 * Fake title class that triggers an error if any members are called
26 class FakeTitle extends Title {
27 function error() { throw new MWException( "Attempt to call member function of FakeTitle\n" ); }
29 function isLocal() { $this->error(); }
30 function isTrans() { $this->error(); }
31 function getText() { $this->error(); }
32 function getPartialURL() { $this->error(); }
33 function getDBkey() { $this->error(); }
34 function getNamespace() { $this->error(); }
35 function getNsText() { $this->error(); }
36 function getUserCaseDBKey() { $this->error(); }
37 function getSubjectNsText() { $this->error(); }
38 function getTalkNsText() { $this->error(); }
39 function canTalk() { $this->error(); }
40 function getInterwiki() { $this->error(); }
41 function getFragment() { $this->error(); }
42 function getFragmentForURL() { $this->error(); }
43 function getDefaultNamespace() { $this->error(); }
44 function getIndexTitle() { $this->error(); }
45 function getPrefixedDBkey() { $this->error(); }
46 function getPrefixedText() { $this->error(); }
47 function getFullText() { $this->error(); }
48 function getBaseText() { $this->error(); }
49 function getSubpageText() { $this->error(); }
50 function getSubpageUrlForm() { $this->error(); }
51 function getPrefixedURL() { $this->error(); }
52 function getFullURL( $query = '', $variant = false ) { $this->error(); }
53 function getLocalURL( $query = '', $variant = false ) { $this->error(); }
54 function getLinkURL( $query = array(), $variant = false ) { $this->error(); }
55 function escapeLocalURL( $query = '', $query2 = false ) { $this->error(); }
56 function escapeFullURL( $query = '', $query2 = false ) { $this->error(); }
57 function getInternalURL( $query = '', $variant = false ) { $this->error(); }
58 function getEditURL() { $this->error(); }
59 function getEscapedText() { $this->error(); }
60 function isExternal() { $this->error(); }
61 function isSemiProtected( $action = 'edit' ) { $this->error(); }
62 function isProtected( $action = '' ) { $this->error(); }
63 function isConversionTable() { $this->error(); }
64 function userIsWatching() { $this->error(); }
65 function quickUserCan( $action, $user = null ) { $this->error(); }
66 function isNamespaceProtected( User $user ) { $this->error(); }
67 function userCan( $action, $user = null, $doExpensiveQueries = true ) { $this->error(); }
68 function getUserPermissionsErrors( $action, $user, $doExpensiveQueries = true, $ignoreErrors = array() ) { $this->error(); }
69 function updateTitleProtection( $create_perm, $reason, $expiry ) { $this->error(); }
70 function deleteTitleProtection() { $this->error(); }
71 function isMovable() { $this->error(); }
72 function userCanRead() { $this->error(); }
73 function isTalkPage() { $this->error(); }
74 function isSubpage() { $this->error(); }
75 function hasSubpages() { $this->error(); }
76 function getSubpages( $limit = -1 ) { $this->error(); }
77 function isCssJsSubpage() { $this->error(); }
78 function isCssOrJsPage() { $this->error(); }
79 function getSkinFromCssJsSubpage() { $this->error(); }
80 function isCssSubpage() { $this->error(); }
81 function isJsSubpage() { $this->error(); }
82 function userCanEditCssSubpage() { $this->error(); }
83 function userCanEditJsSubpage() { $this->error(); }
84 function isCascadeProtected() { $this->error(); }
85 function getCascadeProtectionSources( $get_pages = true ) { $this->error(); }
86 function areRestrictionsCascading() { $this->error(); }
87 function loadRestrictionsFromRows( $rows, $oldFashionedRestrictions = null ) { $this->error(); }
88 function loadRestrictions( $res = null ) { $this->error(); }
89 function getRestrictions( $action ) { $this->error(); }
90 function getRestrictionExpiry( $action ) { $this->error(); }
91 function isDeleted() { $this->error(); }
92 function isDeletedQuick() { $this->error(); }
93 function getArticleID( $flags = 0 ) { $this->error(); }
94 function isRedirect( $flags = 0 ) { $this->error(); }
95 function getLength( $flags = 0 ) { $this->error(); }
96 function getLatestRevID( $flags = 0 ) { $this->error(); }
97 function resetArticleID( $newid ) { $this->error(); }
98 function invalidateCache() { $this->error(); }
99 function getTalkPage() { $this->error(); }
100 function setFragment( $fragment ) { $this->error(); }
101 function getSubjectPage() { $this->error(); }
102 function getLinksTo( $options = array(), $table = 'pagelinks', $prefix = 'pl' ) { $this->error(); }
103 function getTemplateLinksTo( $options = array() ) { $this->error(); }
104 function getBrokenLinksFrom() { $this->error(); }
105 function getSquidURLs() { $this->error(); }
106 function purgeSquid() { $this->error(); }
107 function moveNoAuth( &$nt ) { $this->error(); }
108 function isValidMoveOperation( &$nt, $auth = true, $reason = '' ) { $this->error(); }
109 function moveTo( &$nt, $auth = true, $reason = '', $createRedirect = true ) { $this->error(); }
110 function moveSubpages( $nt, $auth = true, $reason = '', $createRedirect = true ) { $this->error(); }
111 function isSingleRevRedirect() { $this->error(); }
112 function isValidMoveTarget( $nt ) { $this->error(); }
113 function isWatchable() { $this->error(); }
114 function getParentCategories() { $this->error(); }
115 function getParentCategoryTree( $children = array() ) { $this->error(); }
116 function pageCond() { $this->error(); }
117 function getPreviousRevisionID( $revId, $flags = 0 ) { $this->error(); }
118 function getNextRevisionID( $revId, $flags = 0 ) { $this->error(); }
119 function getFirstRevision( $flags = 0 ) { $this->error(); }
120 function isNewPage() { $this->error(); }
121 function getEarliestRevTime( $flags = 0 ) { $this->error(); }
122 function countRevisionsBetween( $old, $new ) { $this->error(); }
123 function equals( Title $title ) { $this->error(); }
124 function exists() { $this->error(); }
125 function isAlwaysKnown() { $this->error(); }
126 function isKnown() { $this->error(); }
127 function canExist() { $this->error(); }
128 function touchLinks() { $this->error(); }
129 function getTouched( $db = null ) { $this->error(); }
130 function getNotificationTimestamp( $user = null ) { $this->error(); }
131 function getNamespaceKey( $prepend = 'nstab-' ) { $this->error(); }
132 function isSpecialPage() { $this->error(); }
133 function isSpecial( $name ) { $this->error(); }
134 function fixSpecialName() { $this->error(); }
135 function isContentPage() { $this->error(); }
136 function getRedirectsHere( $ns = null ) { $this->error(); }
137 function isValidRedirectTarget() { $this->error(); }
138 function getBacklinkCache() { $this->error(); }
139 function canUseNoindex() { $this->error(); }
140 function getRestrictionTypes() { $this->error(); }