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 $ret = parent::getAllowedParams() + [
dieWithError( $msg, $code=null, $data=null, $httpCode=null)
Abort execution with an error.
static dieDebug( $method, $message)
Internal code errors should be reported with this method.
const PARAM_TYPE
(string|string[]) Either an array of allowed value strings, or a string type as described below.
const PARAM_DFLT
(null|boolean|integer|string) Default value of the parameter.
extractRequestParams( $parseLimit=true)
Using getAllowedParams(), this function makes an array of the values provided by the user,...
getResult()
Get the result object.
const PARAM_HELP_MSG
(string|array|Message) Specify an alternative i18n documentation message for this parameter.
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses & $ret