27 lines
725 B
PHP
27 lines
725 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Hook;
|
|
|
|
use MediaWiki\Block\DatabaseBlock;
|
|
use MediaWiki\User\User;
|
|
|
|
/**
|
|
* This is a hook handler interface, see docs/Hooks.md.
|
|
* Use the hook name "UnblockUserComplete" to register handlers implementing this interface.
|
|
*
|
|
* @stable to implement
|
|
* @ingroup Hooks
|
|
*/
|
|
interface UnblockUserCompleteHook {
|
|
/**
|
|
* This hook is called after an IP address or user has been unblocked.
|
|
*
|
|
* @since 1.35
|
|
*
|
|
* @param DatabaseBlock $block The Block object that was saved
|
|
* @param User $user The user who performed the unblock (not the one being unblocked)
|
|
* @return bool|void True or no return value to continue or false to abort
|
|
*/
|
|
public function onUnblockUserComplete( $block, $user );
|
|
}
|