12345678910111213141516171819202122232425262728 |
- <?php
- class MockApi extends ApiBase {
- public $warnings = [];
- public function execute() {
- }
- public function __construct() {
- }
- public function getModulePath() {
- return $this->getModuleName();
- }
- public function addWarning( $warning, $code = null, $data = null ) {
- $this->warnings[] = $warning;
- }
- public function getAllowedParams() {
- return [
- 'filename' => null,
- 'enablechunks' => false,
- 'sessionkey' => null,
- ];
- }
- }
|