Manual:Hooks/UserArrayFromResult
From MediaWiki.org
| UserArrayFromResult | |
|---|---|
| Available from version 1.13.0 called when creating an UserArray object from a database result. |
|
*Define function: |
function fnMyHook( &$userArray, $res ) { ... }
|
*Attach hook: |
$wgHooks['UserArrayFromResult'][] = 'MyExtensionHooks::someExample'; |
| Called from: | UserArray.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:UserArrayFromResult extensions.
[edit] Details
- &$userArray: set this to an object to override the default object returned
- $res: database result used to create the object
