MediaWiki REL1_39
|
A request authorizer which checks needsReadAccess() and needsWriteAccess() in the handler and calls isReadAllowed() and/or isWriteAllowed() in the subclass accordingly. More...
Public Member Functions | |
__construct (RequestInterface $request, Handler $handler) | |
authorize () | |
Protected Member Functions | |
isReadAllowed () | |
Check if the current user is allowed to read from the wiki. | |
isWriteAllowed () | |
Check if the current user is allowed to write to the wiki. | |
Protected Attributes | |
$handler | |
$request | |
A request authorizer which checks needsReadAccess() and needsWriteAccess() in the handler and calls isReadAllowed() and/or isWriteAllowed() in the subclass accordingly.
Definition at line 15 of file BasicRequestAuthorizer.php.
MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer::__construct | ( | RequestInterface | $request, |
Handler | $handler ) |
RequestInterface | $request | |
Handler | $handler |
Definition at line 23 of file BasicRequestAuthorizer.php.
References MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer\$handler, and MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer\$request.
MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer::authorize | ( | ) |
Definition at line 33 of file BasicRequestAuthorizer.php.
|
abstractprotected |
Check if the current user is allowed to read from the wiki.
Reimplemented in MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer.
|
abstractprotected |
Check if the current user is allowed to write to the wiki.
Reimplemented in MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer.
|
protected |
Definition at line 17 of file BasicRequestAuthorizer.php.
Referenced by MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer\__construct(), and MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer\__construct().
|
protected |
Definition at line 16 of file BasicRequestAuthorizer.php.
Referenced by MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer\__construct(), and MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer\__construct().