MediaWiki  1.34.0
Callbacks.php
Go to the documentation of this file.
1 <?php
2 
4 
5 use Psr\Http\Message\UploadedFileInterface;
6 
20 interface Callbacks {
21 
29  public function hasParam( $name, array $options );
30 
42  public function getValue( $name, $default, array $options );
43 
50  public function hasUpload( $name, array $options );
51 
58  public function getUploadedFile( $name, array $options );
59 
65  public function recordCondition( ValidationException $condition, array $options );
66 
77  public function useHighLimits( array $options );
78 
79 }
Wikimedia\ParamValidator
Definition: Callbacks.php:3
Wikimedia\ParamValidator\Callbacks\getValue
getValue( $name, $default, array $options)
Fetch a value from the request.
Wikimedia\ParamValidator\ValidationException
Error reporting for ParamValidator.
Definition: ValidationException.php:15
Wikimedia\ParamValidator\Callbacks
Interface defining callbacks needed by ParamValidator.
Definition: Callbacks.php:20
Wikimedia\ParamValidator\Callbacks\hasParam
hasParam( $name, array $options)
Test if a parameter exists in the request.
Wikimedia\ParamValidator\Callbacks\useHighLimits
useHighLimits(array $options)
Indicate whether "high limits" should be used.
Wikimedia\ParamValidator\Callbacks\recordCondition
recordCondition(ValidationException $condition, array $options)
Record non-fatal conditions.
Wikimedia\ParamValidator\Callbacks\hasUpload
hasUpload( $name, array $options)
Test if a parameter exists as an upload in the request.
Wikimedia\ParamValidator\Callbacks\getUploadedFile
getUploadedFile( $name, array $options)
Fetch data for a file upload.