Localisation updates from http://translatewiki.net.
[lhc/web/wiklou.git] / includes / FakeTitle.php
index d32c936..efa213f 100644 (file)
@@ -1,4 +1,24 @@
 <?php
+/**
+ * Fake title class that triggers an error if any members are called.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @file
+ */
 
 /**
  * Fake title class that triggers an error if any members are called
@@ -32,8 +52,8 @@ class FakeTitle extends Title {
        function getFullURL( $query = '', $variant = false ) { $this->error(); }
        function getLocalURL( $query = '', $variant = false ) { $this->error(); }
        function getLinkURL( $query = array(), $variant = false ) { $this->error(); }
-       function escapeLocalURL( $query = '' ) { $this->error(); }
-       function escapeFullURL( $query = '' ) { $this->error(); }
+       function escapeLocalURL( $query = '', $query2 = false ) { $this->error(); }
+       function escapeFullURL( $query = '', $query2 = false ) { $this->error(); }
        function getInternalURL( $query = '', $variant = false ) { $this->error(); }
        function getEditURL() { $this->error(); }
        function getEscapedText() { $this->error(); }
@@ -42,9 +62,9 @@ class FakeTitle extends Title {
        function isProtected( $action = '' ) { $this->error(); }
        function isConversionTable() { $this->error(); }
        function userIsWatching() { $this->error(); }
-       function quickUserCan( $action ) { $this->error(); }
-       function isNamespaceProtected() { $this->error(); }
-       function userCan( $action, $doExpensiveQueries = true ) { $this->error(); }
+       function quickUserCan( $action, $user = null ) { $this->error(); }
+       function isNamespaceProtected( User $user ) { $this->error(); }
+       function userCan( $action, $user = null, $doExpensiveQueries = true ) { $this->error(); }
        function getUserPermissionsErrors( $action, $user, $doExpensiveQueries = true, $ignoreErrors = array() ) { $this->error(); }
        function updateTitleProtection( $create_perm, $reason, $expiry ) { $this->error(); }
        function deleteTitleProtection() { $this->error(); }
@@ -59,14 +79,13 @@ class FakeTitle extends Title {
        function getSkinFromCssJsSubpage() { $this->error(); }
        function isCssSubpage() { $this->error(); }
        function isJsSubpage() { $this->error(); }
-       function userCanEditCssJsSubpage() { $this->error(); }
        function userCanEditCssSubpage() { $this->error(); }
        function userCanEditJsSubpage() { $this->error(); }
        function isCascadeProtected() { $this->error(); }
        function getCascadeProtectionSources( $get_pages = true ) { $this->error(); }
        function areRestrictionsCascading() { $this->error(); }
-       function loadRestrictionsFromRows( $rows ) { $this->error(); }
-       function loadRestrictions() { $this->error(); }
+       function loadRestrictionsFromRows( $rows, $oldFashionedRestrictions = null ) { $this->error(); }
+       function loadRestrictions( $res = null ) { $this->error(); }
        function getRestrictions( $action ) { $this->error(); }
        function getRestrictionExpiry( $action ) { $this->error(); }
        function isDeleted() { $this->error(); }
@@ -88,8 +107,6 @@ class FakeTitle extends Title {
        function moveNoAuth( &$nt ) { $this->error(); }
        function isValidMoveOperation( &$nt, $auth = true, $reason = '' ) { $this->error(); }
        function moveTo( &$nt, $auth = true, $reason = '', $createRedirect = true ) { $this->error(); }
-       function moveOverExistingRedirect( &$nt, $reason = '', $createRedirect = true ) { $this->error(); }
-       function moveToNewTitle( &$nt, $reason = '', $createRedirect = true ) { $this->error(); }
        function moveSubpages( $nt, $auth = true, $reason = '', $createRedirect = true ) { $this->error(); }
        function isSingleRevRedirect() { $this->error(); }
        function isValidMoveTarget( $nt ) { $this->error(); }
@@ -97,11 +114,11 @@ class FakeTitle extends Title {
        function getParentCategories() { $this->error(); }
        function getParentCategoryTree( $children = array() ) { $this->error(); }
        function pageCond() { $this->error(); }
-       function getPreviousRevisionID( $revId, $flags=0 ) { $this->error(); }
-       function getNextRevisionID( $revId, $flags=0 ) { $this->error(); }
-       function getFirstRevision( $flags=0 ) { $this->error(); }
+       function getPreviousRevisionID( $revId, $flags = 0 ) { $this->error(); }
+       function getNextRevisionID( $revId, $flags = 0 ) { $this->error(); }
+       function getFirstRevision( $flags = 0 ) { $this->error(); }
        function isNewPage() { $this->error(); }
-       function getEarliestRevTime() { $this->error(); }
+       function getEarliestRevTime( $flags = 0 ) { $this->error(); }
        function countRevisionsBetween( $old, $new ) { $this->error(); }
        function equals( Title $title ) { $this->error(); }
        function exists() { $this->error(); }
@@ -109,7 +126,7 @@ class FakeTitle extends Title {
        function isKnown() { $this->error(); }
        function canExist() { $this->error(); }
        function touchLinks() { $this->error(); }
-       function getTouched() { $this->error(); }
+       function getTouched( $db = null ) { $this->error(); }
        function getNotificationTimestamp( $user = null ) { $this->error(); }
        function getNamespaceKey( $prepend = 'nstab-' ) { $this->error(); }
        function isSpecialPage() { $this->error(); }