|
MediaWiki master
|
Simple Callbacks implementation for $_GET/$_POST/$_FILES data. More...
Inherits Wikimedia\ParamValidator\Callbacks.

Public Member Functions | ||||||||||||||||
| __construct (array $params, array $files=[]) | ||||||||||||||||
| clearRecordedConditions () | ||||||||||||||||
| Clear any recorded conditions. | ||||||||||||||||
| getRecordedConditions () | ||||||||||||||||
| Fetch any recorded conditions. | ||||||||||||||||
| getUploadedFile ( $name, array $options) | ||||||||||||||||
Fetch data for a file upload.
| ||||||||||||||||
| getValue ( $name, $default, array $options) | ||||||||||||||||
Fetch a value from the request.Return $default for file-upload parameters.
| ||||||||||||||||
| hasParam ( $name, array $options) | ||||||||||||||||
Test if a parameter exists in the request.
| ||||||||||||||||
| hasUpload ( $name, array $options) | ||||||||||||||||
Test if a parameter exists as an upload in the request.
| ||||||||||||||||
| recordCondition (DataMessageValue $message, $name, $value, array $settings, array $options) | ||||||||||||||||
Record non-fatal conditions.
| ||||||||||||||||
| useHighLimits (array $options) | ||||||||||||||||
Indicate whether "high limits" should be used.Some settings have multiple limits, one for "normal" users and a higher one for "privileged" users. This is used to determine which class the current user is in when necessary.
| ||||||||||||||||
Simple Callbacks implementation for $_GET/$_POST/$_FILES data.
Options array keys used by this class:
Definition at line 17 of file SimpleCallbacks.php.
| Wikimedia\ParamValidator\SimpleCallbacks::__construct | ( | array | $params, |
| array | $files = [] ) |
| (string|string[])[] | $params Data from $_POST + $_GET | |
| array[] | $files | Data from $_FILES |
Definition at line 32 of file SimpleCallbacks.php.
| Wikimedia\ParamValidator\SimpleCallbacks::clearRecordedConditions | ( | ) |
Clear any recorded conditions.
Definition at line 86 of file SimpleCallbacks.php.
| Wikimedia\ParamValidator\SimpleCallbacks::getRecordedConditions | ( | ) |
| Wikimedia\ParamValidator\SimpleCallbacks::getUploadedFile | ( | $name, | |
| array | $options ) |
Fetch data for a file upload.
| string | $name | Parameter name of the upload |
| array | $options | Options array |
Implements Wikimedia\ParamValidator\Callbacks.
Definition at line 53 of file SimpleCallbacks.php.
| Wikimedia\ParamValidator\SimpleCallbacks::getValue | ( | $name, | |
| $default, | |||
| array | $options ) |
Fetch a value from the request.Return $default for file-upload parameters.
| string | $name | Parameter name to fetch |
| mixed | $default | Default value to return if the parameter is unset. |
| array | $options | Options array |
Implements Wikimedia\ParamValidator\Callbacks.
Definition at line 43 of file SimpleCallbacks.php.
| Wikimedia\ParamValidator\SimpleCallbacks::hasParam | ( | $name, | |
| array | $options ) |
Test if a parameter exists in the request.
| string | $name | Parameter name |
| array | $options | Options array |
Implements Wikimedia\ParamValidator\Callbacks.
Definition at line 38 of file SimpleCallbacks.php.
| Wikimedia\ParamValidator\SimpleCallbacks::hasUpload | ( | $name, | |
| array | $options ) |
Test if a parameter exists as an upload in the request.
| string | $name | Parameter name |
| array | $options | Options array |
Implements Wikimedia\ParamValidator\Callbacks.
Definition at line 48 of file SimpleCallbacks.php.
| Wikimedia\ParamValidator\SimpleCallbacks::recordCondition | ( | DataMessageValue | $message, |
| $name, | |||
| $value, | |||
| array | $settings, | ||
| array | $options ) |
Record non-fatal conditions.
| DataMessageValue | $message | Failure message |
| string | $name | Parameter name |
| mixed | $value | Parameter value |
| array | $settings | Parameter settings array |
| array | $options | Options array |
Implements Wikimedia\ParamValidator\Callbacks.
Definition at line 64 of file SimpleCallbacks.php.
| Wikimedia\ParamValidator\SimpleCallbacks::useHighLimits | ( | array | $options | ) |
Indicate whether "high limits" should be used.Some settings have multiple limits, one for "normal" users and a higher one for "privileged" users. This is used to determine which class the current user is in when necessary.
| array | $options | Options array |
Implements Wikimedia\ParamValidator\Callbacks.
Definition at line 91 of file SimpleCallbacks.php.