Go to the documentation of this file.
138 parent::__construct();
144 $wgParser->setHook(
'downloadlink',
array( $this,
'downloadLinkHook' ) );
158 if ( isset(
$session[
'settings'] ) ) {
165 if ( ( $this->
getVar(
'_InstallDone' ) || $this->
getVar(
'_UpgradeDone' ) )
166 && $this->
request->getVal(
'localsettings' )
168 $this->
request->response()->header(
'Content-type: application/x-httpd-php' );
169 $this->
request->response()->header(
170 'Content-Disposition: attachment; filename="LocalSettings.php"'
174 $rightsProfile = $this->rightsProfiles[$this->
getVar(
'_RightsProfile' )];
175 foreach ( $rightsProfile
as $group => $rightsArr ) {
176 $ls->setGroupRights( $group, $rightsArr );
183 $cssDir = $this->
request->getVal(
'css' );
185 $cssDir = ( $cssDir ==
'rtl' ?
'rtl' :
'ltr' );
186 $this->
request->response()->header(
'Content-type: text/css' );
187 echo $this->
output->getCSS( $cssDir );
192 if ( isset(
$session[
'happyPages'] ) ) {
193 $this->happyPages =
$session[
'happyPages'];
195 $this->happyPages =
array();
198 if ( isset(
$session[
'skippedPages'] ) ) {
199 $this->skippedPages =
$session[
'skippedPages'];
201 $this->skippedPages =
array();
206 # Special case for Creative Commons partner chooser box.
207 if ( $this->
request->getVal(
'SubmitCC' ) ) {
209 $this->
output->useShortHeader();
210 $this->
output->allowFrames();
216 if ( $this->
request->getVal(
'ShowCC' ) ) {
218 $this->
output->useShortHeader();
219 $this->
output->allowFrames();
226 $pageName = $this->
request->getVal(
'page' );
228 if ( in_array( $pageName, $this->otherPages ) ) {
234 if ( !$pageName || !in_array( $pageName, $this->pageSequence ) ) {
235 $pageId = $lowestUnhappy;
237 $pageId = array_search( $pageName, $this->pageSequence );
240 # If necessary, move back to the lowest-numbered unhappy page
241 if ( $pageId > $lowestUnhappy ) {
242 $pageId = $lowestUnhappy;
243 if ( $lowestUnhappy == 0 ) {
244 # Knocked back to start, possible loss of session data.
245 $this->showSessionWarning =
true;
249 $pageName = $this->pageSequence[$pageId];
253 # If a back button was submitted, go back without submitting the form data.
254 if ( $this->
request->wasPosted() && $this->
request->getBool(
'submit-back' ) ) {
255 if ( $this->
request->getVal(
'lastPage' ) ) {
256 $nextPage = $this->
request->getVal(
'lastPage' );
257 } elseif ( $pageId !==
false ) {
259 # Skip the skipped pages
260 $nextPageId = $pageId;
264 $nextPage = $this->pageSequence[$nextPageId];
265 }
while ( isset( $this->skippedPages[$nextPage] ) );
267 $nextPage = $this->pageSequence[$lowestUnhappy];
276 $this->currentPageName = $page->getName();
279 if ( $page->isSlow() ) {
288 # Page skipped without explicit submission.
289 # Skip it when we click "back" so that we don't just go forward again.
290 $this->skippedPages[$pageName] =
true;
293 unset( $this->skippedPages[$pageName] );
296 # If it was posted, the page can request a continue to the next page.
297 if (
$result ===
'continue' && !$this->
output->headerDone() ) {
298 if ( $pageId !==
false ) {
299 $this->happyPages[$pageId] =
true;
304 if ( $this->
request->getVal(
'lastPage' ) ) {
305 $nextPage = $this->
request->getVal(
'lastPage' );
306 } elseif ( $pageId !==
false ) {
307 $nextPage = $this->pageSequence[$pageId + 1];
309 $nextPage = $this->pageSequence[$lowestUnhappy];
312 if ( array_search( $nextPage, $this->pageSequence ) > $lowestUnhappy ) {
313 $nextPage = $this->pageSequence[$lowestUnhappy];
327 if ( count( $this->happyPages ) == 0 ) {
330 return max( array_keys( $this->happyPages ) ) + 1;
341 if (
wfIniGetBool(
'session.auto_start' ) || session_id() ) {
346 $this->phpErrors =
array();
347 set_error_handler(
array( $this,
'errorHandler' ) );
350 }
catch ( Exception
$e ) {
351 restore_error_handler();
354 restore_error_handler();
356 if ( $this->phpErrors ) {
357 $this->
showError(
'config-session-error', $this->phpErrors[0] );
375 $url = $this->
request->getFullRequestURL();
376 if ( preg_match(
'!^(.*\?)!', $url, $m ) ) {
380 if ( preg_match(
'!^(.*)/[^/]*/[^/]*$!', $url, $m ) ) {
387 'local path' => dirname( __DIR__ ),
398 $args = func_get_args();
399 array_shift(
$args );
412 $this->phpErrors[] = $errstr;
420 public function finish() {
433 public function reset() {
434 $this->session =
array();
447 $url = $this->
request->getRequestURL();
448 # Remove existing query
449 $url = preg_replace(
'/\?.*$/',
'', $url );
465 $pageClass =
'WebInstaller_' . $pageName;
467 return new $pageClass( $this );
479 if ( !isset( $this->session[
$name] ) ) {
482 return $this->session[
$name];
502 return $this->tabIndex++;
514 $this->
setVar(
'wgLanguageCode', $wgLanguageCode );
515 $this->
setVar(
'_UserLang', $wgLanguageCode );
517 $wgLanguageCode = $this->
getVar(
'wgLanguageCode' );
528 global $wgLanguageCode, $wgRequest;
531 $headerLanguages = array_keys( $wgRequest->getAcceptLang() );
533 foreach ( $headerLanguages
as $lang ) {
534 if ( isset( $mwLanguages[$lang] ) ) {
539 return $wgLanguageCode;
548 $s =
"<div class=\"config-page-wrapper\">\n";
549 $s .=
"<div class=\"config-page\">\n";
550 $s .=
"<div class=\"config-page-list\"><ul>\n";
553 foreach ( $this->pageSequence
as $id => $pageName ) {
554 $happy = !empty( $this->happyPages[$id] );
557 $happy || $lastHappy == $id - 1,
566 $s .=
"</ul><br/><ul>\n";
569 $s .=
"</ul></div>\n";
579 $this->
output->addHTMLNoFlush(
$s );
592 $s =
"<li class=\"config-page-list-item\">";
599 $name =
wfMessage(
'config-page-' . strtolower( $pageName ) )->text();
604 if ( !in_array( $pageName, $this->pageSequence ) ) {
620 $s .=
"<span class=\"config-page-current\">$link</span>";
627 'class' =>
'config-page-disabled'
642 $this->
output->addHTMLNoFlush(
643 "<div class=\"visualClear\"></div>\n" .
645 "<div class=\"visualClear\"></div>\n" .
657 return $this->
getInfoBox( $text,
'critical-32.png',
'config-error-box' );
668 return $this->
getInfoBox( $text,
'warning-32.png',
'config-warning-box' );
680 public function getInfoBox( $text, $icon =
false, $class =
false ) {
681 $text = $this->
parse( $text,
true );
682 $icon = ( $icon ==
false ) ?
683 '../skins/common/images/info-32.png' :
684 '../skins/common/images/' . $icon;
685 $alt =
wfMessage(
'config-information' )->text();
698 $args = func_get_args();
699 array_shift(
$args );
700 $args = array_map(
'htmlspecialchars',
$args );
704 return "<div class=\"mw-help-field-container\">\n" .
705 "<span class=\"mw-help-field-hint\">" .
wfMessage(
'config-help' )->escaped() .
707 "<span class=\"mw-help-field-data\">" .
$html .
"</span>\n" .
729 array_shift(
$args );
730 $html =
'<div class="config-message">' .
742 call_user_func_array(
array( $this,
'showMessage' ),
$error );
756 public function label( $msg, $forId, $contents, $helpData =
"" ) {
757 if ( strval( $msg ) ==
'' ) {
758 $labelText =
' ';
760 $labelText =
wfMessage( $msg )->escaped();
763 $attributes =
array(
'class' =>
'config-label' );
766 $attributes[
'for'] = $forId;
769 return "<div class=\"config-block\">\n" .
770 " <div class=\"config-block-label\">\n" .
777 " <div class=\"config-block-elements\">\n" .
798 if ( !isset(
$params[
'controlName'] ) ) {
802 if ( !isset(
$params[
'value'] ) ) {
806 if ( !isset(
$params[
'attribs'] ) ) {
809 if ( !isset(
$params[
'help'] ) ) {
821 'id' =>
$params[
'controlName'],
822 'class' =>
'config-input-text',
845 if ( !isset(
$params[
'controlName'] ) ) {
849 if ( !isset(
$params[
'value'] ) ) {
853 if ( !isset(
$params[
'attribs'] ) ) {
856 if ( !isset(
$params[
'help'] ) ) {
869 'id' =>
$params[
'controlName'],
870 'class' =>
'config-input-text',
894 if ( !isset(
$params[
'value'] ) ) {
898 if ( !isset(
$params[
'attribs'] ) ) {
903 $params[
'attribs'][
'type'] =
'password';
923 if ( !isset(
$params[
'controlName'] ) ) {
927 if ( !isset(
$params[
'value'] ) ) {
931 if ( !isset(
$params[
'attribs'] ) ) {
934 if ( !isset(
$params[
'help'] ) ) {
937 if ( isset(
$params[
'rawtext'] ) ) {
938 $labelText =
$params[
'rawtext'];
943 return "<div class=\"config-input-check\">\n" .
950 'id' =>
$params[
'controlName'],
977 if ( !isset(
$params[
'controlName'] ) ) {
981 if ( !isset(
$params[
'value'] ) ) {
985 if ( !isset(
$params[
'label'] ) ) {
990 if ( !isset(
$params[
'help'] ) ) {
995 $itemAttribs =
array();
997 if ( isset(
$params[
'commonAttribs'] ) ) {
998 $itemAttribs =
$params[
'commonAttribs'];
1002 $itemAttribs =
$params[
'itemAttribs'][
$value] + $itemAttribs;
1007 $itemAttribs[
'id'] = $id;
1031 if ( !$status->
isGood() ) {
1034 if ( $status->isOk() ) {
1055 $newValues =
array();
1057 foreach ( $varNames
as $name ) {
1063 $this->
setVar( $name,
false );
1065 if ( stripos(
$name,
'password' ) !==
false ) {
1084 $url =
"{$_SERVER['PHP_SELF']}?page=" . urlencode( $page );
1086 if ( in_array( $this->currentPageName, $this->pageSequence ) ) {
1087 $url .=
'&lastPage=' . urlencode( $this->currentPageName );
1105 return '<a href="' . htmlspecialchars( $url ) .
'">' .
1106 htmlspecialchars( $linkText ) .
1121 'src' =>
'../skins/common/images/download-32.png',
1126 array(
'href' => $this->getURL(
array(
'localsettings' => 1 ) ) ),
1127 $img .
' ' .
wfMessage(
'config-download-localsettings' )->
parse() );
1140 if ( !empty( $_SERVER[
'PHP_SELF'] ) ) {
1141 $path = $_SERVER[
'PHP_SELF'];
1142 } elseif ( !empty( $_SERVER[
'SCRIPT_NAME'] ) ) {
1143 $path = $_SERVER[
'SCRIPT_NAME'];
1145 if (
$path !==
false ) {
1146 $uri = preg_replace(
'{^(.*)/(mw-)?config.*$}',
'$1',
$path );
1147 $this->
setVar(
'wgScriptPath', $uri );
1154 return parent::envCheckPath();
getAcceptLanguage()
Retrieves MediaWiki language from Accept-Language HTTP header.
__construct()
Constructor, always call this from child classes.
The index of the header message $result[1]=The index of the body text message $result[2 through n]=Parameters passed to body text message. Please note the header message cannot receive/use parameters. 'ImportHandleLogItemXMLTag':When parsing a XML tag in a log item. $reader:XMLReader object $logInfo:Array of information Return false to stop further processing of the tag 'ImportHandlePageXMLTag':When parsing a XML tag in a page. $reader:XMLReader object $pageInfo:Array of information Return false to stop further processing of the tag 'ImportHandleRevisionXMLTag':When parsing a XML tag in a page revision. $reader:XMLReader object $pageInfo:Array of page information $revisionInfo:Array of revision information Return false to stop further processing of the tag 'ImportHandleToplevelXMLTag':When parsing a top level XML tag. $reader:XMLReader object Return false to stop further processing of the tag 'ImportHandleUploadXMLTag':When parsing a XML tag in a file upload. $reader:XMLReader object $revisionInfo:Array of information Return false to stop further processing of the tag 'InfoAction':When building information to display on the action=info page. $context:IContextSource object & $pageInfo:Array of information 'InitializeArticleMaybeRedirect':MediaWiki check to see if title is a redirect. $title:Title object for the current page $request:WebRequest $ignoreRedirect:boolean to skip redirect check $target:Title/string of redirect target $article:Article object 'InterwikiLoadPrefix':When resolving if a given prefix is an interwiki or not. Return true without providing an interwiki to continue interwiki search. $prefix:interwiki prefix we are looking for. & $iwData:output array describing the interwiki with keys iw_url, iw_local, iw_trans and optionally iw_api and iw_wikiid. 'InternalParseBeforeSanitize':during Parser 's internalParse method just before the parser removes unwanted/dangerous HTML tags and after nowiki/noinclude/includeonly/onlyinclude and other processings. Ideal for syntax-extensions after template/parser function execution which respect nowiki and HTML-comments. & $parser:Parser object & $text:string containing partially parsed text & $stripState:Parser 's internal StripState object 'InternalParseBeforeLinks':during Parser 's internalParse method before links but after nowiki/noinclude/includeonly/onlyinclude and other processings. & $parser:Parser object & $text:string containing partially parsed text & $stripState:Parser 's internal StripState object 'InvalidateEmailComplete':Called after a user 's email has been invalidated successfully. $user:user(object) whose email is being invalidated 'IRCLineURL':When constructing the URL to use in an IRC notification. Callee may modify $url and $query, URL will be constructed as $url . $query & $url:URL to index.php & $query:Query string $rc:RecentChange object that triggered url generation 'IsFileCacheable':Override the result of Article::isFileCacheable()(if true) $article:article(object) being checked 'IsTrustedProxy':Override the result of wfIsTrustedProxy() $ip:IP being check $result:Change this value to override the result of wfIsTrustedProxy() 'IsUploadAllowedFromUrl':Override the result of UploadFromUrl::isAllowedUrl() $url:URL used to upload from & $allowed:Boolean indicating if uploading is allowed for given URL 'isValidEmailAddr':Override the result of User::isValidEmailAddr(), for instance to return false if the domain name doesn 't match your organization. $addr:The e-mail address entered by the user & $result:Set this and return false to override the internal checks 'isValidPassword':Override the result of User::isValidPassword() $password:The password entered by the user & $result:Set this and return false to override the internal checks $user:User the password is being validated for 'Language::getMessagesFileName':$code:The language code or the language we 're looking for a messages file for & $file:The messages file path, you can override this to change the location. 'LanguageGetNamespaces':Provide custom ordering for namespaces or remove namespaces. Do not use this hook to add namespaces. Use CanonicalNamespaces for that. & $namespaces:Array of namespaces indexed by their numbers 'LanguageGetMagic':DEPRECATED, use $magicWords in a file listed in $wgExtensionMessagesFiles instead. Use this to define synonyms of magic words depending of the language $magicExtensions:associative array of magic words synonyms $lang:language code(string) 'LanguageGetSpecialPageAliases':DEPRECATED, use $specialPageAliases in a file listed in $wgExtensionMessagesFiles instead. Use to define aliases of special pages names depending of the language $specialPageAliases:associative array of magic words synonyms $lang:language code(string) 'LanguageGetTranslatedLanguageNames':Provide translated language names. & $names:array of language code=> language name $code language of the preferred translations 'LanguageLinks':Manipulate a page 's language links. This is called in various places to allow extensions to define the effective language links for a page. $title:The page 's Title. & $links:Associative array mapping language codes to prefixed links of the form "language:title". & $linkFlags:Associative array mapping prefixed links to arrays of flags. Currently unused, but planned to provide support for marking individual language links in the UI, e.g. for featured articles. 'LinkBegin':Used when generating internal and interwiki links in Linker::link(), before processing starts. Return false to skip default processing and return $ret. See documentation for Linker::link() for details on the expected meanings of parameters. $skin:the Skin object $target:the Title that the link is pointing to & $html:the contents that the< a > tag should have(raw HTML) $result
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
getHelpBox( $msg)
Get small text indented help for a preceding form field.
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses & $html
static tags( $element, $attribs=null, $contents)
Same as Xml::element(), but does not escape contents.
parse( $text, $lineStart=false)
Convert wikitext $text to HTML.
startPageWrapper( $currentPageName)
Called by execute() before page output starts, to show a page list.
label( $msg, $forId, $contents, $helpData="")
Label a control by wrapping a config-input div around it and putting a label before it.
getPageListItem( $pageName, $enabled, $currentPageName)
Get a list item for the page list.
startSession()
Start the PHP session.
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add text
bool $showSessionWarning
Flag indicating that session data may have been lost.
showStatusMessage(Status $status)
string[] $pageSequence
The main sequence of page names.
array[] $session
Cached session array.
setupLanguage()
Initializes language-related variables.
getCheckBox( $params)
Get a labelled checkbox to configure a boolean variable.
Class for the core installer web interface.
getWarningBox( $text)
Get HTML for a warning box with an icon.
int $tabIndex
Numeric index of the page we're on.
showHelpBox( $msg)
Output a help box.
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
getPageByName( $pageName)
Get a WebInstallerPage by name.
setPassword( $name, $value)
Set a variable which stores a password, except if the new value is a fake password in which case leav...
set to $title object and return false for a match for latest after cache objects are set use the ContentHandler facility to handle CSS and JavaScript for highlighting & $link
__construct(WebRequest $request)
Constructor.
bool[] $happyPages
Array of pages which have declared that they have been submitted, have validated their input,...
addHTML( $text)
Append $text to the body HTML.
showStatusBox( $status)
Output an error or warning box using a Status object.
getLowestUnhappy()
Find the next page in sequence that hasn't been completed.
setVar( $name, $value)
Set a MW configuration variable, or internal installer configuration variable.
getInfoBox( $text, $icon=false, $class=false)
Get HTML for an info box with an icon.
isGood()
Returns whether the operation completed and didn't have any error or warnings.
getUrl( $query=array())
Get a URL for submission back to the same script.
Output class modelled on OutputPage.
WebInstallerOutput $output
Generic operation result class Has warning/error list, boolean status and arbitrary value.
getRadioSet( $params)
Get a set of labelled radio buttons.
showMessage( $msg)
Show a short informational message.
getFakePassword( $realPassword)
Get a fake password for sending back to the user in HTML.
getTextArea( $params)
Get a labelled textarea to configure a variable.
static fetchLanguageNames( $inLanguage=null, $include='mw')
Get an array of language names, indexed by code.
setSession( $name, $value)
Set a session variable.
output()
Finally, all the text has been munged and accumulated into the object, let's actually output it:
WebRequest $request
WebRequest object.
static element( $element, $attribs=array(), $contents='')
Identical to rawElement(), but HTML-escapes $contents (like Xml::element()).
execute(array $session)
Main entry point.
nextTabIndex()
Get the next tabindex attribute value.
bool[] $skippedPages
List of "skipped" pages.
errorHandler( $errno, $errstr)
Temporary error handler for session start debugging.
do that in ParserLimitReportFormat instead $parser
getFingerprint()
Get a hash of data identifying this MW installation.
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses after processing after in associative array form externallinks including delete and has completed for all link tables default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message additional optional elements are parameters for the key that are processed with wfMessage() -> params() ->parseAsBlock() - offset Set to overwrite offset parameter in $wgRequest set to '' to unset offset - wrap String Wrap the message in html(usually something like "<
exportVars()
Exports all wg* variables stored by the installer into global scope.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
static getLocalSettingsGenerator(Installer $installer)
Instantiates and returns an instance of LocalSettingsGenerator or its descendant classes.
when a variable name is used in a it is silently declared as a new masking the global
downloadLinkHook( $text, $attribs, $parser)
Helper for "Download LocalSettings" link on WebInstall_Complete.
globals will be eliminated from MediaWiki replaced by an application object which would be passed to constructors Whether that would be an convenient solution remains to be but certainly PHP makes such object oriented programming models easier than they were in previous versions For the time being MediaWiki programmers will have to work in an environment with some global context At the time of globals were initialised on startup by MediaWiki of these were configuration settings
getVar( $name, $default=null)
Get an MW configuration variable, or internal installer configuration variable.
static infoBox( $text, $icon, $alt, $class=false, $useStylePath=true)
Get HTML for an info box with an icon.
string[] $phpErrors
Captured PHP error text.
processing should stop and the error should be shown to the user * false
string[] $otherPages
Out of sequence pages, selectable by the user at any time.
Allows to change the fields on the form that will be generated $name
string $currentPageName
Name of the page we're on.
getPasswordBox( $params)
Get a labelled password box to configure a variable.
static check( $name, $checked=false, $attribs=array())
Convenience function to build an HTML checkbox.
reset()
We're restarting the installation, reset the session, happyPages, etc.
setVarsFromRequest( $varNames, $prefix='config_')
Convenience function to set variables based on form data.
static textarea( $name, $content, $cols=40, $rows=5, $attribs=array())
Shortcut for creating textareas.
wfIniGetBool( $setting)
Safety wrapper around ini_get() for boolean settings.
endPageWrapper()
Output some stuff after a page is finished.
showError( $msg)
Show an error message in a box.
getErrorBox( $text)
Get HTML for an error box with an icon.
The WebRequest class encapsulates getting at data passed in the URL or via a POSTed form,...
docLink( $linkText, $attribs, $parser)
Extension tag hook for a documentation link.
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 $wgLang
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add in any and then calling output() to send it all. It could be easily changed to send incrementally if that becomes useful
getWarningsArray()
Get the list of warnings (but not errors)
static radio( $name, $value, $checked=false, $attribs=array())
Convenience function to build an HTML radio button.
redirect( $url, $responsecode='302')
Redirect to $url rather than displaying the normal page.
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
getDocUrl( $page)
Helper for Installer::docLink()
static detectServer()
Work out an appropriate URL prefix containing scheme and host, based on information detected from $_S...
disableTimeLimit()
Disable the time limit for execution.
getTextBox( $params)
Get a labelled text box to configure a variable.
static factory( $code)
Get a cached or new language object for a given language code.
static input( $name, $size=false, $value=false, $attribs=array())
Convenience function to build an HTML text input field.
usually copyright or history_copyright This message must be in HTML not wikitext $subpages will be ignored and the rest of subPageSubtitle() will run. 'SkinTemplateBuildNavUrlsNav_urlsAfterPermalink' whether MediaWiki currently thinks this is a CSS JS page Hooks may change this value to override the return value of Title::isCssOrJsPage(). 'TitleIsAlwaysKnown' whether MediaWiki currently thinks this page is known isMovable() always returns false. $title whether MediaWiki currently thinks this page is movable Hooks may change this value to override the return value of Title::isMovable(). 'TitleIsWikitextPage' whether MediaWiki currently thinks this is a wikitext page Hooks may change this value to override the return value of Title::isWikitextPage() 'TitleMove' use UploadVerification and UploadVerifyFile instead where the first element is the message key and the remaining elements are used as parameters to the message based on mime etc Preferred in most cases over UploadVerification object with all info about the upload string as detected by MediaWiki Handlers will typically only apply for specific mime types object & $error
static rawElement( $element, $attribs=array(), $contents='')
Returns an HTML element in a string.
getErrorsArray()
Get the list of errors (but not warnings)
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
getSession( $name, $default=null)
Get a session variable.
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses after processing & $attribs
finish()
Clean up from execute()
div flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LoginAuthenticateAudit' this hook is for auditing only etc create2 Corresponds to logging log_action database field and which is displayed in the UI similar to $comment this hook should only be used to add variables that depend on the current page request
getWikiText( $shortContext=false, $longContext=false)
Get the error list as a wikitext formatted list.
wfArrayToCgi( $array1, $array2=null, $prefix='')
This function takes two arrays as input, and returns a CGI-style string, e.g.