30 return 'application/vnd.php.serialized';
36 switch ( $params[
'formatversion'] ) {
55 $this->
dieDebug( __METHOD__,
'Unknown value for \'formatversion\'' );
63 if ( $this->
getConfig()->
get(
'MangleFlashPolicy' ) &&
64 in_array(
'MediaWiki\\OutputHandler::handle', ob_list_handlers(),
true ) &&
65 preg_match(
'/<\s*cross-domain-policy(?=\s|>)/i', $text )
67 $this->
dieWithError(
'apierror-formatphp',
'internalerror' );
74 return parent::getAllowedParams() + [
dieWithError( $msg, $code=null, $data=null, $httpCode=0)
Abort execution with an error.
static dieDebug( $method, $message)
Internal code errors should be reported with this method.
const PARAM_HELP_MSG_PER_VALUE
((string|array|Message)[]) When PARAM_TYPE is an array, this is an array mapping those values to $msg...
getResult()
Get the result object.
extractRequestParams( $options=[])
Using getAllowedParams(), this function makes an array of the values provided by the user,...
const PARAM_HELP_MSG
(string|array|Message) Specify an alternative i18n documentation message for this parameter.