Inherits SpecialPage.
Inherited by SpecialRandomredirect.
Public Member Functions | |
__construct ($name= 'Randompage') | |
getNamespaces () | |
setNamespace ($ns) | |
isRedirect () | |
execute ($par) | |
Default execute method Checks user permissions, calls the function given in mFunction. | |
getRandomTitle () | |
Choose a random title. | |
Private Member Functions | |
selectRandomPageFromDB ($randstr) | |
Private Attributes | |
$namespaces |
Definition at line 10 of file SpecialRandompage.php.
RandomPage::__construct | ( | $ | name = 'Randompage' |
) |
RandomPage::execute | ( | $ | par | ) |
Default execute method Checks user permissions, calls the function given in mFunction.
This may be overridden by subclasses.
Reimplemented from SpecialPage.
Definition at line 36 of file SpecialRandompage.php.
References $title, $wgContLang, $wgOut, getRandomTitle(), isRedirect(), SpecialPage::setHeaders(), and setNamespace().
RandomPage::getNamespaces | ( | ) |
Definition at line 21 of file SpecialRandompage.php.
RandomPage::getRandomTitle | ( | ) |
Choose a random title.
Definition at line 59 of file SpecialRandompage.php.
References $row, Title::makeTitleSafe(), selectRandomPageFromDB(), and wfRandom().
Referenced by execute().
RandomPage::isRedirect | ( | ) |
Reimplemented in SpecialRandomredirect.
Definition at line 32 of file SpecialRandompage.php.
Referenced by execute(), and selectRandomPageFromDB().
RandomPage::selectRandomPageFromDB | ( | $ | randstr | ) | [private] |
Definition at line 79 of file SpecialRandompage.php.
References $dbr, $fname, $ns, $page, $res, $sql, $wgExtraRandompageSQL, isRedirect(), and wfGetDB().
Referenced by getRandomTitle().
RandomPage::setNamespace | ( | $ | ns | ) |
RandomPage::$namespaces [private] |
Definition at line 11 of file SpecialRandompage.php.