MediaWiki master
MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer Class Reference

The concrete implementation of basic read/write restrictions in MediaWiki. More...

Inherits MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer.

Collaboration diagram for MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer:

Public Member Functions

 __construct (RequestInterface $request, Handler $handler, Authority $authority)
 
- Public Member Functions inherited from MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer
 __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.
 

Additional Inherited Members

- Protected Attributes inherited from MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer
 $handler
 
 $request
 

Detailed Description

The concrete implementation of basic read/write restrictions in MediaWiki.

Access: internal

Definition at line 14 of file MWBasicRequestAuthorizer.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer::__construct ( RequestInterface  $request,
Handler  $handler,
Authority  $authority 
)

Member Function Documentation

◆ isReadAllowed()

MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer::isReadAllowed ( )
protected

Check if the current user is allowed to read from the wiki.

Returns
bool

Reimplemented from MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer.

Definition at line 27 of file MWBasicRequestAuthorizer.php.

◆ isWriteAllowed()

MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer::isWriteAllowed ( )
protected

Check if the current user is allowed to write to the wiki.

Returns
bool

Reimplemented from MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer.

Definition at line 31 of file MWBasicRequestAuthorizer.php.


The documentation for this class was generated from the following file: