MediaWiki REL1_39
Callbacks.php
Go to the documentation of this file.
1<?php
2
4
5use Psr\Http\Message\UploadedFileInterface;
7
21interface Callbacks {
22
30 public function hasParam( $name, array $options );
31
43 public function getValue( $name, $default, array $options );
44
51 public function hasUpload( $name, array $options );
52
59 public function getUploadedFile( $name, array $options );
60
69 public function recordCondition(
70 DataMessageValue $message, $name, $value, array $settings, array $options
71 );
72
83 public function useHighLimits( array $options );
84
85}
Value object representing a message for i18n with alternative machine-readable data.
Interface defining callbacks needed by ParamValidator.
Definition Callbacks.php:21
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(DataMessageValue $message, $name, $value, array $settings, array $options)
Record non-fatal conditions.