MediaWiki REL1_39
|
Public Member Functions | ||||
__construct ( $enableUploads, LoggerInterface $logger) | ||||
downloadSource (ImportableUploadRevision $wikiRevision) | ||||
import (ImportableUploadRevision $importableRevision) | ||||
| ||||
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. | ||||
Definition at line 9 of file ImportableUploadRevisionImporter.php.
ImportableUploadRevisionImporter::__construct | ( | $enableUploads, | |
LoggerInterface | $logger ) |
bool | $enableUploads | |
LoggerInterface | $logger |
Definition at line 30 of file ImportableUploadRevisionImporter.php.
ImportableUploadRevisionImporter::downloadSource | ( | ImportableUploadRevision | $wikiRevision | ) |
ImportableUploadRevision | $wikiRevision |
Definition at line 151 of file ImportableUploadRevisionImporter.php.
References ImportableUploadRevision\getSrc(), and wfTempDir().
Referenced by import().
ImportableUploadRevisionImporter::import | ( | ImportableUploadRevision | $importableRevision | ) |
ImportableUploadRevision | $importableUploadRevision |
Implements UploadRevisionImporter.
Definition at line 58 of file ImportableUploadRevisionImporter.php.
References $file, $source, downloadSource(), and User\newFromName().
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.
bool | $shouldCreateNullRevision |
Definition at line 44 of file ImportableUploadRevisionImporter.php.