*
* @param $text string article content containing redirect info
* @return mixed false, Title of in-wiki target, or string with URL
- * @deprecated
+ * @deprecated @since 1.17
*/
public function followRedirectText( $text ) {
// recurse through to only get the final target
/**
* This function is not deprecated until somebody fixes the core not to use
* it. Nevertheless, use Article::doEdit() instead.
+ * @deprecated @since 1.7
*/
function insertNewArticle( $text, $summary, $isminor, $watchthis, $suppressRC = false, $comment = false, $bot = false ) {
$flags = EDIT_NEW | EDIT_DEFER_UPDATES | EDIT_AUTOSUMMARY |
}
/**
- * @deprecated use Article::doEdit()
+ * @deprecated @since 1.7 use Article::doEdit()
*/
function updateArticle( $text, $summary, $minor, $watchthis, $forceBot = false, $sectionanchor = '' ) {
$flags = EDIT_UPDATE | EDIT_DEFER_UPDATES | EDIT_AUTOSUMMARY |
return $status;
}
- /**
- * @deprecated wrapper for doRedirect
- */
- public function showArticle( $text, $subtitle , $sectionanchor = '', $me2, $now, $summary, $oldid ) {
- wfDeprecated( __METHOD__ );
- $this->doRedirect( $this->isRedirect( $text ), $sectionanchor );
- }
-
/**
* Output a redirect back to the article.
* This is typically used after an edit.
}
}
- // Deprecated methods
- /**
- * Get the database which should be used for reads
- *
- * @return Database
- * @deprecated - just call wfGetDB( DB_MASTER ) instead
- */
- function getDB() {
- wfDeprecated( __METHOD__ );
- return wfGetDB( DB_MASTER );
- }
-
}
class PoolWorkArticleView extends PoolCounterWork {
wfProfileOut( __METHOD__ );
}
- /**
- * @deprecated Use wfSetupSession().
- */
- function SetupSession() {
- wfDeprecated( __METHOD__ );
- wfSetupSession();
- }
-
/**
* Load user data from the session or login cookie. If there are no valid
* credentials, initialises the user as an anonymous user.
return !$this->isLoggedIn();
}
- /**
- * Get whether the user is a bot
- * @return Bool
- * @deprecated use isAllowed('bot')
- */
- function isBot() {
- wfDeprecated( __METHOD__ );
- return $this->isAllowed( 'bot' );
- }
-
/**
* Check if user is allowed to access a feature / make an action
* @param $action String action to be checked
* which will give them a chance to modify this key based on their own
* settings.
*
- * @deprecated use the ParserOptions object to get the relevant options
+ * @deprecated @since 1.17 use the ParserOptions object to get the relevant options
* @return String Page rendering hash
*/
function getPageRenderingHash() {