< Manual:Hooks 
 
      |  | This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility. This feature was deprecated in version 1.37.0. | 
| UserLoadFromDatabase | |
|---|---|
| Available from version 1.15.0 Called when loading a user from the database. | |
| Define function: | public static function onUserLoadFromDatabase( $user, &$s ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"UserLoadFromDatabase": "MyExtensionHooks::onUserLoadFromDatabase"
	}
}
 | 
| Called from: | File(s): User.php | 
| Interface: | UserLoadFromDatabaseHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:UserLoadFromDatabase extensions.
Details
- $user: user object
- &$s: database query object
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.