Most have it already:
https://doc.wikimedia.org/mediawiki-core/master/php/html/deprecated.html
Ran a find/replace on "@deprecated \d" to fix the odd ones.
Change-Id: I5217aaf75264a0036b5426cd8536116b4bb8f535
/**
* Shortcut to get the user Language being used for this instance
*
/**
* Shortcut to get the user Language being used for this instance
*
- * @deprecated 1.19 Use getLanguage instead
+ * @deprecated since 1.19 Use getLanguage instead
* @return Language
*/
final public function getLang() {
* @return Language
*/
final public function getLang() {
* List of special pages, followed by what subtitle they should go under
* at Special:SpecialPages
*
* List of special pages, followed by what subtitle they should go under
* at Special:SpecialPages
*
- * @deprecated 1.21 Override SpecialPage::getGroupName instead
+ * @deprecated since 1.21 Override SpecialPage::getGroupName instead
*/
$wgSpecialPageGroups = array();
*/
$wgSpecialPageGroups = array();
/**
* Shortcut to get user's language
*
/**
* Shortcut to get user's language
*
- * @deprecated 1.19 Use getLanguage instead
+ * @deprecated since 1.19 Use getLanguage instead
* @return Language
* @since 1.18
*/
* @return Language
* @since 1.18
*/
*
* @param $page Mixed: SpecialPage or string
* @param $group String
*
* @param $page Mixed: SpecialPage or string
* @param $group String
- * @deprecated 1.21 Override SpecialPage::getGroupName
+ * @deprecated since 1.21 Override SpecialPage::getGroupName
*/
public static function setGroup( $page, $group ) {
wfDeprecated( __METHOD__, '1.21' );
*/
public static function setGroup( $page, $group ) {
wfDeprecated( __METHOD__, '1.21' );
*
* @param $page SpecialPage
* @return String
*
* @param $page SpecialPage
* @return String
- * @deprecated 1.21 Use SpecialPage::getFinalGroupName
+ * @deprecated since 1.21 Use SpecialPage::getFinalGroupName
*/
public static function getGroup( &$page ) {
wfDeprecated( __METHOD__, '1.21' );
*/
public static function getGroup( &$page ) {
wfDeprecated( __METHOD__, '1.21' );
/**
* Do not use, does nothing, will be removed
/**
* Do not use, does nothing, will be removed
+ * @deprecated since 1.21
*/
public function finishPageSetGeneration() {
wfDeprecated( __METHOD__, '1.21' );
*/
public function finishPageSetGeneration() {
wfDeprecated( __METHOD__, '1.21' );
/**
* Get the Language object
*
/**
* Get the Language object
*
- * @deprecated 1.19 Use getLanguage instead
+ * @deprecated since 1.19 Use getLanguage instead
* @return Language
*/
public function getLang() {
* @return Language
*/
public function getLang() {
/**
* Set the Language object
*
/**
* Set the Language object
*
- * @deprecated 1.19 Use setLanguage instead
+ * @deprecated since 1.19 Use setLanguage instead
* @param Language|string $l Language instance or language code
*/
public function setLang( $l ) {
* @param Language|string $l Language instance or language code
*/
public function setLang( $l ) {
- * @deprecated 1.19 Use getLanguage instead
+ * @deprecated since 1.19 Use getLanguage instead
* @return Language
*/
public function getLang() {
* @return Language
*/
public function getLang() {
/**
* Get the Language object
*
/**
* Get the Language object
*
- * @deprecated 1.19 Use getLanguage instead
+ * @deprecated since 1.19 Use getLanguage instead
* @return Language
*/
public function getLang();
* @return Language
*/
public function getLang();
/**
* Set the Language object
*
/**
* Set the Language object
*
- * @deprecated 1.19 Use setLanguage instead
+ * @deprecated since 1.19 Use setLanguage instead
* @param Language|string $l Language instance or language code
*/
public function setLang( $l ) {
* @param Language|string $l Language instance or language code
*/
public function setLang( $l ) {
- * @deprecated 1.19 Use getLanguage instead
+ * @deprecated since 1.19 Use getLanguage instead
* @return Language
*/
public function getLang() {
* @return Language
*/
public function getLang() {
* Given an array of non-normalised probabilities, this function will select
* an element and return the appropriate key
*
* Given an array of non-normalised probabilities, this function will select
* an element and return the appropriate key
*
- * @deprecated 1.21, use ArrayUtils::pickRandom()
+ * @deprecated since 1.21, use ArrayUtils::pickRandom()
*
* @param $weights array
*
*
* @param $weights array
*
*
* @param array $jobs of Job objects
* @return bool
*
* @param array $jobs of Job objects
* @return bool
+ * @deprecated since 1.21
*/
public static function batchInsert( $jobs ) {
return JobQueueGroup::singleton()->push( $jobs );
*/
public static function batchInsert( $jobs ) {
return JobQueueGroup::singleton()->push( $jobs );
*
* @param array $jobs of Job objects
* @return bool
*
* @param array $jobs of Job objects
* @return bool
+ * @deprecated since 1.21
*/
public static function safeBatchInsert( $jobs ) {
return JobQueueGroup::singleton()->push( $jobs, JobQueue::QOS_ATOMIC );
*/
public static function safeBatchInsert( $jobs ) {
return JobQueueGroup::singleton()->push( $jobs, JobQueue::QOS_ATOMIC );
*
* @param $type string
* @return Job|bool Returns false if there are no jobs
*
* @param $type string
* @return Job|bool Returns false if there are no jobs
+ * @deprecated since 1.21
*/
public static function pop_type( $type ) {
return JobQueueGroup::singleton()->get( $type )->pop();
*/
public static function pop_type( $type ) {
return JobQueueGroup::singleton()->get( $type )->pop();
* This is subject to $wgJobTypesExcludedFromDefaultQueue.
*
* @return Job or false if there's no jobs
* This is subject to $wgJobTypesExcludedFromDefaultQueue.
*
* @return Job or false if there's no jobs
+ * @deprecated since 1.21
*/
public static function pop() {
return JobQueueGroup::singleton()->pop();
*/
public static function pop() {
return JobQueueGroup::singleton()->pop();
/**
* @return integer May be 0 for jobs stored outside the DB
/**
* @return integer May be 0 for jobs stored outside the DB
+ * @deprecated since 1.22
*/
public function getId() {
return $this->id;
*/
public function getId() {
return $this->id;
/**
* Insert a single job into the queue.
* @return bool true on success
/**
* Insert a single job into the queue.
* @return bool true on success
+ * @deprecated since 1.21
*/
public function insert() {
return JobQueueGroup::singleton()->push( $this );
*/
public function insert() {
return JobQueueGroup::singleton()->push( $this );