MediaWiki  1.23.13
WikiRevision Class Reference
Collaboration diagram for WikiRevision:

Public Member Functions

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

Public Attributes

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

Private Attributes

 $mNoUpdates = false
 

Detailed Description

Todo:
document (e.g.

one-sentence class description).

Definition at line 1037 of file Import.php.

Member Function Documentation

◆ downloadSource()

WikiRevision::downloadSource ( )
Returns
bool|string

Definition at line 1566 of file Import.php.

References $f, Http\get(), getSrc(), global, wfDebug(), and wfTempDir().

Referenced by importUpload().

◆ getAction()

WikiRevision::getAction ( )
Returns
string

Definition at line 1367 of file Import.php.

References $action.

Referenced by importLogItem().

◆ getArchiveName()

WikiRevision::getArchiveName ( )
Returns
string

Definition at line 1346 of file Import.php.

References $archiveName.

Referenced by importUpload().

◆ getComment()

WikiRevision::getComment ( )
Returns
string

Definition at line 1294 of file Import.php.

References $comment.

Referenced by importLogItem(), importOldRevision(), and importUpload().

◆ getContent()

WikiRevision::getContent ( )
Returns
Content

Definition at line 1255 of file Import.php.

References $content, content, getFormat(), getModel(), getTitle(), ContentHandler\makeContent(), and text.

Referenced by importOldRevision().

◆ getFilename()

WikiRevision::getFilename ( )
Returns
mixed

Definition at line 1339 of file Import.php.

◆ getFileSrc()

WikiRevision::getFileSrc ( )
Returns
string

Definition at line 1325 of file Import.php.

References $fileSrc.

Referenced by importUpload().

◆ getFormat()

WikiRevision::getFormat ( )
Returns
String

Definition at line 1283 of file Import.php.

References $format, format, ContentHandler\getForTitle(), and getTitle().

Referenced by getContent(), and importOldRevision().

◆ getID()

WikiRevision::getID ( )
Returns
int

Definition at line 1223 of file Import.php.

References $id.

◆ getMinor()

WikiRevision::getMinor ( )
Returns
bool

Definition at line 1301 of file Import.php.

References $minor.

◆ getModel()

WikiRevision::getModel ( )
Returns
String

Definition at line 1272 of file Import.php.

References $model, and getTitle().

Referenced by getContent(), and importOldRevision().

◆ getParams()

WikiRevision::getParams ( )
Returns
string

Definition at line 1374 of file Import.php.

References $params.

◆ getSha1()

WikiRevision::getSha1 ( )
Returns
bool|String

Definition at line 1315 of file Import.php.

References wfBaseConvert().

Referenced by importUpload().

◆ getSize()

WikiRevision::getSize ( )
Returns
mixed

Definition at line 1353 of file Import.php.

References $size.

◆ getSrc()

WikiRevision::getSrc ( )
Returns
mixed

Definition at line 1308 of file Import.php.

Referenced by downloadSource().

◆ getText()

WikiRevision::getText ( )
Returns
string
Deprecated:
Since 1.21, use getContent() instead.

Definition at line 1246 of file Import.php.

References $text, and ContentHandler\deprecated().

◆ getTimestamp()

WikiRevision::getTimestamp ( )
Returns
string

Definition at line 1230 of file Import.php.

References $timestamp.

Referenced by importUpload().

◆ getTitle()

WikiRevision::getTitle ( )
Returns
Title

Definition at line 1216 of file Import.php.

References $title.

Referenced by getContent(), getFormat(), getModel(), importLogItem(), and importUpload().

◆ getType()

WikiRevision::getType ( )
Returns
string

Definition at line 1360 of file Import.php.

References $type.

Referenced by importLogItem().

◆ getUser()

WikiRevision::getUser ( )
Returns
string

Definition at line 1237 of file Import.php.

References $user_text.

Referenced by importOldRevision().

◆ importLogItem()

WikiRevision::importLogItem ( )
Returns
mixed

Definition at line 1454 of file Import.php.

References $params, action, array(), DB_MASTER, getAction(), getComment(), getTitle(), getType(), User\idFromName(), type, wfDebug(), and wfGetDB().

◆ importOldRevision()

WikiRevision::importOldRevision ( )

◆ importUpload()

◆ isTempSrc()

WikiRevision::isTempSrc ( )
Returns
bool

Definition at line 1332 of file Import.php.

References $isTemp.

Referenced by importUpload().

◆ setAction()

WikiRevision::setAction (   $action)
Parameters
$action

Definition at line 1195 of file Import.php.

References $action, and action.

◆ setArchiveName()

WikiRevision::setArchiveName (   $archiveName)
Parameters
$archiveName

Definition at line 1174 of file Import.php.

References $archiveName.

◆ setComment()

WikiRevision::setComment (   $text)
Parameters
$text

Definition at line 1130 of file Import.php.

References $text.

◆ setFilename()

WikiRevision::setFilename (   $filename)
Parameters
$filename

Definition at line 1167 of file Import.php.

◆ setFileSrc()

WikiRevision::setFileSrc (   $src,
  $isTemp 
)
Parameters
$src
$isTemp

Definition at line 1152 of file Import.php.

References $isTemp.

◆ setFormat()

