Go to the documentation of this file.
30 return 'application/vnd.php.serialized';
39 switch ( $params[
'formatversion'] ) {
58 $this->
dieDebug( __METHOD__,
'Unknown value for \'formatversion\'' );
66 if ( $this->
getConfig()->
get(
'MangleFlashPolicy' ) &&
67 in_array(
'MediaWiki\\OutputHandler::handle', ob_list_handlers(),
true ) &&
68 preg_match(
'/<\s*cross-domain-policy(?=\s|>)/i', $text )
70 $this->
dieWithError(
'apierror-formatphp',
'internalerror' );
77 $ret = parent::getAllowedParams() + [
dieWithError( $msg, $code=null, $data=null, $httpCode=null)
Abort execution with an error.
const PARAM_HELP_MSG
(string|array|Message) Specify an alternative i18n documentation message for this parameter.
const PARAM_TYPE
(string|string[]) Either an array of allowed value strings, or a string type as described below.
getResult()
Get the result object.
extractRequestParams( $options=[])
Using getAllowedParams(), this function makes an array of the values provided by the user,...
const PARAM_DFLT
(null|boolean|integer|string) Default value of the parameter.
static dieDebug( $method, $message)
Internal code errors should be reported with this method.