|
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 16 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 35 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 46 of file ActionInfo.php.
| MediaWiki\Actions\ActionInfo::getRestriction | ( | ) |
Definition at line 53 of file ActionInfo.php.
| MediaWiki\Actions\ActionInfo::needsReadRights | ( | ) |
Definition at line 60 of file ActionInfo.php.
Referenced by MediaWiki\Actions\ActionInfo\__construct().
| MediaWiki\Actions\ActionInfo::requiresUnblock | ( | ) |
Definition at line 74 of file ActionInfo.php.
Referenced by MediaWiki\Actions\ActionInfo\__construct().
| MediaWiki\Actions\ActionInfo::requiresWrite | ( | ) |
Definition at line 67 of file ActionInfo.php.
Referenced by MediaWiki\Actions\ActionInfo\__construct().