Class PropertyInfoTable implements PropertyInfoStore on top of an SQL table.
More...
◆ __construct()
Wikibase\Lib\Store\Sql\PropertyInfoTable::__construct |
( |
EntityIdComposer |
$entityIdComposer, |
|
|
|
$databaseName, |
|
|
bool |
$allowWrites |
|
) |
| |
- Parameters
-
EntityIdComposer | $entityIdComposer | |
string | bool | $databaseName | For the property source |
bool | $allowWrites | Should writes be allowed to the table? false in cases that a remote property source is being used. |
TODO split this more cleanly into a lookup and a writer, and then $allowWrites would not be needed?
◆ assertCanWritePropertyInfo()
Wikibase\Lib\Store\Sql\PropertyInfoTable::assertCanWritePropertyInfo |
( |
| ) |
|
|
private |
◆ decodeBlob()
Wikibase\Lib\Store\Sql\PropertyInfoTable::decodeBlob |
( |
|
$blob | ) |
|
|
private |
Decodes an info blob.
- Parameters
-
string | null | bool | $blob | |
- Returns
- array|null The decoded blob as an associative array, or null if the blob could not be decoded.
◆ decodeResult()
Wikibase\Lib\Store\Sql\PropertyInfoTable::decodeResult |
( |
IResultWrapper |
$res | ) |
|
|
private |
Decodes a result with info blobs.
- Parameters
-
- Returns
- array[] The array of decoded blobs
◆ getAllPropertyInfo()
Wikibase\Lib\Store\Sql\PropertyInfoTable::getAllPropertyInfo |
( |
| ) |
|
◆ getPropertyInfo()
Wikibase\Lib\Store\Sql\PropertyInfoTable::getPropertyInfo |
( |
PropertyId |
$propertyId | ) |
|
◆ getPropertyInfoForDataType()
Wikibase\Lib\Store\Sql\PropertyInfoTable::getPropertyInfoForDataType |
( |
|
$dataType | ) |
|
◆ getTableName()
Wikibase\Lib\Store\Sql\PropertyInfoTable::getTableName |
( |
| ) |
|
Returns the (logical) name of the database table that contains the property info.
This is for use for closely related classes that want to operate directly on the database table.
- Returns
- string
◆ getWriteConnection()
Wikibase\Lib\Store\Sql\PropertyInfoTable::getWriteConnection |
( |
| ) |
|
Returns a database connection suitable for writing to the database that contains the property info table.
This is for use for closely related classes that want to operate directly on the database table.
◆ removePropertyInfo()
Wikibase\Lib\Store\Sql\PropertyInfoTable::removePropertyInfo |
( |
PropertyId |
$propertyId | ) |
|
◆ setPropertyInfo()
Wikibase\Lib\Store\Sql\PropertyInfoTable::setPropertyInfo |
( |
PropertyId |
$propertyId, |
|
|
array |
$info |
|
) |
| |
◆ $allowWrites
Wikibase\Lib\Store\Sql\PropertyInfoTable::$allowWrites |
|
private |
◆ $entityIdComposer
Wikibase\Lib\Store\Sql\PropertyInfoTable::$entityIdComposer |
|
private |
◆ $tableName
Wikibase\Lib\Store\Sql\PropertyInfoTable::$tableName |
|
private |
The documentation for this class was generated from the following file: