|
MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
| onUserRequirementsCondition ( $type, array $args, UserIdentity $user, bool $isPerformingRequest, ?bool &$result) | |
| Use this hook to check user requirements condition for a user. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "UserRequirementsCondition" to register handlers implementing this interface.
Definition at line 14 of file UserRequirementsConditionHook.php.
| MediaWiki\User\Hook\UserRequirementsConditionHook::onUserRequirementsCondition | ( | $type, | |
| array | $args, | ||
| UserIdentity | $user, | ||
| bool | $isPerformingRequest, | ||
| ?bool & | $result ) |
Use this hook to check user requirements condition for a user.
| string | int | $type | The evaluated condition |
| array | $args | Arguments to the condition |
| UserIdentity | $user | The user who's subject to the condition check. This user may or may not be the one who is performing the current request. Furthermore, they may or may not be from the local wiki. |
| bool | $isPerformingRequest | True if $user is the one performing the current request. If false, the hook handler should avoid comparing the user against any session- or request-related data, but should still set the $result to either true or false, to indicate that the condition was recognized. |
| null | bool | &$result | Result of checking the condition |
Implemented in MediaWiki\HookContainer\HookRunner.