Wikibase
MediaWiki Wikibase extension
|
Functionality needed to expose Entities to Lua. More...
Public Member Functions | |
__construct (EntityIdParser $entityIdParser, EntityLookup $entityLookup, UsageAccumulator $usageAccumulator, Serializer $entitySerializer, Serializer $statementSerializer, PropertyDataTypeLookup $dataTypeLookup, TermLanguageFallbackChain $termFallbackChain, Language $language, ContentLanguages $termsLanguages, LoggerInterface $logger=null) | |
getEntity ( $prefixedEntityId) | |
Get entity from prefixed ID (e.g. More... | |
entityExists ( $prefixedEntityId) | |
Find out whether an entity exists. More... | |
getEntityStatements ( $prefixedEntityId, $propertyIdSerialization, $rank) | |
Get statement list from prefixed ID (e.g. More... | |
Private Member Functions | |
renumber (array &$entityArr) | |
Recursively renumber a serialized array in place, so it is indexed at 1, not 0. More... | |
newClientEntitySerializer () | |
newClientStatementListSerializer () | |
logPossibleDoubleRedirect ( $prefixedEntityId) | |
Private Attributes | |
$entityIdParser | |
$entityLookup | |
$usageAccumulator | |
$entitySerializer | |
$statementSerializer | |
$dataTypeLookup | |
$termFallbackChain | |
$language | |
$termsLanguages | |
$logger | |
Functionality needed to expose Entities to Lua.
Wikibase\Client\DataAccess\Scribunto\EntityAccessor::__construct | ( | EntityIdParser | $entityIdParser, |
EntityLookup | $entityLookup, | ||
UsageAccumulator | $usageAccumulator, | ||
Serializer | $entitySerializer, | ||
Serializer | $statementSerializer, | ||
PropertyDataTypeLookup | $dataTypeLookup, | ||
TermLanguageFallbackChain | $termFallbackChain, | ||
Language | $language, | ||
ContentLanguages | $termsLanguages, | ||
LoggerInterface | $logger = null |
||
) |
EntityIdParser | $entityIdParser | |
EntityLookup | $entityLookup | |
UsageAccumulator | $usageAccumulator | |
Serializer | $entitySerializer | |
Serializer | $statementSerializer | |
PropertyDataTypeLookup | $dataTypeLookup | |
TermLanguageFallbackChain | $termFallbackChain | |
Language | $language | |
ContentLanguages | $termsLanguages |
Wikibase\Client\DataAccess\Scribunto\EntityAccessor::entityExists | ( | $prefixedEntityId | ) |
Find out whether an entity exists.
string | $prefixedEntityId |
Wikibase\Client\DataAccess\Scribunto\EntityAccessor::getEntity | ( | $prefixedEntityId | ) |
Get entity from prefixed ID (e.g.
"Q23") and return it as serialized array.
string | $prefixedEntityId |
Wikibase\Client\DataAccess\Scribunto\EntityAccessor::getEntityStatements | ( | $prefixedEntityId, | |
$propertyIdSerialization, | |||
$rank | |||
) |
Get statement list from prefixed ID (e.g.
"Q23") and property (e.g "P123") and return it as serialized array.
string | $prefixedEntityId | |
string | $propertyIdSerialization | |
string | $rank | Which statements to include. Either "best" or "all". |
|
private |
$prefixedEntityId |
|
private |
|
private |
|
private |
Recursively renumber a serialized array in place, so it is indexed at 1, not 0.
Just like Lua wants it.
array | &$entityArr |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |