32 return 'application/vnd.php.serialized';
38 switch ( $params[
'formatversion'] ) {
57 self::dieDebug( __METHOD__,
'Unknown value for \'formatversion\'' );
59 $this->
printText( serialize( $this->
getResult()->getResultData(
null, $transforms ) ) );
63 return parent::getAllowedParams() + [
65 ParamValidator::PARAM_TYPE => [
'1',
'2',
'latest' ],
66 ParamValidator::PARAM_DEFAULT =>
'1',
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, or 'string' with PARAM_ISMULTI,...
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.