Page MenuHomePhabricator
Authored By
bzimport
Nov 21 2014, 11:59 PM
Size
849 B
Referenced Files
None
Subscribers
None
Index: includes/db/Database.php
===================================================================
--- includes/db/Database.php (revision 105079)
+++ includes/db/Database.php (working copy)
@@ -636,6 +636,16 @@
}
/**
+ * Same as new factory( ... ), kept for backward compatibility
+ * @deprecated since 1.18
+ * @see Database::factory()
+ */
+ public final static function newFromType( $dbType, $p = array() ) {
+ wfDeprecated( __METHOD__ );
+ return self::factory( $dbType, $p );
+ }
+
+ /**
* Given a DB type, construct the name of the appropriate child class of
* DatabaseBase. This is designed to replace all of the manual stuff like:
* $class = 'Database' . ucfirst( strtolower( $type ) );

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7935
Default Alt Text
patch (849 B)

Event Timeline