MediaWiki master
ImportableUploadRevisionImporter Class Reference

Inherits UploadRevisionImporter.

Collaboration diagram for ImportableUploadRevisionImporter:

Public Member Functions

 __construct ( $enableUploads, LoggerInterface $logger)
 
 downloadSource (ImportableUploadRevision $wikiRevision)
 
 import (ImportableUploadRevision $importableRevision)
 
Since
1.31
Parameters
ImportableUploadRevision$importableUploadRevision
Returns
StatusValue On success, the value member contains the archive name, or an empty string if it was a new file.

 
 setNullRevisionCreation ( $shouldCreateNullRevision)
 Setting this to false will deactivate the creation of a null revision as part of the upload process logging in LocalFile::recordUpload3, see T193621.
 

Detailed Description

Since
1.31

Definition at line 10 of file ImportableUploadRevisionImporter.php.

Constructor & Destructor Documentation

◆ __construct()

ImportableUploadRevisionImporter::__construct ( $enableUploads,
LoggerInterface $logger )

Definition at line 17 of file ImportableUploadRevisionImporter.php.

Member Function Documentation

◆ downloadSource()

ImportableUploadRevisionImporter::downloadSource ( ImportableUploadRevision $wikiRevision)
Deprecated
DO NOT CALL ME. This method was introduced when factoring (Importable)UploadRevisionImporter out of WikiRevision. It only has 1 use by the deprecated downloadSource method in WikiRevision. Do not use this in new code, it will be made private soon.
Parameters
ImportableUploadRevision$wikiRevision
Returns
string|false

Definition at line 138 of file ImportableUploadRevisionImporter.php.

References ImportableUploadRevision\getSrc(), and wfTempDir().

Referenced by import().

◆ import()

ImportableUploadRevisionImporter::import ( ImportableUploadRevision $importableRevision)

Since
1.31
Parameters
ImportableUploadRevision$importableUploadRevision
Returns
StatusValue On success, the value member contains the archive name, or an empty string if it was a new file.

Implements UploadRevisionImporter.

Definition at line 45 of file ImportableUploadRevisionImporter.php.

References $source, and downloadSource().

◆ setNullRevisionCreation()

ImportableUploadRevisionImporter::setNullRevisionCreation ( $shouldCreateNullRevision)

Setting this to false will deactivate the creation of a null revision as part of the upload process logging in LocalFile::recordUpload3, see T193621.

Parameters
bool$shouldCreateNullRevision

Definition at line 31 of file ImportableUploadRevisionImporter.php.


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