MockApi.php 447 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. class MockApi extends ApiBase {
  3. public $warnings = [];
  4. public function execute() {
  5. }
  6. public function __construct() {
  7. }
  8. public function getModulePath() {
  9. return $this->getModuleName();
  10. }
  11. public function addWarning( $warning, $code = null, $data = null ) {
  12. $this->warnings[] = $warning;
  13. }
  14. public function getAllowedParams() {
  15. return [
  16. 'filename' => null,
  17. 'enablechunks' => false,
  18. 'sessionkey' => null,
  19. ];
  20. }
  21. }