MediaWiki  1.23.1
ApiFormatPhp.php
Go to the documentation of this file.
1 <?php
31 class ApiFormatPhp extends ApiFormatBase {
32 
33  public function getMimeType() {
34  return 'application/vnd.php.serialized';
35  }
36 
37  public function execute() {
38  $this->printText( serialize( $this->getResultData() ) );
39  }
40 
41  public function getDescription() {
42  return 'Output data in serialized PHP format' . parent::getDescription();
43  }
44 }
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
ApiFormatBase
This is the abstract base class for API formatters.
Definition: ApiFormatBase.php:32
ApiFormatPhp\execute
execute()
Evaluates the parameters, performs the requested query, and sets up the result.
Definition: ApiFormatPhp.php:37
ApiFormatPhp\getMimeType
getMimeType()
Overriding class returns the mime type that should be sent to the client.
Definition: ApiFormatPhp.php:33
ApiFormatPhp\getDescription
getDescription()
Returns the description string for this module.
Definition: ApiFormatPhp.php:41
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
ApiFormatPhp
API Serialized PHP output formatter.
Definition: ApiFormatPhp.php:31