WikiRevision::setFormat (   $format)
Parameters
$format

Definition at line 1116 of file Import.php.

References $format, and format.

◆ setID()

WikiRevision::setID (   $id)
Parameters
$id

Definition at line 1080 of file Import.php.

References $id.

Referenced by WikiImporter\processLogItem(), and WikiImporter\processRevision().

◆ setMinor()

WikiRevision::setMinor (   $minor)
Parameters
$minor

Definition at line 1137 of file Import.php.

References $minor.

◆ setModel()

WikiRevision::setModel (   $model)
Parameters
$model

Definition at line 1109 of file Import.php.

References $model.

◆ setNoUpdates()

WikiRevision::setNoUpdates (   $noupdates)
Parameters
$noupdates

Definition at line 1209 of file Import.php.

◆ setParams()

WikiRevision::setParams (   $params)
Parameters
$params

Definition at line 1202 of file Import.php.

References $params.

◆ setSha1Base36()

WikiRevision::setSha1Base36 (   $sha1base36)
Parameters
$sha1base36

Definition at line 1160 of file Import.php.

References $sha1base36.

◆ setSize()

WikiRevision::setSize (   $size)
Parameters
$size

Definition at line 1181 of file Import.php.

References $size.

◆ setSrc()

WikiRevision::setSrc (   $src)
Parameters
$src

Definition at line 1144 of file Import.php.

◆ setText()

WikiRevision::setText (   $text)
Parameters
$text

Definition at line 1123 of file Import.php.

References $text, and text.

Referenced by DumpIterator\execute().

◆ setTimestamp()

WikiRevision::setTimestamp (   $ts)
Parameters
$ts

Definition at line 1087 of file Import.php.

References TS_MW, and wfTimestamp().

◆ setTitle()

WikiRevision::setTitle (   $title)
Parameters
$title
Exceptions
MWException

Definition at line 1067 of file Import.php.

References $title, and title.

Referenced by WikiImporter\processUpload().

◆ setType()

WikiRevision::setType (   $type)
Parameters
$type

Definition at line 1188 of file Import.php.

References $type, and type.

◆ setUserIP()

WikiRevision::setUserIP (   $ip)
Parameters
$ip

Definition at line 1102 of file Import.php.

◆ setUsername()

WikiRevision::setUsername (   $user)
Parameters
$user

Definition at line 1095 of file Import.php.

References $user.

Member Data Documentation

◆ $action

WikiRevision::$action = ""

Definition at line 1054 of file Import.php.

Referenced by getAction(), and setAction().

◆ $archiveName

WikiRevision::$archiveName = ''

Definition at line 1059 of file Import.php.

Referenced by getArchiveName(), importUpload(), and setArchiveName().

◆ $comment

WikiRevision::$comment = ""

Definition at line 1051 of file Import.php.

Referenced by getComment().

◆ $content

WikiRevision::$content = null

Definition at line 1050 of file Import.php.

Referenced by getContent().

◆ $fileIsTemp

WikiRevision::$fileIsTemp

Definition at line 1060 of file Import.php.

◆ $fileSrc

WikiRevision::$fileSrc = ''

Definition at line 1056 of file Import.php.

Referenced by getFileSrc().

◆ $format

WikiRevision::$format = null

Definition at line 1048 of file Import.php.

Referenced by getFormat(), and setFormat().

◆ $id

WikiRevision::$id = 0

Definition at line 1043 of file Import.php.

Referenced by getID(), and setID().

◆ $importer

WikiRevision::$importer = null

Definition at line 1038 of file Import.php.

◆ $isTemp

WikiRevision::$isTemp = false

Definition at line 1058 of file Import.php.

Referenced by isTempSrc(), and setFileSrc().

◆ $minor

WikiRevision::$minor = false

Definition at line 1052 of file Import.php.

Referenced by getMinor(), and setMinor().

◆ $mNoUpdates

WikiRevision::$mNoUpdates = false
private

Definition at line 1061 of file Import.php.

◆ $model

WikiRevision::$model = null

Definition at line 1047 of file Import.php.

Referenced by getModel(), and setModel().

◆ $params

WikiRevision::$params = ""

Definition at line 1055 of file Import.php.

Referenced by getParams(), importLogItem(), and setParams().

◆ $sha1base36

WikiRevision::$sha1base36 = false

Definition at line 1057 of file Import.php.

Referenced by setSha1Base36().

◆ $text

WikiRevision::$text = ""

Definition at line 1049 of file Import.php.

Referenced by getText(), setComment(), and setText().

◆ $timestamp

WikiRevision::$timestamp = "20010115000000"

Definition at line 1044 of file Import.php.

Referenced by getTimestamp().

◆ $title

Title WikiRevision::$title = null

Definition at line 1042 of file Import.php.

Referenced by getTitle(), and setTitle().

◆ $type

WikiRevision::$type = ""

Definition at line 1053 of file Import.php.

Referenced by getType(), and setType().

◆ $user

WikiRevision::$user = 0

Definition at line 1045 of file Import.php.

Referenced by importOldRevision(), importUpload(), and setUsername().

◆ $user_text

WikiRevision::$user_text = ""

Definition at line 1046 of file Import.php.

Referenced by getUser().


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