maintenance/importUseModWiki.php File Reference

Import data from a UseModWiki into a MediaWiki wiki 2003-02-09 Brion VIBBER <brion@pobox.com> Based loosely on Magnus's code from 2001-2002. More...

Go to the source code of this file.

Functions

 importPages ()
 importPageDirectory ($dir, $prefix="")
 useModFilename ($title)
 fetchPage ($title)
 fetchKeptPages ($title)
 splitHash ($sep, $str)
 checkUserCache ($name, $host)
 importPage ($title)
 recodeText ($string)
 wfUtf8Sequence ($codepoint)
 wfMungeToUtf8 ($string)
 timestamp2ISO8601 ($ts)
 xmlsafe ($string)
 xmlCommentSafe ($text)
 array2object ($arr)
 mungeFormat ($text)
 Make CamelCase and /Talk links work.
 placeholder ($x=null)
 nowikiPlaceholder ($matches)

Variables

if(php_sapi_name()!= 'cli') $wgImportEncoding = "CP1252"
 Set these correctly!
 $wgRootDirectory = "/kalman/Projects/wiki2002/wiki/lib-http/db/wiki"
 $wgFieldSeparator = "\xb3"
 $FS = $wgFieldSeparator
 $FS1 = $FS."1"
 $FS2 = $FS."2"
 $FS3 = $FS."3"
 $usercache = array()


Detailed Description

Import data from a UseModWiki into a MediaWiki wiki 2003-02-09 Brion VIBBER <brion@pobox.com> Based loosely on Magnus's code from 2001-2002.

Updated limited version to get something working temporarily 2003-10-09 Be sure to run the link & index rebuilding scripts!

Some more munging for charsets etc 2003-11-28

Partial fix for pages starting with lowercase letters (??) and CamelCase and /Subpage link conversion 2004-11-17

Rewrite output to create Special:Export format for import instead of raw SQL. Should be 'future-proof' against future schema changes. 2005-03-14

Todo:
document

Definition in file importUseModWiki.php.


Function Documentation

array2object ( arr  ) 

Definition at line 319 of file importUseModWiki.php.

Referenced by fetchKeptPages(), fetchPage(), and importPage().

checkUserCache ( name,
host 
)

Definition at line 181 of file importUseModWiki.php.

References $name, $usercache, and $username.

Referenced by importPage().

fetchKeptPages ( title  ) 

fetchPage ( title  ) 

importPage ( title  ) 

importPageDirectory ( dir,
prefix = "" 
)

Definition at line 88 of file importUseModWiki.php.

References $prefix, importPage(), and xmlCommentSafe().

Referenced by importPages().

importPages (  ) 

Definition at line 57 of file importUseModWiki.php.

References $wgRootDirectory, END, importPageDirectory(), and xml.

mungeFormat ( text  ) 

Make CamelCase and /Talk links work.

Definition at line 331 of file importUseModWiki.php.

References $text, and placeholder().

Referenced by importPage().

nowikiPlaceholder ( matches  ) 

Definition at line 360 of file importUseModWiki.php.

References placeholder().

placeholder ( x = null  ) 

Definition at line 356 of file importUseModWiki.php.

Referenced by mungeFormat(), and nowikiPlaceholder().

recodeText ( string  ) 

Definition at line 266 of file importUseModWiki.php.

References $wgImportEncoding, and wfMungeToUtf8().

Referenced by importPage(), and xmlCommentSafe().

splitHash ( sep,
str 
)

Definition at line 167 of file importUseModWiki.php.

References $i, and $sep.

Referenced by fetchKeptPages(), and fetchPage().

timestamp2ISO8601 ( ts  ) 

Definition at line 297 of file importUseModWiki.php.

References $ts.

Referenced by importPage().

useModFilename ( title  ) 

Definition at line 115 of file importUseModWiki.php.

References $title.

Referenced by fetchKeptPages(), and fetchPage().

wfMungeToUtf8 ( string  ) 

Definition at line 290 of file importUseModWiki.php.

Referenced by recodeText().

wfUtf8Sequence ( codepoint  ) 

Definition at line 275 of file importUseModWiki.php.

xmlCommentSafe ( text  ) 

Definition at line 314 of file importUseModWiki.php.

References $text, recodeText(), and xmlsafe().

Referenced by importPage(), and importPageDirectory().

xmlsafe ( string  ) 

Definition at line 302 of file importUseModWiki.php.

References UtfNormal::cleanUp().


Variable Documentation

$FS = $wgFieldSeparator

Definition at line 43 of file importUseModWiki.php.

$FS1 = $FS."1"

Definition at line 44 of file importUseModWiki.php.

Referenced by fetchKeptPages(), and fetchPage().

$FS2 = $FS."2"

Definition at line 45 of file importUseModWiki.php.

Referenced by fetchKeptPages(), and fetchPage().

$FS3 = $FS."3"

Definition at line 46 of file importUseModWiki.php.

Referenced by fetchKeptPages(), and fetchPage().

$usercache = array()

Definition at line 51 of file importUseModWiki.php.

Referenced by checkUserCache(), and importPage().

$wgFieldSeparator = "\xb3"

Definition at line 42 of file importUseModWiki.php.

if (php_sapi_name()!= 'cli') $wgImportEncoding = "CP1252"

Set these correctly!

Definition at line 35 of file importUseModWiki.php.

Referenced by recodeText().

$wgRootDirectory = "/kalman/Projects/wiki2002/wiki/lib-http/db/wiki"

Definition at line 36 of file importUseModWiki.php.

Referenced by fetchKeptPages(), fetchPage(), and importPages().


Generated on Sat Sep 5 02:08:27 2009 for MediaWiki by  doxygen 1.5.9