Go to the documentation of this file.
36 parent::__construct( $main, $format );
37 $this->mIsRaw = ( $format ===
'rawfm' );
44 return 'text/javascript';
47 return 'application/json';
66 $callback =
$params[
'callback'];
67 if ( $callback !==
null ) {
68 $callback = preg_replace(
"/[^][.\\'\\\"_A-Za-z0-9]/",
'', $callback );
69 # Prepend a comment to try to avoid attacks against content
70 # sniffers, such as bug 68187.
71 $this->
printText(
"/**/$callback($json)" );
86 'callback' =>
'If specified, wraps the output into a given function ' .
87 'call. For safety, all user-specific data will be restricted.',
88 'utf8' =>
'If specified, encodes most (but not all) non-ASCII ' .
89 'characters as UTF-8 instead of replacing them with hexadecimal escape sequences.',
94 if ( $this->mIsRaw ) {
95 return 'Output data with the debugging elements in JSON format' . parent::getDescription();
98 return 'Output data in JSON format' . parent::getDescription();
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
extractRequestParams( $parseLimit=true)
Using getAllowedParams(), this function makes an array of the values provided by the user,...
getResultData()
Get the result data array (read-only)