2013-10-23 16:01:33 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
class MockApi extends ApiBase {
|
2016-08-16 20:36:27 +00:00
|
|
|
public $warnings = [];
|
|
|
|
|
|
2013-10-23 16:01:33 +00:00
|
|
|
public function execute() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function __construct() {
|
|
|
|
|
}
|
|
|
|
|
|
2016-10-19 16:54:25 +00:00
|
|
|
public function getModulePath() {
|
|
|
|
|
return $this->getModuleName();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function addWarning( $warning, $code = null, $data = null ) {
|
2016-08-16 20:36:27 +00:00
|
|
|
$this->warnings[] = $warning;
|
|
|
|
|
}
|
|
|
|
|
|
2013-10-23 16:01:33 +00:00
|
|
|
public function getAllowedParams() {
|
2016-02-17 09:09:32 +00:00
|
|
|
return [
|
2013-10-23 16:01:33 +00:00
|
|
|
'filename' => null,
|
|
|
|
|
'enablechunks' => false,
|
|
|
|
|
'sessionkey' => null,
|
2016-02-17 09:09:32 +00:00
|
|
|
];
|
2013-10-23 16:01:33 +00:00
|
|
|
}
|
2013-11-19 18:03:54 +00:00
|
|
|
}
|