MediaWiki REL1_34
|
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::recordUpload2, see T193621. | |
Private Member Functions | |
newNotOkStatus () | |
Private Attributes | |
bool | $enableUploads |
LoggerInterface | $logger |
bool | $shouldCreateNullRevision = true |
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.
References $enableUploads, and $logger.
ImportableUploadRevisionImporter::downloadSource | ( | ImportableUploadRevision | $wikiRevision | ) |
ImportableUploadRevision | $wikiRevision |
Definition at line 150 of file ImportableUploadRevisionImporter.php.
References ImportableUploadRevision\getSrc(), and wfTempDir().
Referenced by import().
ImportableUploadRevisionImporter::import | ( | ImportableUploadRevision | $importableUploadRevision | ) |
ImportableUploadRevision | $importableUploadRevision |
Implements UploadRevisionImporter.
Definition at line 57 of file ImportableUploadRevisionImporter.php.
References $file, $source, downloadSource(), OldLocalFile\newFromArchiveName(), User\newFromName(), and newNotOkStatus().
|
private |
Definition at line 51 of file ImportableUploadRevisionImporter.php.
Referenced by import().
ImportableUploadRevisionImporter::setNullRevisionCreation | ( | $shouldCreateNullRevision | ) |
Setting this to false will deactivate the creation of a null revision as part of the upload process logging in LocalFile::recordUpload2, see T193621.
bool | $shouldCreateNullRevision |
Definition at line 44 of file ImportableUploadRevisionImporter.php.
References $shouldCreateNullRevision.
|
private |
Definition at line 19 of file ImportableUploadRevisionImporter.php.
Referenced by __construct().
|
private |
Definition at line 14 of file ImportableUploadRevisionImporter.php.
Referenced by __construct().
|
private |
Definition at line 24 of file ImportableUploadRevisionImporter.php.
Referenced by setNullRevisionCreation().