]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blob - includes/FakeTitle.php
MediaWiki 1.16.4
[autoinstalls/mediawiki.git] / includes / FakeTitle.php
1 <?php
2
3 /**
4  * Fake title class that triggers an error if any members are called
5  */
6 class FakeTitle extends Title {
7         function error() { throw new MWException( "Attempt to call member function of FakeTitle\n" ); }
8
9         // PHP 5.1 method overload
10         function __call( $name, $args ) { $this->error(); }
11
12         // PHP <5.1 compatibility
13         function isLocal() { $this->error(); }
14         function isTrans() { $this->error(); }
15         function getText() { $this->error(); }
16         function getPartialURL() { $this->error(); }
17         function getDBkey() { $this->error(); }
18         function getNamespace() { $this->error(); }
19         function getNsText() { $this->error(); }
20         function getUserCaseDBKey() { $this->error(); }
21         function getSubjectNsText() { $this->error(); }
22         function getTalkNsText() { $this->error(); }
23         function canTalk() { $this->error(); }
24         function getInterwiki() { $this->error(); }
25         function getFragment() { $this->error(); }
26         function getFragmentForURL() { $this->error(); }
27         function getDefaultNamespace() { $this->error(); }
28         function getIndexTitle() { $this->error(); }
29         function getPrefixedDBkey() { $this->error(); }
30         function getPrefixedText() { $this->error(); }
31         function getFullText() { $this->error(); }
32         function getBaseText() { $this->error(); }
33         function getSubpageText() { $this->error(); }
34         function getSubpageUrlForm() { $this->error(); }
35         function getPrefixedURL() { $this->error(); }
36         function getFullURL( $query = '', $variant = false ) {$this->error(); }
37         function getLocalURL( $query = '', $variant = false ) { $this->error(); }
38         function getLinkUrl( $query = array(), $variant = false ) { $this->error(); }
39         function escapeLocalURL( $query = '' ) { $this->error(); }
40         function escapeFullURL( $query = '' ) { $this->error(); }
41         function getInternalURL( $query = '', $variant = false ) { $this->error(); }
42         function getEditURL() { $this->error(); }
43         function getEscapedText() { $this->error(); }
44         function isExternal() { $this->error(); }
45         function isSemiProtected( $action = 'edit' ) { $this->error(); }
46         function isProtected( $action = '' ) { $this->error(); }
47         function isConversionTable() { $this->error(); }
48         function userIsWatching() { $this->error(); }
49         function quickUserCan( $action ) { $this->error(); }
50         function isNamespaceProtected() { $this->error(); }
51         function userCan( $action, $doExpensiveQueries = true ) { $this->error(); }
52         function getUserPermissionsErrors( $action, $user, $doExpensiveQueries = true, $ignoreErrors = array() ) { $this->error(); }
53         function updateTitleProtection( $create_perm, $reason, $expiry ) { $this->error(); }
54         function deleteTitleProtection() { $this->error(); }
55         function isMovable() { $this->error(); }
56         function userCanRead() { $this->error(); }
57         function isTalkPage() { $this->error(); }
58         function isSubpage() { $this->error(); }
59         function hasSubpages() { $this->error(); }
60         function getSubpages( $limit = -1 ) { $this->error(); }
61         function isCssJsSubpage() { $this->error(); }
62         function isCssOrJsPage() { $this->error(); }
63         function isValidCssJsSubpage() { $this->error(); }
64         function getSkinFromCssJsSubpage() { $this->error(); }
65         function isCssSubpage() { $this->error(); }
66         function isJsSubpage() { $this->error(); }
67         function userCanEditCssJsSubpage() { $this->error(); }
68         function userCanEditCssSubpage() { $this->error(); }
69         function userCanEditJsSubpage() { $this->error(); }
70         function isCascadeProtected() { $this->error(); }
71         function getCascadeProtectionSources( $get_pages = true ) { $this->error(); }
72         function areRestrictionsCascading() { $this->error(); }
73         function loadRestrictionsFromRows( $rows, $oldFashionedRestrictions = null ) { $this->error(); }
74         function loadRestrictions( $res = null ) { $this->error(); }
75         function getRestrictions( $action ) { $this->error(); }
76         function getRestrictionExpiry( $action ) { $this->error(); }
77         function isDeleted() { $this->error(); }
78         function isDeletedQuick() { $this->error(); }
79         function getArticleID( $flags = 0 ) { $this->error(); }
80         function isRedirect( $flags = 0 ) { $this->error(); }
81         function getLength( $flags = 0 ) { $this->error(); }
82         function getLatestRevID( $flags = 0 ) { $this->error(); }
83         function resetArticleID( $newid ) { $this->error(); }
84         function invalidateCache() { $this->error(); }
85         function getTalkPage() { $this->error(); }
86         function setFragment( $fragment ) { $this->error(); }
87         function getSubjectPage() { $this->error(); }
88         function getLinksTo( $options = array(), $table = 'pagelinks', $prefix = 'pl' ) { $this->error(); }
89         function getTemplateLinksTo( $options = array() ) { $this->error(); }
90         function getBrokenLinksFrom() { $this->error(); }
91         function getSquidURLs() { $this->error(); }
92         function purgeSquid() { $this->error(); }
93         function moveNoAuth( &$nt ) { $this->error(); }
94         function isValidMoveOperation( &$nt, $auth = true, $reason = '' ) { $this->error(); }
95         function moveTo( &$nt, $auth = true, $reason = '', $createRedirect = true ) { $this->error(); }
96         function moveOverExistingRedirect( &$nt, $reason = '', $createRedirect = true ) { $this->error(); }
97         function moveToNewTitle( &$nt, $reason = '', $createRedirect = true ) { $this->error(); }
98         function moveSubpages( $nt, $auth = true, $reason = '', $createRedirect = true ) { $this->error(); }
99         function isSingleRevRedirect() { $this->error(); }
100         function isValidMoveTarget( $nt ) { $this->error(); }
101         function isWatchable() { $this->error(); }
102         function getParentCategories() { $this->error(); }
103         function getParentCategoryTree( $children = array() ) { $this->error(); }
104         function pageCond() { $this->error(); }
105         function getPreviousRevisionID( $revId, $flags=0 ) { $this->error(); }
106         function getNextRevisionID( $revId, $flags=0 ) { $this->error(); }
107         function getFirstRevision( $flags=0 ) { $this->error(); }
108         function isNewPage() { $this->error(); }
109         function getEarliestRevTime() { $this->error(); }
110         function countRevisionsBetween( $old, $new ) { $this->error(); }
111         function equals( Title $title ) { $this->error(); }
112         function exists() { $this->error(); }
113         function isAlwaysKnown() { $this->error(); }
114         function isKnown() { $this->error(); }
115         function canExist() { $this->error(); }
116         function touchLinks() { $this->error(); }
117         function getTouched( $db = null ) { $this->error(); }
118         function getNotificationTimestamp( $user = null ) { $this->error(); }
119         function trackbackURL() { $this->error(); }
120         function trackbackRDF() { $this->error(); }
121         function getNamespaceKey( $prepend = 'nstab-' ) { $this->error(); }
122         function isSpecialPage() { $this->error(); }
123         function isSpecial( $name ) { $this->error(); }
124         function fixSpecialName() { $this->error(); }
125         function isContentPage() { $this->error(); }
126         function getRedirectsHere( $ns = null ) { $this->error(); }
127         function isValidRedirectTarget() { $this->error(); }
128         function getBacklinkCache() { $this->error(); }
129         function canUseNoindex() { $this->error(); }
130         function getRestrictionTypes() { $this->error(); }
131 }