MediaWiki REL1_30
MockApiQueryBase.php
Go to the documentation of this file.
1<?php
3 private $name;
4
5 public function execute() {
6 }
7
8 public function __construct( $name = 'mock' ) {
9 $this->name = $name;
10 }
11
12 public function getModuleName() {
13 return $this->name;
14 }
15
16 public function getModulePath() {
17 return 'query+' . $this->getModuleName();
18 }
19}
This is a base class for all Query modules.
getModulePath()
Get the path to this module.
execute()
Evaluates the parameters, performs the requested query, and sets up the result.
__construct( $name='mock')
getModuleName()
Get the name of the module being executed by this instance.