Manual:Hooks/DatabaseOraclePostInit

From MediaWiki.org
Jump to navigation Jump to search
DatabaseOraclePostInit
Available from version 1.16.0 (r51500)
Removed in version 1.34.0
Called after initializing an Oracle database
Define function:
public static function onDatabaseOraclePostInit( DatabaseOracle $db ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"DatabaseOraclePostInit": "MyExtensionHooks::onDatabaseOraclePostInit"
	}
}

For MediaWiki ≤1.25:

$wgHooks['DatabaseOraclePostInit'][] = 'MyExtensionHooks::onDatabaseOraclePostInit';
Called from:File(s): db/DatabaseOracle.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:DatabaseOraclePostInit extensions.

Details[edit]

  • $db: The DatabaseOracle object