Manual:Hooks/DatabaseOraclePostInit

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

In extension.json:

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

For MediaWiki ≤1.25:

$wgHooks['DatabaseOraclePostInit'][] = 'MyExtensionHooks::onDatabaseOraclePostInit';
Called from:File(s): 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