An EntitySource includes information needed to interact with one or more entity types at a given source.
More...
An EntitySource includes information needed to interact with one or more entity types at a given source.
EntitySource can only currently be used via direct database access.
- See also
- EntitySourceDefinitions for defining multiple EntitySources within a single site.
- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\DataAccess\EntitySource::__construct |
( |
|
$name, |
|
|
|
$databaseName, |
|
|
array |
$entityNamespaceIdsAndSlots, |
|
|
|
$conceptBaseUri, |
|
|
|
$rdfNodeNamespacePrefix, |
|
|
|
$rdfPredicateNamespacePrefix, |
|
|
|
$interwikiPrefix, |
|
|
string |
$type = self::TYPE_DB |
|
) |
| |
- Parameters
-
string | $name | Unique name for the source for a given configuration / site, used for indexing the sources internally. This does not have to be a wikiname, sitename or dbname, it can for example just be 'properties'. |
string | false | $databaseName | The name of the database to use (use false for the local db) |
array | $entityNamespaceIdsAndSlots | Associative array indexed by entity type (string), values are array of form [ 'namespaceId' => int, 'slot' => string ] |
string | $conceptBaseUri | |
string | $rdfNodeNamespacePrefix | |
string | $rdfPredicateNamespacePrefix | |
string | $interwikiPrefix | |
string | $type | |
◆ assertEntityNamespaceIdsAndSlots()
Wikibase\DataAccess\EntitySource::assertEntityNamespaceIdsAndSlots |
( |
array |
$entityNamespaceIdsAndSlots | ) |
|
|
private |
◆ getConceptBaseUri()
Wikibase\DataAccess\EntitySource::getConceptBaseUri |
( |
| ) |
|
◆ getDatabaseName()
Wikibase\DataAccess\EntitySource::getDatabaseName |
( |
| ) |
|
- Returns
- string|false The name of the database to use (use false for the local db)
◆ getEntityNamespaceIds()
Wikibase\DataAccess\EntitySource::getEntityNamespaceIds |
( |
| ) |
|
◆ getEntitySlotNames()
Wikibase\DataAccess\EntitySource::getEntitySlotNames |
( |
| ) |
|
◆ getEntityTypes()
Wikibase\DataAccess\EntitySource::getEntityTypes |
( |
| ) |
|
◆ getInterwikiPrefix()
Wikibase\DataAccess\EntitySource::getInterwikiPrefix |
( |
| ) |
|
◆ getRdfNodeNamespacePrefix()
Wikibase\DataAccess\EntitySource::getRdfNodeNamespacePrefix |
( |
| ) |
|
◆ getRdfPredicateNamespacePrefix()
Wikibase\DataAccess\EntitySource::getRdfPredicateNamespacePrefix |
( |
| ) |
|
◆ getSourceName()
Wikibase\DataAccess\EntitySource::getSourceName |
( |
| ) |
|
◆ getType()
Wikibase\DataAccess\EntitySource::getType |
( |
| ) |
|
◆ setEntityTypeData()
Wikibase\DataAccess\EntitySource::setEntityTypeData |
( |
array |
$entityNamespaceIdsAndSlots | ) |
|
|
private |
◆ $conceptBaseUri
Wikibase\DataAccess\EntitySource::$conceptBaseUri |
|
private |
◆ $databaseName
Wikibase\DataAccess\EntitySource::$databaseName |
|
private |
◆ $entityNamespaceIds
Wikibase\DataAccess\EntitySource::$entityNamespaceIds |
|
private |
◆ $entitySlots
Wikibase\DataAccess\EntitySource::$entitySlots |
|
private |
◆ $entityTypes
Wikibase\DataAccess\EntitySource::$entityTypes |
|
private |
◆ $interwikiPrefix
Wikibase\DataAccess\EntitySource::$interwikiPrefix |
|
private |
◆ $rdfNodeNamespacePrefix
Wikibase\DataAccess\EntitySource::$rdfNodeNamespacePrefix |
|
private |
◆ $rdfPredicateNamespacePrefix
Wikibase\DataAccess\EntitySource::$rdfPredicateNamespacePrefix |
|
private |
◆ $sourceName
Wikibase\DataAccess\EntitySource::$sourceName |
|
private |
◆ $type
Wikibase\DataAccess\EntitySource::$type |
|
private |
◆ TYPE_API
const Wikibase\DataAccess\EntitySource::TYPE_API = 'api' |
◆ TYPE_DB
const Wikibase\DataAccess\EntitySource::TYPE_DB = 'db' |
The documentation for this class was generated from the following file: