MediaWiki
REL1_24
|
Public Member Functions | |
__construct () | |
execute ($par) | |
Default execute method Checks user permissions. | |
prefixSearchSubpages ($search, $limit=10) | |
Return an array of subpages beginning with $search that this special page will accept. | |
Protected Member Functions | |
getGroupName () | |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'. | |
Private Member Functions | |
getFrameworkListHtml () | |
Get a list of frameworks (including introduction paragraph and links to the framework run pages) | |
initQUnitTesting () | |
Initialize the page for QUnit. | |
wrapSummaryHtml ($html, $state) | |
Function to wrap the summary. | |
Static Private Attributes | |
static | $frameworks |
Definition at line 27 of file SpecialJavaScriptTest.php.
Definition at line 37 of file SpecialJavaScriptTest.php.
SpecialJavaScriptTest::execute | ( | $ | subPage | ) |
Default execute method Checks user permissions.
This must be overridden by subclasses; it will be made abstract in a future version
string | null | $subPage |
Reimplemented from SpecialPage.
Definition at line 41 of file SpecialJavaScriptTest.php.
References $out, $summary, getFrameworkListHtml(), SpecialPage\getOutput(), SpecialPage\getPageTitle(), Linker\linkKnown(), SpecialPage\msg(), SpecialPage\setHeaders(), and wrapSummaryHtml().
SpecialJavaScriptTest::getFrameworkListHtml | ( | ) | [private] |
Get a list of frameworks (including introduction paragraph and links to the framework run pages)
Definition at line 92 of file SpecialJavaScriptTest.php.
References array(), as, SpecialPage\getPageTitle(), Linker\link(), SpecialPage\msg(), and Html\rawElement().
Referenced by execute().
SpecialJavaScriptTest::getGroupName | ( | ) | [protected] |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.
Reimplemented from SpecialPage.
Definition at line 190 of file SpecialJavaScriptTest.php.
SpecialJavaScriptTest::initQUnitTesting | ( | ) | [private] |
Initialize the page for QUnit.
Definition at line 136 of file SpecialJavaScriptTest.php.
References $out, $summary, SpecialPage\getConfig(), SpecialPage\getLanguage(), SpecialPage\getOutput(), SpecialPage\msg(), will, and wrapSummaryHtml().
SpecialJavaScriptTest::prefixSearchSubpages | ( | $ | search, |
$ | limit = 10 |
||
) |
Return an array of subpages beginning with $search that this special page will accept.
string | $search | Prefix to search for |
int | $limit | Maximum number of results to return |
Reimplemented from SpecialPage.
Definition at line 182 of file SpecialJavaScriptTest.php.
References $limit, and SpecialPage\prefixSearchArray().
SpecialJavaScriptTest::wrapSummaryHtml | ( | $ | html, |
$ | state | ||
) | [private] |
Function to wrap the summary.
It must be given a valid state as a second parameter or an exception will be thrown.
string | $html | The raw HTML. |
string | $state | State, one of 'noframework', 'unknownframework' or 'frameworkfound' |
MWException |
Definition at line 120 of file SpecialJavaScriptTest.php.
References array().
Referenced by execute(), and initQUnitTesting().
SpecialJavaScriptTest::$frameworks [static, private] |
array( 'qunit' => 'initQUnitTesting', )
Definition at line 33 of file SpecialJavaScriptTest.php.