MediaWiki master
|
Provides information about an action that can be used to determine whether the action can be executed in a given context. More...
Public Member Functions | |
__construct (array $spec) | |
Constructs ActionInfo based on an action object spec which is expected to include the following keys: | |
getName () | |
getRestriction () | |
needsReadRights () | |
requiresUnblock () | |
requiresWrite () | |
Provides information about an action that can be used to determine whether the action can be executed in a given context.
Definition at line 29 of file ActionInfo.php.
MediaWiki\Actions\ActionInfo::__construct | ( | array | $spec | ) |
Constructs ActionInfo based on an action object spec which is expected to include the following keys:
array | $spec | The action spec |
Definition at line 48 of file ActionInfo.php.
References MediaWiki\Actions\ActionInfo\needsReadRights(), MediaWiki\Actions\ActionInfo\requiresUnblock(), and MediaWiki\Actions\ActionInfo\requiresWrite().
MediaWiki\Actions\ActionInfo::getName | ( | ) |
Definition at line 59 of file ActionInfo.php.
MediaWiki\Actions\ActionInfo::getRestriction | ( | ) |
Definition at line 66 of file ActionInfo.php.
MediaWiki\Actions\ActionInfo::needsReadRights | ( | ) |
Definition at line 73 of file ActionInfo.php.
Referenced by MediaWiki\Actions\ActionInfo\__construct().
MediaWiki\Actions\ActionInfo::requiresUnblock | ( | ) |
Definition at line 87 of file ActionInfo.php.
Referenced by MediaWiki\Actions\ActionInfo\__construct().
MediaWiki\Actions\ActionInfo::requiresWrite | ( | ) |
Definition at line 80 of file ActionInfo.php.
Referenced by MediaWiki\Actions\ActionInfo\__construct().