BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
WikiRevision Class Reference
Inheritance diagram for WikiRevision:
Collaboration diagram for WikiRevision:

Public Member Functions

 __construct (Config $config)
 
 setTitle ($title)
 
 setID ($id)
 
 setTimestamp ($ts)
 
 setUsername ($user)
 
 setUserObj ($user)
 
 setUserIP ($ip)
 
 setModel ($model)
 
 setFormat ($format)
 
 setText ($text)
 
 setComment ($text)
 
 setMinor ($minor)
 
 setSrc ($src)
 
 setFileSrc ($src, $isTemp)
 
 setSha1Base36 ($sha1base36)
 
 setFilename ($filename)
 
 setArchiveName ($archiveName)
 
 setSize ($size)
 
 setType ($type)
 
 setAction ($action)
 
 setParams ($params)
 
 setNoUpdates ($noupdates)
 
 getTitle ()
 
 getID ()
 
 getTimestamp ()
 
 getUser ()
 
 getUserObj ()
 
 getText ()
 
 getContentHandler ()
 
 getContent ()
 
 getModel ()
 
 getFormat ()
 
 getComment ()
 
 getMinor ()
 
 getSrc ()
 
 getSha1 ()
 
 getSha1Base36 ()
 
 getFileSrc ()
 
 isTempSrc ()
 
 getFilename ()
 
 getArchiveName ()
 
 getSize ()
 
 getType ()
 
 getAction ()
 
 getParams ()
 
 importOldRevision ()
 
 importLogItem ()
 
 importUpload ()
 
 downloadSource ()
 

Public Attributes

 $importer = null
 
 $title = null
 
 $id = 0
 
 $timestamp = "20010115000000"
 
 $user = 0
 
 $user_text = ""
 
 $userObj = null
 
 $model = null
 
 $format = null
 
 $text = ""
 
 $content = null
 
 $comment = ""
 
 $minor = false
 
 $type = ""
 
 $action = ""
 
 $params = ""
 
 $fileSrc = ''
 
 $sha1base36 = false
 
 $archiveName = ''
 
 $isTemp = false
 
 $fileIsTemp
 

Protected Attributes

 $size
 
 $contentHandler = null
 
 $filename
 
 $src = null
 

Detailed Description

Represents a revision, log entry or upload during the import process. This class sticks closely to the structure of the XML dump.

Since
1.2

Member Function Documentation

WikiRevision::downloadSource ( )
Since
1.12.2
Deprecated:
in 1.31. Use UploadImporter::downloadSource
Returns
bool|string
WikiRevision::getAction ( )
Since
1.12.2
Returns
string
WikiRevision::getArchiveName ( )
Since
1.17
Returns
string

Implements ImportableUploadRevision.

WikiRevision::getComment ( )
Since
1.2.6
Returns
string

Implements ImportableOldRevision.

WikiRevision::getContent ( )
Since
1.21
Returns
Content

Implements ImportableOldRevision.

WikiRevision::getContentHandler ( )
Since
1.24
Returns
ContentHandler
WikiRevision::getFilename ( )
Since
1.12.2
Returns
mixed
WikiRevision::getFileSrc ( )
Since
1.17
Returns
string

Implements ImportableUploadRevision.

WikiRevision::getFormat ( )
Since
1.21
Returns
string

Implements ImportableOldRevision.

WikiRevision::getID ( )
Since
1.6.4
Returns
int
WikiRevision::getMinor ( )
Since
1.5.7
Returns
bool

Implements ImportableOldRevision.

WikiRevision::getModel ( )
Since
1.21
Returns
string

Implements ImportableOldRevision.

WikiRevision::getParams ( )
Since
1.12.2
Returns
string
WikiRevision::getSha1 ( )
Since
1.17
Returns
bool|string

Implements ImportableUploadRevision.

WikiRevision::getSha1Base36 ( )
Since
1.31
Returns
bool|string

