Wikibase
MediaWiki Wikibase extension
|
Maintenance script for generating a dump of entities in the repository. More...
Public Member Functions | |
__construct () | |
setDumpEntitiesServices (SqlEntityIdPagerFactory $sqlEntityIdPagerFactory, array $existingEntityTypes, array $entityTypesToExcludeFromOutput) | |
logMessage ( $message) | |
Outputs a message vis the output() method. | |
execute () | |
Do the actual work. | |
finalSetup (SettingsBuilder $settingsBuilder) | |
Protected Member Functions | |
getDumpType () | |
Used in description of script at command-line. | |
createDumper ( $output) | |
Create concrete dumper instance. | |
getRedirectMode () | |
Returns EntityIdPager::NO_REDIRECTS. | |
getEntityRevisionLookupCacheMode () | |
Cache flag for use in Store::getEntityRevisionLookup. | |
Private Member Functions | |
openLogFile ( $file) | |
Opens the given file for use by logMessage(). | |
closeLogFile () | |
Closes any currently open file opened with openLogFile(). | |
getEntityTypes () | |
makeIdStream (array $entityTypes, ExceptionHandler $exceptionReporter=null) | |
makeIdQueryStream (array $entityTypes) | |
makeIdFileStream ( $listFile, ExceptionHandler $exceptionReporter=null) | |
Private Attributes | |
$sqlEntityIdPagerFactory | |
$logFileHandle = false | |
$existingEntityTypes = [] | |
$entityTypesToExcludeFromOutput = [] | |
Maintenance script for generating a dump of entities in the repository.
Wikibase\Repo\Maintenance\DumpEntities::__construct | ( | ) |
Reimplemented in Wikibase\Repo\Maintenance\DumpJson, and Wikibase\Repo\Maintenance\DumpRdf.
|
private |
Closes any currently open file opened with openLogFile().
|
abstractprotected |
Create concrete dumper instance.
resource | $output |
Reimplemented in Wikibase\Repo\Maintenance\DumpJson, and Wikibase\Repo\Maintenance\DumpRdf.
Wikibase\Repo\Maintenance\DumpEntities::execute | ( | ) |
Do the actual work.
All child classes will need to implement this
Reimplemented in Wikibase\Repo\Maintenance\DumpJson, and Wikibase\Repo\Maintenance\DumpRdf.
Wikibase\Repo\Maintenance\DumpEntities::finalSetup | ( | SettingsBuilder | $settingsBuilder | ) |
|
abstractprotected |
Used in description of script at command-line.
Reimplemented in Wikibase\Repo\Maintenance\DumpJson, and Wikibase\Repo\Maintenance\DumpRdf.
|
protected |
Cache flag for use in Store::getEntityRevisionLookup.
|
private |
|
protected |
Returns EntityIdPager::NO_REDIRECTS.
Reimplemented in Wikibase\Repo\Maintenance\DumpRdf.
Wikibase\Repo\Maintenance\DumpEntities::logMessage | ( | $message | ) |
Outputs a message vis the output() method.
string | $message |
|
private |
string | $listFile | |
ExceptionHandler | null | $exceptionReporter |
|
private |
string[] | $entityTypes |
|
private |
string[] | $entityTypes | |
ExceptionHandler | null | $exceptionReporter |
|
private |
Opens the given file for use by logMessage().
string | $file | use "-" as a shortcut for "php://stdout" |
Wikibase\Repo\Maintenance\DumpEntities::setDumpEntitiesServices | ( | SqlEntityIdPagerFactory | $sqlEntityIdPagerFactory, |
array | $existingEntityTypes, | ||
array | $entityTypesToExcludeFromOutput ) |
|
private |
|
private |
|
private |
|
private |