Go to the documentation of this file.
37 parent::__construct(
$name );
90 $nsNames[] = $this->
msg(
'blanknamespace' )->plain();
108 'SpecialRandomGetRandomTitle',
138 'tables' =>
array(
'page' ),
139 'fields' =>
array(
'page_title',
'page_namespace' ),
140 'conds' => array_merge(
array(
142 'page_is_redirect' => $redirect,
143 'page_random >= ' . $randstr
146 'ORDER BY' =>
'page_random',
149 'join_conds' =>
array()
execute( $par)
Default execute method Checks user permissions, calls the function given in mFunction.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
getOutput()
Get the OutputPage being used for this instance.
& wfGetDB( $db, $groups=array(), $wiki=false)
Get a Database object.
if(!defined( 'MEDIAWIKI')) $fname
This file is not a valid entry point, perform no further processing unless MEDIAWIKI is defined.
this class mediates it Skin Encapsulates a look and feel for the wiki All of the functions that render HTML and make choices about how to render it are here and are called from various other places when and is meant to be subclassed with other skins that may override some of its functions The User object contains a reference to a and so rather than having a global skin object we just rely on the global User and get the skin with $wgUser and also has some character encoding functions and other locale stuff The current user interface language is instantiated as and the content language as $wgContLang
getName()
Get the name of this Special Page.
static getContentNamespaces()
Get a list of all namespace indices which are considered to contain content.
__construct( $name='Randompage')
to move a page</td >< td > &*You are moving the page across namespaces
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
selectRandomPageFromDB( $randstr, $fname=__METHOD__)
wfRunHooks( $event, array $args=array(), $deprecatedVersion=null)
Call hook functions defined in $wgHooks.
getNsList()
Get a comma-delimited list of namespaces we don't have any pages in.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes!
when a variable name is used in a it is silently declared as a new masking the global
static makeTitleSafe( $ns, $title, $fragment='', $interwiki='')
Create a new Title from a namespace index and a DB key.
presenting them properly to the user as errors is done by the caller $title
Allows to change the fields on the form that will be generated $name
msg()
Wrapper around wfMessage that sets the current context.
Parent class for all special pages.
getRequest()
Get the WebRequest being used for this instance.
wfRandom()
Get a random decimal value between 0 and 1, in a way not likely to give duplicate values for any real...
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
getRandomTitle()
Choose a random title.
Special page to direct the user to a random page.
return true to allow those checks to and false if checking is done use this to change the tables headers temp or archived zone change it to an object instance and return false override the list derivative used the name of the old file when set the default code will be skipped add a value to it if you want to add a cookie that have to vary cache options can modify $query