Go to the documentation of this file.
56 $this->selected =
null;
69 if ( strpos(
$line,
'*' ) !== 0 ) {
74 if ( strpos(
$line,
'|' ) !==
false ) {
76 $this->
stackItem( $this->licenses, $levels, $obj );
78 if ( $level < count( $levels ) ) {
79 $levels = array_slice( $levels, 0, $level );
81 if ( $level == count( $levels ) ) {
82 $levels[$level - 1] =
$line;
83 } elseif ( $level > count( $levels ) ) {
96 $numStars = strspn( $str,
'*' );
97 return array( $numStars, ltrim( substr( $str, $numStars ),
' ' ) );
109 $position =& $position[$key];
119 protected function makeHtml( $tagset, $depth = 0 ) {
120 foreach ( $tagset
as $key => $val ) {
121 if ( is_array( $val ) ) {
125 'disabled' =>
'disabled',
126 'style' =>
'color: GrayText',
130 $this->
makeHtml( $val, $depth + 1 );
133 $val->text, $val->template,
134 array(
'title' =>
'{{' . $val->template .
'}}' ),
149 $msgObj = $this->
msg( $message );
150 $text = $msgObj->exists() ? $msgObj->text() : $message;
152 if (
$value === $this->selected ) {
156 $val = str_repeat(
"\xc2\xa0", $depth * 2 ) . $text;
182 (
bool)$this->selected ?
null :
array(
'selected' =>
'selected' ) );
186 'name' => $this->mName,
189 if ( !empty( $this->mParams[
'disabled'] ) ) {
190 $attibs[
'disabled'] =
'disabled';
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
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
stackItem(&$list, $path, $item)
getInputHTML( $value)
Accessor for $this->html.
A License class for use on Special:Upload.
makeHtml( $tagset, $depth=0)
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 "<
static element( $element, $attribs=null, $contents='', $allowShortTag=true)
Format an XML element with given attributes and, optionally, text content.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
outputOption( $message, $value, $attribs=null, $depth=0)
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global list
A License class for use on Special:Upload (represents a single type of license).
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
static rawElement( $element, $attribs=array(), $contents='')
Returns an HTML element in a string.
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
__construct( $str)
Constructor.