Go to the documentation of this file.
42 "<wddxPacket version='1.0'><header/><data><string>\xc2\xa0</string></data></wddxPacket>";
43 if ( function_exists(
'wddx_serialize_value' )
45 && wddx_serialize_value(
"\xc2\xa0" ) == $expected
53 $this->
printText(
"<?xml version=\"1.0\"?>$nl" );
54 $this->
printText(
"<wddxPacket version=\"1.0\">$nl" );
55 $this->
printText(
"$indstr<header/>$nl" );
68 function slowWddxPrinter( $elemValue, $indent = 0 ) {
69 $indstr = ( $this->
getIsHtml() ? str_repeat(
' ', $indent ) :
'' );
70 $indstr2 = ( $this->
getIsHtml() ? str_repeat(
' ', $indent + 2 ) :
'' );
72 if ( is_array( $elemValue ) ) {
75 $cnt = count( $elemValue );
76 if ( $cnt == 0 || array_keys( $elemValue ) === range( 0, $cnt - 1 ) ) {
79 'length' => $cnt ),
null ) . $nl );
80 foreach ( $elemValue
as $subElemValue ) {
81 $this->slowWddxPrinter( $subElemValue, $indent + 2 );
87 foreach ( $elemValue
as $subElemName => $subElemValue ) {
89 'name' => $subElemName
91 $this->slowWddxPrinter( $subElemValue, $indent + 4 );
94 $this->
printText(
"$indstr</struct>$nl" );
96 } elseif ( is_int( $elemValue ) || is_float( $elemValue ) ) {
98 } elseif ( is_string( $elemValue ) ) {
100 } elseif ( is_bool( $elemValue ) ) {
102 array(
'value' => $elemValue ?
'true' :
'false' ) ) . $nl
110 return 'Output data in WDDX format' . parent::getDescription();
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
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.
getResultData()
Get the result data array (read-only)
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 dieDebug( $method, $message)
Internal code errors should be reported with this method.
execute()
Evaluates the parameters, performs the requested query, and sets up the result.