|
| __construct (SemanticDataLookup $semanticDataLookup, Cache $cache=null) |
|
| lockCache () |
|
| unlockCache () |
|
| invalidateCache ( $id) |
|
| initLookupCache ( $id, DIWikiPage $subject) |
|
| setLookupCache ( $id, SemanticData $semanticData) |
|
| getSemanticDataById ( $id) |
|
| newRequestOptions (PropertyTableDefinition $propertyTableDef, DIProperty $property, RequestOptions $requestOptions=null) |
|
| prefetchDataFromTable (array $subjects, DataItem $dataItem=null, PropertyTableDefinition $propertyTableDef, RequestOptions $requestOptions=null) |
|
| fetchSemanticDataFromTable ( $id, DataItem $dataItem=null, PropertyTableDefinition $propertyTableDef, RequestOptions $requestOptions=null) |
|
| getSemanticData ( $id, DataItem $dataItem=null, PropertyTableDefinition $propertyTableDef, RequestOptions $requestOptions=null) |
|
| newStubSemanticData (DIWikiPage $subject) |
|
GNU GPL v2+
- Since
- 3.0
- Author
- mwjames
◆ __construct()
SMW\SQLStore\EntityStore\CachingSemanticDataLookup::__construct |
( |
SemanticDataLookup |
$semanticDataLookup, |
|
|
Cache |
$cache = null |
|
) |
| |
◆ clear()
static SMW\SQLStore\EntityStore\CachingSemanticDataLookup::clear |
( |
| ) |
|
|
static |
◆ fetchSemanticDataFromTable()
SMW\SQLStore\EntityStore\CachingSemanticDataLookup::fetchSemanticDataFromTable |
( |
|
$id, |
|
|
DataItem |
$dataItem = null , |
|
|
PropertyTableDefinition |
$propertyTableDef, |
|
|
RequestOptions |
$requestOptions = null |
|
) |
| |
- Since
- 3.0
- Parameters
-
- Returns
- RequestOptions|null
◆ getSemanticData()
Fetch and cache the data about one subject for one particular table
- Parameters
-
- Returns
- SemanticData
◆ getSemanticDataById()
SMW\SQLStore\EntityStore\CachingSemanticDataLookup::getSemanticDataById |
( |
|
$id | ) |
|
Helper method to make sure there is a cache entry for the data about the given subject with the given ID.
- Since
- 3.0
- Parameters
-
◆ initLookupCache()
SMW\SQLStore\EntityStore\CachingSemanticDataLookup::initLookupCache |
( |
|
$id, |
|
|
DIWikiPage |
$subject |
|
) |
| |
Helper method to make sure there is a cache entry for the data about the given subject with the given ID.
- Todo:
- The management of this cache should be revisited.
- Since
- 3.0
- Parameters
-
◆ invalidateCache()
SMW\SQLStore\EntityStore\CachingSemanticDataLookup::invalidateCache |
( |
|
$id | ) |
|
◆ lockCache()
SMW\SQLStore\EntityStore\CachingSemanticDataLookup::lockCache |
( |
| ) |
|
◆ newRequestOptions()
- Since
- 3.0
- Parameters
-
- Returns
- RequestOptions|null
◆ newStubSemanticData()
SMW\SQLStore\EntityStore\CachingSemanticDataLookup::newStubSemanticData |
( |
DIWikiPage |
$subject | ) |
|
◆ prefetchDataFromTable()
SMW\SQLStore\EntityStore\CachingSemanticDataLookup::prefetchDataFromTable |
( |
array |
$subjects, |
|
|
DataItem |
$dataItem = null , |
|
|
PropertyTableDefinition |
$propertyTableDef, |
|
|
RequestOptions |
$requestOptions = null |
|
) |
| |
- Since
- 3.1
- Parameters
-
- Returns
- []
◆ setLookupCache()
SMW\SQLStore\EntityStore\CachingSemanticDataLookup::setLookupCache |
( |
|
$id, |
|
|
SemanticData |
$semanticData |
|
) |
| |
Set the semantic data lookup cache to hold exactly the given value for the given ID.
- Since
- 3.0
- Parameters
-
◆ unlockCache()
SMW\SQLStore\EntityStore\CachingSemanticDataLookup::unlockCache |
( |
| ) |
|
The documentation for this class was generated from the following file:
- CachingSemanticDataLookup.php