Implements ImportableOldRevision.

WikiRevision::getSize ( )
Since
1.12.2
Returns
mixed
WikiRevision::getSrc ( )
Since
1.12.2
Returns
string|null

Implements ImportableUploadRevision.

WikiRevision::getText ( )
Since
1.2
Returns
string
WikiRevision::getTimestamp ( )
Since
1.2
Returns
string

Implements ImportableOldRevision.

WikiRevision::getTitle ( )
Since
1.2
Returns
Title

Implements ImportableOldRevision.

WikiRevision::getType ( )
Since
1.12.2
Returns
string
WikiRevision::getUser ( )
Since
1.2
Returns
string

Implements ImportableOldRevision.

WikiRevision::getUserObj ( )
Since
1.27
Returns
User

Implements ImportableOldRevision.

WikiRevision::importLogItem ( )
Since
1.12.2
Returns
bool
WikiRevision::importOldRevision ( )
Since
1.4.1
Deprecated:
in 1.31. Use OldRevisionImporter::import
Returns
bool
WikiRevision::importUpload ( )
Since
1.12.2
Deprecated:
in 1.31. Use UploadImporter::import
Returns
bool
WikiRevision::isTempSrc ( )
Since
1.17
Returns
bool

Implements ImportableUploadRevision.

WikiRevision::setAction (   $action)
Since
1.12.2
Parameters
string$action
WikiRevision::setArchiveName (   $archiveName)
Since
1.17
Parameters
string$archiveName
WikiRevision::setComment (   $text)
Since
1.2.6
Parameters
string$text
WikiRevision::setFilename (   $filename)
Since
1.12.2
Parameters
string$filename
WikiRevision::setFileSrc (   $src,
  $isTemp 
)
Since
1.17
Parameters
string$src
bool$isTemp
WikiRevision::setFormat (   $format)
Since
1.21
Parameters
string$format
WikiRevision::setID (   $id)
Since
1.6.4
Parameters
int$id
WikiRevision::setMinor (   $minor)
Since
1.5.7
Parameters
bool$minor
WikiRevision::setModel (   $model)
Since
1.21
Parameters
string$model
WikiRevision::setNoUpdates (   $noupdates)
Since
1.18
Parameters
bool$noupdates
WikiRevision::setParams (   $params)
Since
1.12.2
Parameters
array$params
WikiRevision::setSha1Base36 (   $sha1base36)
Since
1.17
Parameters
string$sha1base36
WikiRevision::setSize (   $size)
Since
1.12.2
Parameters
int$size
WikiRevision::setSrc (   $src)
Since
1.12.2
Parameters
string | null$src
WikiRevision::setText (   $text)
Since
1.2
Parameters
string$text
WikiRevision::setTimestamp (   $ts)
Since
1.2
Parameters
string$ts
WikiRevision::setTitle (   $title)
Since
1.7 taking a Title object (string before)
Parameters
Title$title
Exceptions
MWException
WikiRevision::setType (   $type)
Since
1.12.2
Parameters
string$type
WikiRevision::setUserIP (   $ip)
Since
1.2
Parameters
string$ip
WikiRevision::setUsername (   $user)
Since
1.2
Parameters
string$user
WikiRevision::setUserObj (   $user)
Since
1.27
Parameters
User$user

Member Data Documentation

WikiRevision::$fileIsTemp
Since
1.18
Deprecated:
1.29 use Wikirevision::isTempSrc() First written to in 43d5d3b682cc1733ad01a837d11af4a402d57e6a Actually introduced in 52cd34acf590e5be946b7885ffdc13a157c1c6cf
WikiRevision::$filename
protected
Since
1.12.2
WikiRevision::$importer = null
Since
1.17
Deprecated:
in 1.29. Unused.
Note
Introduced in 9b3128eb2b654761f21fd4ca1d5a1a4b796dc912, unused there, unused now.

The documentation for this class was generated from the following file: