Go to the documentation of this file.
88 $this->history = $history;
103 $this->sink =&
$sink;
108 $this->sink->writeOpenStream(
$output );
113 $this->sink->writeCloseStream(
$output );
133 $condition =
'page_id >= ' . intval( $start );
135 $condition .=
' AND page_id < ' . intval( $end );
148 $condition =
'rev_id >= ' . intval( $start );
150 $condition .=
' AND rev_id < ' . intval( $end );
160 'page_namespace=' .
$title->getNamespace() .
161 ' AND page_title=' . $this->db->addQuotes(
$title->getDBkey() ) );
170 if ( is_null(
$title ) ) {
171 throw new MWException(
"Can't export invalid title" );
195 $condition =
'log_id >= ' . intval( $start );
197 $condition .=
' AND log_id < ' . intval( $end );
211 $this->author_list =
"<contributors>";
214 $res = $this->db->select(
215 array(
'page',
'revision' ),
216 array(
'DISTINCT rev_user_text',
'rev_user' ),
225 foreach (
$res as $row ) {
226 $this->author_list .=
"<contributor>" .
228 htmlentities( $row->rev_user_text ) .
235 $this->author_list .=
"</contributors>";
244 protected function dumpFrom( $cond =
'' ) {
246 # For logging dumps...
247 if ( $this->history & self::LOGS ) {
248 $where =
array(
'user_id = log_user' );
252 $where[] = $hideLogs;
254 # Add on any caller specified conditions
258 # Get logging table name for logging.* clause
259 $logging = $this->db->tableName(
'logging' );
262 $prev = $this->db->bufferResults(
false );
266 $result = $this->db->select(
array(
'logging',
'user' ),
267 array(
"{$logging}.*",
'user_name' ),
270 array(
'ORDER BY' =>
'log_id',
'USE INDEX' =>
array(
'logging' =>
'PRIMARY' ) )
272 $wrapper = $this->db->resultObject(
$result );
275 $this->db->bufferResults( $prev );
277 }
catch ( Exception
$e ) {
286 }
catch ( Exception $e2 ) {
294 $this->db->bufferResults( $prev );
296 }
catch ( Exception $e2 ) {
308 $opts =
array(
'ORDER BY' =>
'page_id ASC' );
309 $opts[
'USE INDEX'] =
array();
311 if ( is_array( $this->history ) ) {
312 # Time offset/limit for all pages/history...
313 $revJoin =
'page_id=rev_page';
315 if ( $this->history[
'dir'] ==
'asc' ) {
317 $opts[
'ORDER BY'] =
'rev_timestamp ASC';
320 $opts[
'ORDER BY'] =
'rev_timestamp DESC';
323 if ( !empty( $this->history[
'offset'] ) ) {
324 $revJoin .=
" AND rev_timestamp $op " .
325 $this->db->addQuotes( $this->db->timestamp( $this->history[
'offset'] ) );
327 $join[
'revision'] =
array(
'INNER JOIN', $revJoin );
329 if ( !empty( $this->history[
'limit'] ) ) {
330 $opts[
'LIMIT'] = intval( $this->history[
'limit'] );
333 # Full history dumps...
334 $join[
'revision'] =
array(
'INNER JOIN',
'page_id=rev_page' );
336 # Latest revision dumps...
337 if ( $this->list_authors && $cond !=
'' ) {
340 $join[
'revision'] =
array(
'INNER JOIN',
'page_id=rev_page AND page_latest=rev_id' );
342 # "Stable" revision dumps...
343 # Default JOIN, to be overridden...
344 $join[
'revision'] =
array(
'INNER JOIN',
'page_id=rev_page AND page_latest=rev_id' );
345 # One, and only one hook should set this, and return false
348 throw new MWException( __METHOD__ .
" given invalid history dump type." );
351 # Dump of revisions within a specified range
352 $join[
'revision'] =
array(
'INNER JOIN',
'page_id=rev_page' );
353 $opts[
'ORDER BY'] =
array(
'rev_page ASC',
'rev_id ASC' );
355 # Unknown history specification parameter?
357 throw new MWException( __METHOD__ .
" given invalid history dump type." );
359 # Query optimization hacks
361 $opts[] =
'STRAIGHT_JOIN';
362 $opts[
'USE INDEX'][
'page'] =
'PRIMARY';
364 # Build text join options
367 $join[
'text'] =
array(
'INNER JOIN',
'rev_text_id=old_id' );
371 $prev = $this->db->bufferResults(
false );
380 $result = $this->db->select(
$tables,
'*', $cond, __METHOD__, $opts, $join );
381 $wrapper = $this->db->resultObject(
$result );
382 # Output dump results
386 $this->db->bufferResults( $prev );
388 }
catch ( Exception
$e ) {
397 }
catch ( Exception $e2 ) {
405 $this->db->bufferResults( $prev );
407 }
catch ( Exception $e2 ) {
433 foreach ( $resultset
as $row ) {
434 if (
$last ===
null ||
435 $last->page_namespace != $row->page_namespace ||
436 $last->page_title != $row->page_title ) {
437 if (
$last !==
null ) {
443 $this->sink->writeClosePage(
$output );
446 $this->sink->writeOpenPage( $row,
$output );
450 $this->sink->writeRevision( $row,
$output );
452 if (
$last !==
null ) {
459 $this->sink->writeClosePage(
$output );
467 foreach ( $resultset
as $row ) {
469 $this->sink->writeLogItem( $row,
$output );
502 'xmlns' =>
"http://www.mediawiki.org/xml/export-$ver/",
503 'xmlns:xsi' =>
"http://www.w3.org/2001/XMLSchema-instance",
504 'xsi:schemaLocation' =>
"http://www.mediawiki.org/xml/export-$ver/ " .
506 "http://www.mediawiki.org/xml/export-$ver.xsd",
508 'xml:lang' => $wgLanguageCode ),
524 return " <siteinfo>\n " .
525 implode(
"\n ", $info ) .
558 $sensitivity = $wgCapitalLinks ?
'first-letter' :
'case-sensitive';
567 $spaces =
"<namespaces>\n";
576 $spaces .=
" </namespaces>";
587 return "</mediawiki>\n";
603 if ( $row->page_is_redirect ) {
605 $redirect = $page->getRedirectTarget();
613 if ( $row->page_restrictions !=
'' ) {
615 strval( $row->page_restrictions ) ) .
"\n";
644 $out =
" <revision>\n";
646 if ( isset( $row->rev_parent_id ) && $row->rev_parent_id ) {
647 $out .=
" " .
Xml::element(
'parentid',
null, strval( $row->rev_parent_id ) ) .
"\n";
658 if ( isset( $row->rev_minor_edit ) && $row->rev_minor_edit ) {
659 $out .=
" <minor/>\n";
663 } elseif ( $row->rev_comment !=
'' ) {
670 } elseif ( isset( $row->old_text ) ) {
674 array(
'xml:space' =>
'preserve',
'bytes' => intval( $row->rev_len ) ),
675 strval( $text ) ) .
"\n";
679 array(
'id' => $row->rev_text_id,
'bytes' => intval( $row->rev_len ) ),
683 if ( isset( $row->rev_sha1 )
687 $out .=
" " .
Xml::element(
'sha1',
null, strval( $row->rev_sha1 ) ) .
"\n";
689 $out .=
" <sha1/>\n";
692 if ( isset( $row->rev_content_model ) && !is_null( $row->rev_content_model ) ) {
693 $content_model = strval( $row->rev_content_model );
701 $out .=
" " .
Xml::element(
'model',
null, strval( $content_model ) ) .
"\n";
703 if ( isset( $row->rev_content_format ) && !is_null( $row->rev_content_format ) ) {
704 $content_format = strval( $row->rev_content_format );
709 $content_format = $content_handler->getDefaultFormat();
712 $out .=
" " .
Xml::element(
'format',
null, strval( $content_format ) ) .
"\n";
716 $out .=
" </revision>\n";
733 $out =
" <logitem>\n";
746 } elseif ( $row->log_comment !=
'' ) {
750 $out .=
" " .
Xml::element(
'type',
null, strval( $row->log_type ) ) .
"\n";
751 $out .=
" " .
Xml::element(
'action',
null, strval( $row->log_action ) ) .
"\n";
759 array(
'xml:space' =>
'preserve' ),
760 strval( $row->log_params ) ) .
"\n";
763 $out .=
" </logitem>\n";
776 return $indent .
Xml::element(
'timestamp',
null, $ts ) .
"\n";
786 $out = $indent .
"<contributor>\n";
793 $out .= $indent .
"</contributor>\n";
804 if ( $row->page_namespace ==
NS_FILE ) {
806 if ( $img && $img->exists() ) {
808 foreach ( array_reverse( $img->getHistory() )
as $ver ) {
824 if (
$file->isOld() ) {
830 if ( $dumpContents ) {
831 $be =
$file->getRepo()->getBackend();
832 # Dump file as base64
833 # Uses only XML-safe characters, so does not need escaping
834 # @todo Too bad this loads the contents into memory (script might swap)
835 $contents =
' <contents encoding="base64">' .
836 chunk_split( base64_encode(
837 $be->getFileContents(
array(
'src' =>
$file->getPath() ) ) ) ) .
847 return " <upload>\n" .
872 if (
$title->isExternal() ) {
873 return $title->getPrefixedText();
877 $prefix = str_replace(
'_',
' ',
$wgContLang->getNsText(
$title->getNamespace() ) );
879 if ( $prefix !==
'' ) {
883 return $prefix .
$title->getText();
897 $this->
write( $string );
904 $this->
write( $string );
912 $this->
write( $string );
919 $this->
write( $string );
927 $this->
write( $string );
935 $this->
write( $string );
943 function write( $string ) {
989 $this->handle = fopen(
$file,
"wt" );
990 $this->filename =
$file;
997 parent::writeCloseStream( $string );
998 if ( $this->handle ) {
999 fclose( $this->handle );
1000 $this->handle =
false;
1007 function write( $string ) {
1008 fputs( $this->handle, $string );
1023 if ( !rename( $this->filename, $newname ) ) {
1024 throw new MWException( __METHOD__ .
": rename of file {$this->filename} to $newname failed\n" );
1034 if ( is_array( $newname ) ) {
1035 if ( count( $newname ) > 1 ) {
1036 throw new MWException( __METHOD__ .
": passed multiple arguments for rename of single file\n" );
1038 $newname = $newname[0];
1051 if ( $this->handle ) {
1052 fclose( $this->handle );
1053 $this->handle =
false;
1057 $this->handle = fopen( $this->filename,
"wt" );
1085 if ( !is_null(
$file ) ) {
1091 $this->filename =
$file;
1098 parent::writeCloseStream( $string );
1099 if ( $this->procOpenResource ) {
1100 proc_close( $this->procOpenResource );
1101 $this->procOpenResource =
false;
1110 0 =>
array(
"pipe",
"r" ),
1113 $this->procOpenResource = proc_open(
$command, $spec, $pipes );
1114 $this->handle = $pipes[0];
1131 if ( $this->handle ) {
1132 fclose( $this->handle );
1133 $this->handle =
false;
1135 if ( $this->procOpenResource ) {
1136 proc_close( $this->procOpenResource );
1137 $this->procOpenResource =
false;
1160 parent::__construct(
"gzip",
$file );
1174 parent::__construct(
"bzip2",
$file );
1190 $this->filename =
$file;
1212 fclose( $this->handle );
1213 proc_close( $this->procOpenResource );
1247 $this->sink =&
$sink;
1254 $this->sink->writeOpenStream( $string );
1261 $this->sink->writeCloseStream( $string );
1269 $this->sendingThisPage = $this->
pass( $page, $string );
1270 if ( $this->sendingThisPage ) {
1271 $this->sink->writeOpenPage( $page, $string );
1279 if ( $this->sendingThisPage ) {
1280 $this->sink->writeClosePage( $string );
1281 $this->sendingThisPage =
false;
1290 if ( $this->sendingThisPage ) {
1291 $this->sink->writeRevision(
$rev, $string );
1300 $this->sink->writeRevision(
$rev, $string );
1307 $this->sink->closeRenameAndReopen( $newname );
1315 $this->sink->closeAndRename( $newname, $open );
1322 return $this->sink->getFilenames();
1330 function pass( $page ) {
1345 function pass( $page ) {
1364 parent::__construct(
$sink );
1386 if ( $param { 0 } ==
'!' ) {
1387 $this->invert =
true;
1388 $param = substr( $param, 1 );
1391 foreach ( explode(
',', $param )
as $key ) {
1392 $key = trim( $key );
1393 if ( isset( $constants[$key] ) ) {
1394 $ns = $constants[$key];
1396 } elseif ( is_numeric( $key ) ) {
1397 $ns = intval( $key );
1400 throw new MWException(
"Unrecognized namespace key '$key'\n" );
1409 function pass( $page ) {
1410 $match = isset( $this->
namespaces[$page->page_namespace] );
1411 return $this->invert xor $match;
1428 $this->pageString = $string;
1436 $this->sink->writeOpenPage( $this->
page, $this->pageString );
1437 $this->sink->writeRevision( $this->rev, $this->revString );
1438 $this->sink->writeClosePage( $string );
1441 $this->revString =
null;
1443 $this->pageString =
null;
1451 if (
$rev->rev_id == $this->page->page_latest ) {
1453 $this->revString = $string;
1468 $this->sinks = $sinks;
1469 $this->count = count( $sinks );
1477 $this->sinks[$i]->writeOpenStream( $string );
1486 $this->sinks[$i]->writeCloseStream( $string );
1496 $this->sinks[$i]->writeOpenPage( $page, $string );
1505 $this->sinks[$i]->writeClosePage( $string );
1515 $this->sinks[$i]->writeRevision(
$rev, $string );
1532 $this->sinks[$i]->closeAndRename( $newnames[$i], $open );
1540 $filenames =
array();
1542 $filenames[] = $this->sinks[$i]->getFilenames();
1563 $string = htmlspecialchars( $string );
openStream()
Opens the XML output stream's root "<mediawiki>" element.
static & makeTitle( $ns, $title, $fragment='', $interwiki='')
Create a new Title from a namespace index and a DB key.
static schemaVersion()
Returns the export schema version.
static getForModelID( $modelId)
Returns the ContentHandler singleton for the given model ID.
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
static newFromText( $text, $defaultNamespace=NS_MAIN)
Create a new Title from text, such as what one would find in a link.
closeRenameAndReopen( $newname)
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
closeRenameAndReopen( $newname)
checkRenameArgCount( $newname)
static isTalk( $index)
Is the given namespace a talk namespace?
pagesByRange( $start, $end)
Dumps a series of page and revision records for those pages in the database falling within the page_i...
Dump output filter to include or exclude pages in a given set of namespaces.
namespace and then decline to actually register it RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist e g Watchlist & $tables
revsByRange( $start, $end)
Dumps a series of page and revision records for those pages in the database with revisions falling wi...
openPage( $row)
Opens a "<page>" section on the output stream, with data from the given database row.
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
static newMainPage()
Create a new Title for the Main Page.
static elementClean( $element, $attribs=array(), $contents='')
Format an XML element as with self::element(), but run text through the $wgContLang->normalize() vali...
writeLogItem( $rev, $string)
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
static cleanUp( $string)
The ultimate convenience function! Clean up invalid UTF-8 sequences, and convert to normal form C,...
pass( $page)
Override for page-based filter types.
wfProfileIn( $functionname)
Begin profiling of a function.
static getRevisionText( $row, $prefix='old_', $wiki=false)
Get revision text associated with an old or archive row $row is usually an object from wfFetchRow(),...
writeRevision( $rev, $string)
__construct( $db, $history=WikiExporter::CURRENT, $buffer=WikiExporter::BUFFER, $text=WikiExporter::TEXT)
If using WikiExporter::STREAM to stream a large amount of data, provide a database connection which i...
closeRenameAndReopen( $newname)
Close the old file, move it to a specified name, and reopen new file with the old name.
writeOpenPage( $page, $string)
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
Simple dump output filter to exclude all talk pages.
writeOpenStream( $string)
closeAndRename( $newname, $open=false)
renameOrException( $newname)
writeOpenStream( $string)
writeCloseStream( $string)
writeLogItem( $row)
Dumps a "<logitem>" section on the output stream, with data filled in from the given database row.
writeCloseStream( $string)
Base class for output stream; prints to stdout or buffer or wherever.
static getDefaultModelFor(Title $title)
Returns the name of the default content model to be used for the page with the given title.
to move a page</td >< td > &*You are moving the page across namespaces
getFilenames()
Returns the name of the file or files which are being written to, if there are any.
static factory(Title $title)
Create a WikiPage object of the appropriate class for the given title.
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
static canonicalTitle(Title $title)
Return prefixed text form of title, but using the content language's canonical namespace.
writeRevision( $rev, $string)
writeContributor( $id, $text, $indent=" ")
const NS_IMAGE
NS_IMAGE and NS_IMAGE_TALK are the pre-v1.14 names for NS_FILE and NS_FILE_TALK respectively,...
has been added to your &Future changes to this page and its associated Talk page will be listed there
const TS_ISO_8601
ISO 8601 format with no timezone: 1986-02-09T20:00:00Z.
isValidRedirectTarget()
Check if this Title is a valid redirect target.
outputLogStream( $resultset)
wfProfileOut( $functionname='missing')
Stop profiling of a function.
static element( $element, $attribs=null, $contents='', $allowShortTag=true)
Format an XML element with given attributes and, optionally, text content.
__construct( $command, $file=null)
writeOpenPage( $page, $string)
wfRunHooks( $event, array $args=array(), $deprecatedVersion=null)
Call hook functions defined in $wgHooks.
allPages()
Dumps a series of page and revision records for all pages in the database, either including complete ...
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
when a variable name is used in a it is silently declared as a new masking the global
closeAndRename( $newname, $open=false)
Base class for output stream; prints to stdout or buffer or wherever.
closeStream()
Closes the output stream with the closing root element.
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
processing should stop and the error should be shown to the user * false
Dump output filter to include only the last revision in each page sequence.
presenting them properly to the user as errors is done by the caller $title
when a variable name is used in a function
Allows to change the fields on the form that will be generated $name
writeOpenPage( $page, $string)
writeRevision( $rev, $string)
wfEscapeShellArg()
Windows-compatible version of escapeshellarg() Windows doesn't recognise single-quotes in the shell,...
writeOpenPage( $page, $string)
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title after the basic globals have been set up
static getExcludeClause( $db, $audience='public', User $user=null)
SQL clause to skip forbidden log types for this user.
do_list_authors( $cond)
Generates the distinct list of authors of an article Not called by default (depends on $this->list_au...
writeUpload( $file, $dumpContents=false)
writeTimestamp( $timestamp, $indent=" ")
writeOpenStream( $string)
wfGetNull()
Get a platform-independent path to the null file, e.g.
static isValid( $ip)
Validate an IP address.
closeRenameAndReopen( $newname)
closeAndRename( $newnames, $open=false)
Dump output filter class.
DumpOutput $sink
FIXME will need to be made protected whenever legacy code is updated.
if(PHP_SAPI !='cli') $file
writeRevision( $row)
Dumps a "<revision>" section on the output stream, with data filled in from the given database row.
presenting them properly to the user as errors is done by the caller return true use this to change the list i e etc $rev
Represents a title within MediaWiki.
setOutputSink(&$sink)
Set the DumpOutput or DumpFilter object which will receive various row objects and XML output for fil...
closeAndRename( $newname, $open=false)
writeCloseStream( $string)
closeAndRename( $newname, $open=false)
Close the old file, and move it to a specified name.
Stream outputter to send data to a file via some filter program.
logsByRange( $start, $end)
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 isCapitalized( $index)
Is the namespace first-letter capitalized?
__construct(&$sink, $param)
closeAndRename( $newname, $open=false)
write( $string)
Override to write to a different stream type.
Sends dump output via the gzip compressor.
writeCloseStream( $string)
closeRenameAndReopen( $newnames)
Sends dump output via the bgzip2 compressor.
schemaVersion()
Returns the export schema version.
outputPageStream( $resultset)
Runs through a query result set dumping page and revision records.
writeCloseStream( $string)
Stream outputter to send data to a file.
wfLocalFile( $title)
Get an object referring to a locally registered file.
writeRevision( $rev, $string)
$dumper dumpUploadFileContents
writeLogItem( $rev, $string)
closePage()
Closes a "<page>" section on the output stream.
Sends dump output via the p7zip compressor.
writeUploads( $row, $dumpContents=false)
Warning! This data is potentially inconsistent.
do that in ParserLimitReportFormat instead use this to modify the parameters of the image and a DIV can begin in one section and end in another Make sure your code can handle that case gracefully See the EditSectionClearerLink extension for an example zero but section is usually empty its values are the globals values my talk page