* This function has side effects! Do not use this function if you
* only want the real revision text if any.
*
- * @deprecated in 1.21; use WikiPage::getContent() instead
+ * @deprecated since 1.21; use WikiPage::getContent() instead
*
* @return string Return the text of this revision
*/
/**
* Load the revision (including text) into this object
*
- * @deprecated in 1.19; use fetchContent()
+ * @deprecated since 1.19; use fetchContent()
*/
function loadContent() {
wfDeprecated( __METHOD__, '1.19' );
* has to remain public for now.
*
* @return mixed string containing article contents, or false if null
- * @deprecated in 1.21, use WikiPage::getContent() instead
+ * @deprecated since 1.21, use WikiPage::getContent() instead
*/
function fetchContent() { #BC cruft!
ContentHandler::deprecated( __METHOD__, '1.21' );
* Do a binary search, and return the index of the largest item that sorts
* less than or equal to the target value.
*
- * @deprecated in 1.23; use ArrayUtils::findLowerBound() instead
+ * @deprecated since 1.23; use ArrayUtils::findLowerBound() instead
*
* @param array $valueCallback A function to call to get the value with
* a given array index.
* Show a read-only error
* Parameters are the same as OutputPage:readOnlyPage()
* Redirect to the article page if redlink=1
- * @deprecated in 1.19; use displayPermissionsError() instead
+ * @deprecated since 1.19; use displayPermissionsError() instead
*/
function readOnlyPage( $source = null, $protected = false, $reasons = array(), $action = null ) {
wfDeprecated( __METHOD__, '1.19' );
/**
* Call the stock "user is blocked" page
*
- * @deprecated in 1.19; throw an exception directly instead
+ * @deprecated since 1.19; throw an exception directly instead
*/
function blockedPage() {
wfDeprecated( __METHOD__, '1.19' );
/**
* Produce the stock "please login to edit pages" page
*
- * @deprecated in 1.19; throw an exception directly instead
+ * @deprecated since 1.19; throw an exception directly instead
*/
function userNotLoggedInPage() {
wfDeprecated( __METHOD__, '1.19' );
* Show an error page saying to the user that he has insufficient permissions
* to create a new page
*
- * @deprecated in 1.19; throw an exception directly instead
+ * @deprecated since 1.19; throw an exception directly instead
*/
function noCreatePermission() {
wfDeprecated( __METHOD__, '1.19' );
class XmlDumpWriter {
/**
* Returns the export schema version.
- * @deprecated in 1.20; use WikiExporter::schemaVersion() instead
+ * @deprecated since 1.20; use WikiExporter::schemaVersion() instead
* @return string
*/
function schemaVersion() {
* @param string $query optional URL query parameter string
* @param bool $atend optional param for specified if this is the last page
* @return string
- * @deprecated in 1.19; use Language::viewPrevNext() instead
+ * @deprecated since 1.19; use Language::viewPrevNext() instead
*/
function wfViewPrevNext( $offset, $limit, $link, $query = '', $atend = false ) {
wfDeprecated( __METHOD__, '1.19' );
* Work out the IP address based on various globals
* For trusted proxies, use the XFF client IP (first of the chain)
*
- * @deprecated in 1.19; call $wgRequest->getIP() directly.
+ * @deprecated since 1.19; call $wgRequest->getIP() directly.
* @return string
*/
function wfGetIP() {
/**
* Add $str to the subtitle
*
- * @deprecated in 1.19; use addSubtitle() instead
+ * @deprecated since 1.19; use addSubtitle() instead
* @param string|Message $str to add to the subtitle
*/
public function appendSubtitle( $str ) {
/**
* Produce the stock "please login to use the wiki" page
*
- * @deprecated in 1.19; throw the exception directly
+ * @deprecated since 1.19; throw the exception directly
*/
public function loginToUse() {
throw new PermissionsError( 'read' );
* Caller is responsible for checking $wgAuth and 'editmyprivateinfo'
* right.
*
- * @deprecated in 1.20; use User::setEmailWithConfirmation() instead.
+ * @deprecated since 1.20; use User::setEmailWithConfirmation() instead.
* @param $user User
* @param string $newaddr New email address
* @return Array (true on success or Status on failure, info string)
}
/**
- * @deprecated in 1.19
+ * @deprecated since 1.19
* @param $user User
* @return array
*/
* @param $user User object to check for, only if FOR_THIS_USER is passed
* to the $audience parameter
*
- * @deprecated in 1.21, use getContent() instead
+ * @deprecated since 1.21, use getContent() instead
* @todo Replace usage in core
* @return String
*/
/**
* Make a "<script>" tag containing global variables
*
- * @deprecated in 1.19
+ * @deprecated since 1.19
* @param $unused
* @return string HTML fragment
*/
/**
* Is $wgUser watching this page?
*
- * @deprecated in 1.20; use User::isWatched() instead.
+ * @deprecated since 1.20; use User::isWatched() instead.
* @return Bool
*/
public function userIsWatching() {
/**
* Can $wgUser read this page?
*
- * @deprecated in 1.19; use userCan(), quickUserCan() or getUserPermissionsErrors() instead
+ * @deprecated since 1.19; use userCan(), quickUserCan() or getUserPermissionsErrors() instead
* @return Bool
*/
public function userCanRead() {
/**
* Update the title protection status
*
- * @deprecated in 1.19; use WikiPage::doUpdateRestrictions() instead.
+ * @deprecated since 1.19; use WikiPage::doUpdateRestrictions() instead.
* @param $create_perm String Permission required for creation
* @param string $reason Reason for protection
* @param string $expiry Expiry timestamp
* Set this user's options from an encoded string
* @param string $str Encoded options to import
*
- * @deprecated in 1.19 due to removal of user_options from the user table
+ * @deprecated since 1.19 due to removal of user_options from the user table
*/
private function decodeOptions( $str ) {
wfDeprecated( __METHOD__, '1.19' );
* @param $user User object to check for, only if FOR_THIS_USER is passed
* to the $audience parameter
* @return String|false The text of the current revision
- * @deprecated as of 1.21, getContent() should be used instead.
+ * @deprecated since 1.21, getContent() should be used instead.
*/
public function getText( $audience = Revision::FOR_PUBLIC, User $user = null ) { // @todo deprecated, replace usage!
ContentHandler::deprecated( __METHOD__, '1.21' );
* Get the text of the current revision. No side-effects...
*
* @return String|bool The text of the current revision. False on failure
- * @deprecated as of 1.21, getContent() should be used instead.
+ * @deprecated since 1.21, getContent() should be used instead.
*/
public function getRawText() {
ContentHandler::deprecated( __METHOD__, '1.21' );
* Prepare text which is about to be saved.
* Returns a stdclass with source, pst and output members
*
- * @deprecated in 1.21: use prepareContentForEdit instead.
+ * @deprecated since 1.21: use prepareContentForEdit instead.
*/
public function prepareTextForEdit( $text, $revid = null, User $user = null ) {
ContentHandler::deprecated( __METHOD__, '1.21' );
* Return a list of templates used by this article.
* Uses the templatelinks table
*
- * @deprecated in 1.19; use Title::getTemplateLinksFrom()
+ * @deprecated since 1.19; use Title::getTemplateLinksFrom()
* @return Array of Title objects
*/
public function getUsedTemplates() {
* This function is called right before saving the wikitext,
* so we can do things like signatures and links-in-context.
*
- * @deprecated in 1.19; use Parser::preSaveTransform() instead
+ * @deprecated since 1.19; use Parser::preSaveTransform() instead
* @param string $text article contents
* @param $user User object: user doing the edit
* @param $popts ParserOptions object: parser options, default options for
/**
* Check whether the number of revisions of this page surpasses $wgDeleteRevisionsLimit
*
- * @deprecated in 1.19; use Title::isBigDeletion() instead.
+ * @deprecated since 1.19; use Title::isBigDeletion() instead.
* @return bool
*/
public function isBigDeletion() {
/**
* Get the approximate revision count of this page.
*
- * @deprecated in 1.19; use Title::estimateRevisionCount() instead.
+ * @deprecated since 1.19; use Title::estimateRevisionCount() instead.
* @return int
*/
public function estimateRevisionCount() {
/**
* Backward compatibility for extensions
*
- * @deprecated in 1.19
+ * @deprecated since 1.19
*/
class RawPage extends RawAction {
public $mOldId;
/**
* No uses left in Gerrit on 2013-11-19.
- * @deprecated in 1.22
+ * @deprecated since 1.22
* @param mixed $row
* @return RecentChange
*/
/**
* Makes a pseudo-RC entry from a cur row
*
- * @deprecated in 1.22
+ * @deprecated since 1.22
* @param mixed $row
*/
public function loadFromCurRow( $row ) {
* @param string $server
* @param RedisConnRef $cref
* @param RedisException $e
- * @deprecated 1.23
+ * @deprecated since 1.23
*/
public function handleException( $server, RedisConnRef $cref, RedisException $e ) {
return $this->handleError( $cref, $e );
}
/**
- * @deprecated in 1.19, use getLagFromSlaveStatus
+ * @deprecated since 1.19, use getLagFromSlaveStatus
*
* @return bool|int
*/
/**
* Deprecated function, typo in function name
*
- * @deprecated in 1.18
+ * @deprecated since 1.18
* @param DatabaseBase $conn
*/
function closeConnecton( $conn ) {
/**
* Return the user name of the uploader.
*
- * @deprecated 1.23 Use getUser( 'text' ) instead.
+ * @deprecated since 1.23 Use getUser( 'text' ) instead.
* @return string
*/
public function getUserText() {
* if called the old way, for extensions that may expect traditional
* mode.
*
- * @deprecated 1.22 Use ImageGalleryBase::factory instead.
+ * @deprecated since 1.22 Use ImageGalleryBase::factory instead.
*/
class ImageGallery extends TraditionalImageGallery {
function __construct( $mode = 'traditional' ) {
* Newer version for high use templates. This is deprecated by RefreshLinksPartitionJob.
*
* @ingroup JobQueue
- * @deprecated 1.23
+ * @deprecated since 1.23
*/
class RefreshLinksJob2 extends Job {
function __construct( $title, $params ) {
/**
* Deprecated alias for getTitle(); do not use.
*
- * @deprecated in 1.20; use getTitle() instead.
+ * @deprecated since 1.20; use getTitle() instead.
* @return Title
*/
public function getDisplayTitle() {
/**
* Set page title and show header for this log type
* @param array $type
- * @deprecated in 1.19
+ * @deprecated since 1.19
*/
public function showHeader( $type ) {
wfDeprecated( __METHOD__, '1.19' );
*
* @param string $type Log type
* @return string Log name
- * @deprecated in 1.19, warnings in 1.21. Use getName()
+ * @deprecated since 1.19, warnings in 1.21. Use getName()
*/
public static function logName( $type ) {
global $wgLogNames;
* @todo handle missing log types
* @param string $type logtype
* @return string Header text of this logtype
- * @deprecated in 1.19, warnings in 1.21. Use getDescription()
+ * @deprecated since 1.19, warnings in 1.21. Use getDescription()
*/
public static function logHeader( $type ) {
global $wgLogHeaders;
* @param $value mixed
* @param $exptime int
* @return bool success
- * @deprecated 1.23
+ * @deprecated since 1.23
*/
public function replace( $key, $value, $exptime = 0 ) {
wfDeprecated( __METHOD__, '1.23' );
function setAllowSpecialInclusion( $x ) { return wfSetVar( $this->mAllowSpecialInclusion, $x ); }
function setTidy( $x ) { return wfSetVar( $this->mTidy, $x ); }
- /** @deprecated in 1.19 */
+ /** @deprecated since 1.19 */
function setSkin( $x ) { wfDeprecated( __METHOD__, '1.19' ); }
function setInterfaceMessage( $x ) { return wfSetVar( $this->mInterfaceMessage, $x ); }
function setTargetLanguage( $x ) { return wfSetVar( $this->mTargetLanguage, $x, true ); }
*
* @param string|bool $subpage
* @return Title
- * @deprecated in 1.23, use SpecialPage::getPageTitle
+ * @deprecated since 1.23, use SpecialPage::getPageTitle
*/
function getTitle( $subpage = false ) {
return $this->getPageTitle( $subpage );
/**
* Make a list of group names to be stored as parameter for log entries
*
- * @deprecated in 1.21; use LogFormatter instead.
+ * @deprecated since 1.21; use LogFormatter instead.
* @param $ids array
* @return string
*/
/**
* Same as getFallbacksFor for current language.
* @return array|bool
- * @deprecated in 1.19
+ * @deprecated since 1.19
*/
function getFallbackLanguageCode() {
wfDeprecated( __METHOD__, '1.19' );
* @param $customisedOnly bool
*
* @return array
- * @deprecated in 1.20, use fetchLanguageNames()
+ * @deprecated since 1.20, use fetchLanguageNames()
*/
public static function getLanguageNames( $customisedOnly = false ) {
return self::fetchLanguageNames( null, $customisedOnly ? 'mwfile' : 'mw' );
* @param $code String Language code.
* @return Array language code => language name
* @since 1.18.0
- * @deprecated in 1.20, use fetchLanguageNames()
+ * @deprecated since 1.20, use fetchLanguageNames()
*/
public static function getTranslatedLanguageNames( $code ) {
return self::fetchLanguageNames( $code, 'all' );
* Only if defined in MediaWiki, no other data like CLDR.
* @param $code string
* @return string
- * @deprecated in 1.20, use fetchLanguageName()
+ * @deprecated since 1.20, use fetchLanguageName()
*/
function getLanguageName( $code ) {
return self::fetchLanguageName( $code );