MediaWiki REL1_37
MediaWiki\User\Hook\UserLoadFromDatabaseHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\User\Hook\UserLoadFromDatabaseHook:

Public Member Functions

 onUserLoadFromDatabase ( $user, &$s)
 This hook is called when loading a user from the database.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "UserLoadFromDatabase" to register handlers implementing this interface.

Deprecated:
since 1.37

Definition at line 15 of file UserLoadFromDatabaseHook.php.

Member Function Documentation

◆ onUserLoadFromDatabase()

MediaWiki\User\Hook\UserLoadFromDatabaseHook::onUserLoadFromDatabase (   $user,
$s 
)

This hook is called when loading a user from the database.

Since
1.35
Parameters
User$user
stdClass | bool&$sDatabase query object
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: