Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F8414
patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 11:59 PM
2014-11-21 23:59:28 (UTC+0)
Size
849 B
Referenced Files
None
Subscribers
None
patch
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7935
Default Alt Text
patch (849 B)
Attached To
Mode
T34786: Change in Database api break extensions
Attached
Detach File
Event Timeline
Log In to Comment