MediaWiki  master
MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer Class Reference

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

Inheritance diagram for MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer:
Collaboration diagram for MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer:

Public Member Functions

 __construct (RequestInterface $request, Handler $handler, UserIdentity $user, PermissionManager $permissionManager)
 
- Public Member Functions inherited from MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer
 __construct (RequestInterface $request, Handler $handler)
 
 authorize ()
 

Protected Member Functions

 isReadAllowed ()
 
 isWriteAllowed ()
 
- Protected Member Functions inherited from MediaWiki\Rest\BasicAccess\BasicRequestAuthorizer
 isReadAllowed ()
 Check if the current user is allowed to read from the wiki. More...
 
 isWriteAllowed ()
 Check if the current user is allowed to write to the wiki. More...
 

Private Member Functions

 isAllowed ( $action)
 

Private Attributes

PermissionManager $permissionManager
 
UserIdentity $user
 

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.

Definition at line 15 of file MWBasicRequestAuthorizer.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer::__construct ( RequestInterface  $request,
Handler  $handler,
UserIdentity  $user,
PermissionManager  $permissionManager 
)

Member Function Documentation

◆ isAllowed()

MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer::isAllowed (   $action)
private

◆ isReadAllowed()

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

◆ isWriteAllowed()

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

Member Data Documentation

◆ $permissionManager

PermissionManager MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer::$permissionManager
private

◆ $user

UserIdentity MediaWiki\Rest\BasicAccess\MWBasicRequestAuthorizer::$user
private

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