| [ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 153 lines (5 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
CloneDatabase:: (7 methods):
__construct()
useTemporaryTables()
cloneTableStructure()
destroy()
changePrefix()
changeLBPrefix()
changeDBPrefix()
Class: CloneDatabase - X-Ref
Helper class for making a copy of the database, mostly for unit testing.| __construct( DatabaseBase $db, array $tablesToClone,$newTablePrefix, $oldTablePrefix = '', $dropCurrentTables = true) X-Ref |
| Constructor param: DatabaseBase $db A database subclass param: array $tablesToClone An array of tables to clone, unprefixed param: string $newTablePrefix Prefix to assign to the tables param: string $oldTablePrefix Prefix on current tables, if not $wgDBprefix param: bool $dropCurrentTables |
| useTemporaryTables( $u = true ) X-Ref |
| Set whether to use temporary tables or not param: bool $u Use temporary tables when cloning the structure |
| cloneTableStructure() X-Ref |
| Clone the table structure |
| destroy( $dropTables = false ) X-Ref |
| Change the prefix back to the original. param: bool $dropTables Optionally drop the tables we created |
| changePrefix( $prefix ) X-Ref |
| Change the table prefix on all open DB connections/ param: string $prefix return: void |
| changeLBPrefix( $lb, $prefix ) X-Ref |
param: LoadBalancer $lb param: string $prefix return: void |
| changeDBPrefix( $db, $prefix ) X-Ref |
param: DatabaseBase $db param: string $prefix return: void |
| Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |