/**
* Alias for getText(Revision::FOR_THIS_USER)
*
- * @deprecated
+ * @deprecated since 1.17
* @return String
*/
public function revText() {
return self::$row->ss_images;
}
- /**
- * @deprecated Use self::numberingroup('sysop') instead
- */
- static function admins() {
- wfDeprecated(__METHOD__);
- return self::numberingroup( 'sysop' );
- }
-
/**
* Find the number of users in a given user group.
* @param $group String: name of group
class WikiError {
/**
* @param $message string
+ *
+ * @deprecated since 1.17
*/
function __construct( $message ) {
wfDeprecated( __METHOD__ );
*
* @param $object mixed
* @return bool
+ *
+ * @deprecated since 1.17
*/
public static function isError( $object ) {
wfDeprecated( __METHOD__ );
/**
* @param $message String: wiki message name
* @param ... parameters to pass to wfMsg()
+ *
+ * @deprecated since 1.17
*/
function __construct( $message/*, ... */ ) {
wfDeprecated( __METHOD__ );
* @param $message string
* @param $context
* @param $offset Int
+ *
+ * @deprecated since 1.17
*/
function __construct( $parser, $message = 'XML parsing error', $context = null, $offset = 0 ) {
wfDeprecated( __METHOD__ );
/**
* Same as new DatabaseMysql( ... ), kept for backward compatibility
- * @deprecated
+ * @deprecated since 1.17
*/
static function newFromParams( $server, $user, $password, $dbName, $flags = 0 ) {
wfDeprecated( __METHOD__ );
* Backwards compatibility, identifier quoting originated in DatabasePostgres
* which used quote_ident which does not follow our naming conventions
* was renamed to addIdentifierQuotes.
- * @deprecated use addIdentifierQuotes
+ * @deprecated since 1.18 use addIdentifierQuotes
*/
function quote_ident( $s ) {
wfDeprecated( __METHOD__ );
* Escape string for safe LIKE usage.
* WARNING: you should almost never use this function directly,
* instead use buildLike() that escapes everything automatically
- * Deprecated in 1.17, warnings in 1.17, removed in ???
+ * @deprecated since 1.17, warnings in 1.17, removed in ???
*/
public function escapeLike( $s ) {
wfDeprecated( __METHOD__ );
}
}
- /**
- * Begin a transaction, committing any previously open transaction
- * @deprecated use begin()
- */
- function immediateBegin( $fname = 'DatabaseBase::immediateBegin' ) {
- wfDeprecated( __METHOD__ );
- $this->begin();
- }
-
- /**
- * Commit transaction, if one is open
- * @deprecated use commit()
- */
- function immediateCommit( $fname = 'DatabaseBase::immediateCommit' ) {
- wfDeprecated( __METHOD__ );
- $this->commit();
- }
-
/**
* Creates a new table with structure copied from existing table
* Note that unlike most database abstraction functions, this function does not
/**
* Alias for getPath()
*
- * @deprecated Use getPath().
+ * @deprecated since 1.18 Use getPath().
*/
public function getFullPath() {
wfDeprecated( __METHOD__ );
$this->readOnlyError();
}
- /**
- * Get an array of Title objects which are articles which use this file
- * Also adds their IDs to the link cache
- *
- * This is mostly copied from Title::getLinksTo()
- *
- * @deprecated Use HTMLCacheUpdate, this function uses too much memory
- */
- function getLinksTo( $options = array() ) {
- wfDeprecated( __METHOD__ );
- wfProfileIn( __METHOD__ );
-
- // Note: use local DB not repo DB, we want to know local links
- if ( count( $options ) > 0 ) {
- $db = wfGetDB( DB_MASTER );
- } else {
- $db = wfGetDB( DB_SLAVE );
- }
- $linkCache = LinkCache::singleton();
-
- $encName = $db->addQuotes( $this->getName() );
- $res = $db->select( array( 'page', 'imagelinks'),
- array( 'page_namespace', 'page_title', 'page_id', 'page_len', 'page_is_redirect', 'page_latest' ),
- array( 'page_id=il_from', 'il_to' => $encName ),
- __METHOD__,
- $options );
-
- $retVal = array();
- if ( $db->numRows( $res ) ) {
- foreach ( $res as $row ) {
- $titleObj = Title::newFromRow( $row );
- if ( $titleObj ) {
- $linkCache->addGoodLinkObj( $row->page_id, $titleObj, $row->page_len, $row->page_is_redirect, $row->page_latest );
- $retVal[] = $titleObj;
- }
- }
- }
- wfProfileOut( __METHOD__ );
- return $retVal;
- }
-
function formatMetadata() {
if ( !$this->getHandler() ) {
return false;
/**
* Use FormatMetadata to create formatted values for display to user
* (is this ever used?)
+ *
+ * @deprecated since 1.18
*/
function makeFormattedData( ) {
wfDeprecated( __METHOD__ );
*
* This returns the data for display to user.
* Its unclear if this is ever used.
+ *
+ * @deprecated since 1.18
*/
function getFormattedData() {
wfDeprecated( __METHOD__ );
/** For compatability with old FormatExif class
* which some extensions use.
*
- *@deprecated
+ * @deprecated since 1.18
*
**/
class FormatExif {
return $rnd;
}
- /**
- * Interface with html tidy
- * @deprecated Use MWTidy::tidy()
- */
- public static function tidy( $text ) {
- wfDeprecated( __METHOD__ );
- return MWTidy::tidy( $text );
- }
-
/**
* parse the wiki syntax used to render tables
*
/**
* @param $title Title
* @return Skin
- * @deprecated Use Linker::* instead
+ * @deprecated since 1.18 Use Linker::* instead
*/
function getSkin( $title = null ) {
wfDeprecated( __METHOD__ );
*/
function initContLang() { }
- /**
- * @deprecated Use User::getDefaultOptions()
- * @return array
- */
- function getDefaultUserOptions() {
- wfDeprecated( __METHOD__ );
- return User::getDefaultOptions();
- }
-
function getFallbackLanguageCode() {
if ( $this->mCode === 'en' ) {
return false;