< Manual:Hooks 
 
      | UserArrayFromResult | |
|---|---|
| Available from version 1.13.0 called when creating an UserArray object from a database result. | |
| Define function: | public static function onUserArrayFromResult( &$userArray, $res ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"UserArrayFromResult": "MyExtensionHooks::onUserArrayFromResult"
	}
}
 | 
| Called from: | File(s): UserArray.php | 
| Interface: | UserArrayFromResultHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:UserArrayFromResult extensions.
Details
- &$userArray: set this to an object to override the default object returned
- $res: database result used to create the object
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.