MediaWiki
REL1_41
Callbacks.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Wikimedia\ParamValidator
;
4
5
use Psr\Http\Message\UploadedFileInterface;
6
use
Wikimedia\Message\DataMessageValue
;
7
21
interface
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
}
Wikimedia\Message\DataMessageValue
Value object representing a message for i18n with alternative machine-readable data.
Definition
DataMessageValue.php:23
Wikimedia\ParamValidator\Callbacks
Interface defining callbacks needed by ParamValidator.
Definition
Callbacks.php:21
Wikimedia\ParamValidator\Callbacks\getUploadedFile
getUploadedFile( $name, array $options)
Fetch data for a file upload.
Wikimedia\ParamValidator\Callbacks\hasUpload
hasUpload( $name, array $options)
Test if a parameter exists as an upload in the request.
Wikimedia\ParamValidator\Callbacks\getValue
getValue( $name, $default, array $options)
Fetch a value from the request.
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(DataMessageValue $message, $name, $value, array $settings, array $options)
Record non-fatal conditions.
Wikimedia\ParamValidator
Definition
Callbacks.php:3
includes
libs
ParamValidator
Callbacks.php
Generated on Sat Nov 23 2024 08:23:48 for MediaWiki by
1.10.0