Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5962385
PingLimiterHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
896 B
Referenced Files
None
Subscribers
None
PingLimiterHook.php
View Options
<?php
namespace
MediaWiki\User\Hook
;
use
MediaWiki\User\User
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "PingLimiter" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
PingLimiterHook
{
/**
* Use this hook to override the results of User::pingLimiter().
*
* @since 1.35
*
* @param User $user User performing the action
* @param string $action Action being performed
* @param bool &$result Whether or not the action should be prevented
* Change $result and return false to give a definitive answer, otherwise
* the built-in rate limiting checks are used, if enabled.
* @param int $incrBy Amount to increment counter by
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onPingLimiter
(
$user
,
$action
,
&
$result
,
$incrBy
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 08:49 (1 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1a/2f/e188cc52713c4b6fbcabae2eaece
Default Alt Text
PingLimiterHook.php (896 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment