MediaWiki master
|
Represents the subject that rate limits are applied to. More...
Public Member Functions | |
__construct (UserIdentity $user, ?string $ip, array $flags) | |
getIP () | |
getUser () | |
is (string $flag) | |
Checks whether the given flag applies. | |
Represents the subject that rate limits are applied to.
Definition at line 31 of file RateLimitSubject.php.
MediaWiki\Permissions\RateLimitSubject::__construct | ( | UserIdentity | $user, |
?string | $ip, | ||
array | $flags ) |
UserIdentity | $user | |
string | null | $ip | |
array<string,bool> | $flags |
Definition at line 61 of file RateLimitSubject.php.
MediaWiki\Permissions\RateLimitSubject::getIP | ( | ) |
Definition at line 77 of file RateLimitSubject.php.
Referenced by MediaWiki\Permissions\RateLimiter\isExempt(), and MediaWiki\Permissions\RateLimiter\limit().
MediaWiki\Permissions\RateLimitSubject::getUser | ( | ) |
Definition at line 70 of file RateLimitSubject.php.
Referenced by MediaWiki\Permissions\RateLimiter\limit().
MediaWiki\Permissions\RateLimitSubject::is | ( | string | $flag | ) |
Checks whether the given flag applies.
string | $flag |
Definition at line 88 of file RateLimitSubject.php.
Referenced by MediaWiki\Permissions\RateLimiter\isExempt(), and MediaWiki\Permissions\RateLimiter\limit().