/**
* API PHP's var_export() output formatter
+ * @deprecated since 1.24
* @ingroup API
*/
class ApiFormatDbg extends ApiFormatBase {
- public function __construct( $main, $format ) {
- parent::__construct( $main, $format );
- }
-
public function getMimeType() {
// This looks like it should be text/plain, but IE7 is so
// brain-damaged it tries to parse text/plain as HTML if it
}
public function execute() {
- $this->printText( var_export( $this->getResultData(), true ) );
- }
-
- public function getDescription() {
- return 'Output data in PHP\'s var_export() format' . parent::getDescription();
+ $this->markDeprecated();
+ $data = $this->getResult()->getResultData( null, array(
+ 'BC' => array(),
+ 'Types' => array(),
+ 'Strip' => 'all',
+ ) );
+ $this->printText( var_export( $data, true ) );
}
- public function getVersion() {
- return __CLASS__ . ': $Id$';
+ public function isDeprecated() {
+ return true;
}
}