JsonDumpGenerator generates an JSON dump of a given set of entities, excluding redirects.
More...
JsonDumpGenerator generates an JSON dump of a given set of entities, excluding redirects.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
Wikibase\Repo\Dumpers\JsonDumpGenerator::__construct |
( |
|
$out, |
|
|
EntityRevisionLookup |
$lookup, |
|
|
Serializer |
$entitySerializer, |
|
|
EntityPrefetcher |
$entityPrefetcher, |
|
|
PropertyDataTypeLookup |
$dataTypeLookup |
|
) |
| |
- Parameters
-
resource | $out | |
EntityRevisionLookup | $lookup | |
Serializer | $entitySerializer | |
EntityPrefetcher | $entityPrefetcher | |
PropertyDataTypeLookup | $dataTypeLookup | |
- Exceptions
-
◆ encode()
Wikibase\Repo\Dumpers\JsonDumpGenerator::encode |
( |
|
$data | ) |
|
Encodes the given data as JSON.
- Parameters
-
- Returns
- string
- Exceptions
-
◆ generateDumpForEntityId()
Wikibase\Repo\Dumpers\JsonDumpGenerator::generateDumpForEntityId |
( |
EntityId |
$entityId | ) |
|
|
protected |
◆ getJsonFlags()
Wikibase\Repo\Dumpers\JsonDumpGenerator::getJsonFlags |
( |
| ) |
|
◆ postDump()
Wikibase\Repo\Dumpers\JsonDumpGenerator::postDump |
( |
| ) |
|
|
protected |
◆ preDump()
Wikibase\Repo\Dumpers\JsonDumpGenerator::preDump |
( |
| ) |
|
|
protected |
◆ preEntityDump()
Wikibase\Repo\Dumpers\JsonDumpGenerator::preEntityDump |
( |
|
$dumpCount | ) |
|
|
protected |
◆ setJsonFlags()
Wikibase\Repo\Dumpers\JsonDumpGenerator::setJsonFlags |
( |
|
$jsonFlags | ) |
|
Flags to use with json_encode as a bit field, see PHP's JSON_XXX constants.
- Parameters
-
◆ setUseSnippets()
Wikibase\Repo\Dumpers\JsonDumpGenerator::setUseSnippets |
( |
|
$useSnippets | ) |
|
- Parameters
-
bool | $useSnippets | Whether to output valid json (false) or only comma separated entities |
◆ $dataTypeInjector
Wikibase\Repo\Dumpers\JsonDumpGenerator::$dataTypeInjector |
|
private |
◆ $entityLookup
Wikibase\Repo\Dumpers\JsonDumpGenerator::$entityLookup |
|
private |
◆ $entitySerializer
Wikibase\Repo\Dumpers\JsonDumpGenerator::$entitySerializer |
|
private |
◆ $jsonFlags
Wikibase\Repo\Dumpers\JsonDumpGenerator::$jsonFlags = 0 |
|
private |
◆ $useSnippets
Wikibase\Repo\Dumpers\JsonDumpGenerator::$useSnippets = false |
|
private |
The documentation for this class was generated from the following file: