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. More... | |
execute () | |
Do the actual work. More... | |
finalSetup () | |
Protected Member Functions | |
getDumpType () | |
Used in description of script at command-line. More... | |
createDumper ( $output) | |
Create concrete dumper instance. More... | |
getRedirectMode () | |
Returns EntityIdPager::NO_REDIRECTS. More... | |
getEntityRevisionLookupCacheMode () | |
Cache flag for use in Store::getEntityRevisionLookup. More... | |
Private Member Functions | |
openLogFile ( $file) | |
Opens the given file for use by logMessage(). More... | |
closeLogFile () | |
Closes any currently open file opened with openLogFile(). More... | |
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\DumpRdf, and Wikibase\Repo\Maintenance\DumpJson.
|
private |
Closes any currently open file opened with openLogFile().
|
abstractprotected |
Create concrete dumper instance.
resource | $output |
Reimplemented in Wikibase\Repo\Maintenance\DumpRdf, and Wikibase\Repo\Maintenance\DumpJson.
Wikibase\Repo\Maintenance\DumpEntities::execute | ( | ) |
Do the actual work.
All child classes will need to implement this
Reimplemented in Wikibase\Repo\Maintenance\DumpRdf, and Wikibase\Repo\Maintenance\DumpJson.
Wikibase\Repo\Maintenance\DumpEntities::finalSetup | ( | ) |
|
abstractprotected |
Used in description of script at command-line.
Reimplemented in Wikibase\Repo\Maintenance\DumpRdf, and Wikibase\Repo\Maintenance\DumpJson.
|
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 |
MWException |
|
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" |
MWException |
Wikibase\Repo\Maintenance\DumpEntities::setDumpEntitiesServices | ( | SqlEntityIdPagerFactory | $sqlEntityIdPagerFactory, |
array | $existingEntityTypes, | ||
array | $entityTypesToExcludeFromOutput | ||
) |
|
private |
|
private |
|
private |
|
private |