Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\Infrastructure\DataAccess\WikibaseEntityPermissionChecker Class Reference
+ Inheritance diagram for Wikibase\Repo\RestApi\Infrastructure\DataAccess\WikibaseEntityPermissionChecker:
+ Collaboration diagram for Wikibase\Repo\RestApi\Infrastructure\DataAccess\WikibaseEntityPermissionChecker:

Public Member Functions

 __construct (EntityPermissionChecker $entityPermissionChecker, UserFactory $userFactory)
 
 canEdit (User $user, EntityId $id)
 
 canCreateItem (User $user)
 
 canCreateProperty (User $user)
 

Private Member Functions

 newPermissionCheckResultFromStatus (Status $status)
 
 hasError (string $error, Status $status)
 

Private Attributes

EntityPermissionChecker $entityPermissionChecker
 
UserFactory $userFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Infrastructure\DataAccess\WikibaseEntityPermissionChecker::__construct ( EntityPermissionChecker $entityPermissionChecker,
UserFactory $userFactory )

Member Function Documentation

◆ canCreateItem()

Wikibase\Repo\RestApi\Infrastructure\DataAccess\WikibaseEntityPermissionChecker::canCreateItem ( User $user)

◆ canCreateProperty()

Wikibase\Repo\RestApi\Infrastructure\DataAccess\WikibaseEntityPermissionChecker::canCreateProperty ( User $user)

◆ canEdit()

Wikibase\Repo\RestApi\Infrastructure\DataAccess\WikibaseEntityPermissionChecker::canEdit ( User $user,
EntityId $id )

◆ hasError()

Wikibase\Repo\RestApi\Infrastructure\DataAccess\WikibaseEntityPermissionChecker::hasError ( string $error,
Status $status )
private

◆ newPermissionCheckResultFromStatus()

Wikibase\Repo\RestApi\Infrastructure\DataAccess\WikibaseEntityPermissionChecker::newPermissionCheckResultFromStatus ( Status $status)
private

Member Data Documentation

◆ $entityPermissionChecker

EntityPermissionChecker Wikibase\Repo\RestApi\Infrastructure\DataAccess\WikibaseEntityPermissionChecker::$entityPermissionChecker
private

◆ $userFactory

UserFactory Wikibase\Repo\RestApi\Infrastructure\DataAccess\WikibaseEntityPermissionChecker::$userFactory
private

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