MediaWiki
1.32.5
|
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. More... | |
Private Member Functions | |
newNotOkStatus () | |
Private Attributes | |
bool | $enableUploads |
LoggerInterface | $logger |
bool | $shouldCreateNullRevision = true |
Definition at line 8 of file ImportableUploadRevisionImporter.php.
ImportableUploadRevisionImporter::__construct | ( | $enableUploads, | |
LoggerInterface | $logger | ||
) |
bool | $enableUploads | |
LoggerInterface | $logger |
Definition at line 29 of file ImportableUploadRevisionImporter.php.
References $enableUploads, and $logger.
ImportableUploadRevisionImporter::downloadSource | ( | ImportableUploadRevision | $wikiRevision | ) |
This method was introduced when factoring UploadImporter out of WikiRevision. It only has 1 use by the deprecated downloadSource method in WikiRevision. Do not use this in new code.
ImportableUploadRevision | $wikiRevision |
Definition at line 144 of file ImportableUploadRevisionImporter.php.
References Http\get(), ImportableUploadRevision\getSrc(), and wfTempDir().
Referenced by import().
ImportableUploadRevisionImporter::import | ( | ImportableUploadRevision | $importableUploadRevision | ) |
ImportableUploadRevision | $importableUploadRevision |
Implements UploadRevisionImporter.
Definition at line 56 of file ImportableUploadRevisionImporter.php.
References $shouldCreateNullRevision, $source, $user, downloadSource(), false, OldLocalFile\newFromArchiveName(), User\newFromName(), newNotOkStatus(), RepoGroup\singleton(), and wfLocalFile().
|
private |
Definition at line 50 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 43 of file ImportableUploadRevisionImporter.php.
References $shouldCreateNullRevision.
|
private |
Definition at line 18 of file ImportableUploadRevisionImporter.php.
Referenced by __construct().
|
private |
Definition at line 13 of file ImportableUploadRevisionImporter.php.
Referenced by __construct().
|
private |
Definition at line 23 of file ImportableUploadRevisionImporter.php.
Referenced by import(), and setNullRevisionCreation().