Review hooks in includes/user/Hook Bug: T246855 Change-Id: I0c56b6f2b73dec5491ff81619a2f7bce6c8bebad
23 lines
615 B
PHP
23 lines
615 B
PHP
<?php
|
|
|
|
namespace MediaWiki\User\Hook;
|
|
|
|
use UserArrayFromResult;
|
|
use Wikimedia\Rdbms\IResultWrapper;
|
|
|
|
/**
|
|
* @stable for implementation
|
|
* @ingroup Hooks
|
|
*/
|
|
interface UserArrayFromResultHook {
|
|
/**
|
|
* This hook is called when creating an UserArray object from a database result.
|
|
*
|
|
* @since 1.35
|
|
*
|
|
* @param UserArrayFromResult|null &$userArray Set this to an object to override the default
|
|
* @param IResultWrapper $res database result used to create the object
|
|
* @return bool|void True or no return value to continue or false to abort
|
|
*/
|
|
public function onUserArrayFromResult( &$userArray, $res );
|
|
}
|