Go to the documentation of this file.
80 $option[
'default'] = $default;
81 $option[
'value'] =
null;
82 $option[
'consumed'] =
false;
84 if (
$type !== self::AUTO ) {
85 $option[
'type'] =
$type;
98 public function delete(
$name ) {
115 if ( is_bool( $data ) ) {
117 } elseif ( is_int( $data ) ) {
119 } elseif ( is_float( $data ) ) {
121 } elseif ( is_string( $data ) ) {
188 if ( $option[
'value'] !==
null ) {
189 return $option[
'value'];
191 return $option[
'default'];
264 if (
$type !== self::INT &&
$type !== self::FLOAT ) {
265 throw new MWException(
"Option $name is not of type INT or FLOAT" );
284 if ( !$data[
'consumed'] ) {
285 if ( $all || $data[
'value'] !==
null ) {
302 if ( $data[
'value'] !==
null ) {
303 $values[
$name] = $data[
'value'];
337 if ( !$optionKeys ) {
338 $optionKeys = array_keys( $this->
options );
341 foreach ( $optionKeys
as $name ) {
403 $this->
delete(
$name );
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
getIntOrNull( $name)
Fetch an integer value from the input or return null if empty.
getText( $name, $default='')
Fetch a text string from the given array or return $default if it's not set.
getFloat( $name, $default=0)
Fetch a floating point value from the input or return $default if not set.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
Allows to change the fields on the form that will be generated $name
We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing options(say) and put it in one place. Instead of having little title-reversing if-blocks spread all over the codebase in showAnArticle
The WebRequest class encapsulates getting at data passed in the URL or via a POSTed form,...
getInt( $name, $default=0)
Fetch an integer value from the input or return $default if not set.
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
getBool( $name, $default=false)
Fetch a boolean value from the input or return $default if not set.