/**
* API PHP's var_dump() output formatter
+ * @deprecated since 1.24
* @ingroup API
*/
class ApiFormatDump extends ApiFormatBase {
}
public function execute() {
+ $this->markDeprecated();
ob_start();
var_dump( $this->getResultData() );
$result = ob_get_contents();
$this->printText( $result );
}
- public function getDescription() {
- return 'Output data in PHP\'s var_dump() format' . parent::getDescription();
+ public function isDeprecated() {
+ return true;
}
}