MediaWiki  1.23.2
ApiFormatDbg.php
Go to the documentation of this file.
1 <?php
31 class ApiFormatDbg extends ApiFormatBase {
32 
33  public function getMimeType() {
34  // This looks like it should be text/plain, but IE7 is so
35  // brain-damaged it tries to parse text/plain as HTML if it
36  // contains HTML tags. Using MIME text/text works around this bug
37  return 'text/text';
38  }
39 
40  public function execute() {
41  $this->printText( var_export( $this->getResultData(), true ) );
42  }
43 
44  public function getDescription() {
45  return 'Output data in PHP\'s var_export() format' . parent::getDescription();
46  }
47 }
php
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
Definition: skin.txt:62
ApiFormatDbg\execute
execute()
Evaluates the parameters, performs the requested query, and sets up the result.
Definition: ApiFormatDbg.php:40
ApiFormatBase
This is the abstract base class for API formatters.
Definition: ApiFormatBase.php:32
ApiFormatDbg\getMimeType
getMimeType()
Overriding class returns the mime type that should be sent to the client.
Definition: ApiFormatDbg.php:33
ApiFormatDbg\getDescription
getDescription()
Returns the description string for this module.
Definition: ApiFormatDbg.php:44
ApiFormatDbg
API PHP's var_export() output formatter.
Definition: ApiFormatDbg.php:31
ApiBase\getResultData
getResultData()
Get the result data array (read-only)
Definition: ApiBase.php:219
ApiFormatBase\printText
printText( $text)
The main format printing function.
Definition: ApiFormatBase.php:229