MediaWiki REL1_34
Callbacks.php
Go to the documentation of this file.
1<?php
2
4
5use Psr\Http\Message\UploadedFileInterface;
6
20interface 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}
Interface defining callbacks needed by ParamValidator.
Definition Callbacks.php:20
getUploadedFile( $name, array $options)
Fetch data for a file upload.
hasUpload( $name, array $options)
Test if a parameter exists as an upload in the request.
getValue( $name, $default, array $options)
Fetch a value from the request.
hasParam( $name, array $options)
Test if a parameter exists in the request.
useHighLimits(array $options)
Indicate whether "high limits" should be used.
recordCondition(ValidationException $condition, array $options)
Record non-fatal conditions.