MinervaNeue
A responsive mobile first skin
Loading...
Searching...
No Matches
MediaWiki\Minerva\Permissions\IMinervaPagePermissions Interface Reference

A wrapper for all available Minerva permissions. More...

+ Inheritance diagram for MediaWiki\Minerva\Permissions\IMinervaPagePermissions:

Public Member Functions

 isAllowed ( $action)
 Gets whether or not the action is allowed.
 
 isTalkAllowed ()
 Returns true, if the page can have a talk page and user is logged in.
 

Public Attributes

const WATCHABLE = 'watchable'
 
const WATCH = 'watch'
 
const SWITCH_LANGUAGE = 'switch-language'
 
const CONTENT_EDIT = 'edit'
 Given user permission, the page content is editable.
 
const EDIT_OR_CREATE = 'edit-or-create'
 The existing page is editable or nonexisting page is creatable by the active user.
 
const TALK = 'talk'
 
const HISTORY = 'history'
 
const MOVE = 'move'
 
const DELETE = 'delete'
 
const PROTECT = 'protect'
 

Detailed Description

A wrapper for all available Minerva permissions.

Member Function Documentation

◆ isAllowed()

MediaWiki\Minerva\Permissions\IMinervaPagePermissions::isAllowed ( $action)

Gets whether or not the action is allowed.

Parameters
string$action
Returns
bool

Implemented in MediaWiki\Minerva\Permissions\MinervaPagePermissions.

◆ isTalkAllowed()

MediaWiki\Minerva\Permissions\IMinervaPagePermissions::isTalkAllowed ( )

Returns true, if the page can have a talk page and user is logged in.

Returns
bool

Implemented in MediaWiki\Minerva\Permissions\MinervaPagePermissions.


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