GNU GPL v2+
- Since
- 2.3
- Author
- mwjames
◆ __construct()
◆ countDependencies()
SMW\SQLStore\QueryDependency\QueryDependencyLinksStore::countDependencies |
( |
|
$id | ) |
|
- Since
- 3.0
- Parameters
-
- Returns
- integer
◆ findDependencyTargetLinks()
SMW\SQLStore\QueryDependency\QueryDependencyLinksStore::findDependencyTargetLinks |
( |
array |
$idlist, |
|
|
RequestOptions |
$requestOptions |
|
) |
| |
Finds a partial list (given limit and offset) of registered subjects that that represent a dependency on something like a subject in a query list, a property, or a printrequest.
s_id
contains the subject id that links to the query that fulfills one of the conditions cited above.
Prefetched Ids are turned into a hash list that can later be split into chunks to work either in online or batch mode without creating a huge memory foothold.
- Note
- Select a list is crucial for performance as any selectRow would / single Id select would strain the system on large list connected to a query
- Since
- 2.3
- Parameters
-
- Returns
- array
◆ findDependencyTargetLinksForSubject()
SMW\SQLStore\QueryDependency\QueryDependencyLinksStore::findDependencyTargetLinksForSubject |
( |
DIWikiPage |
$subject, |
|
|
RequestOptions |
$requestOptions |
|
) |
| |
- Since
- 2.5
- Parameters
-
- Returns
- array
◆ findEmbeddedQueryIdListBySubject()
SMW\SQLStore\QueryDependency\QueryDependencyLinksStore::findEmbeddedQueryIdListBySubject |
( |
DIWikiPage |
$subject, |
|
|
RequestOptions |
$requestOptions = null |
|
) |
| |
- Since
- 2.5
- Parameters
-
- Returns
- array
◆ isCommandLineMode()
SMW\SQLStore\QueryDependency\QueryDependencyLinksStore::isCommandLineMode |
( |
|
$isCommandLineMode | ) |
|
◆ isEnabled()
SMW\SQLStore\QueryDependency\QueryDependencyLinksStore::isEnabled |
( |
| ) |
|
◆ pruneOutdatedTargetLinks()
SMW\SQLStore\QueryDependency\QueryDependencyLinksStore::pruneOutdatedTargetLinks |
( |
ChangeOp |
$changeOp | ) |
|
This method is called from the SMW::SQLStore::AfterDataUpdateComplete
hook and removes outdated query ID's from the table if the diff contains a delete
entry for the _ask table.
- Since
- 2.3
- Parameters
-
◆ setEnabled()
SMW\SQLStore\QueryDependency\QueryDependencyLinksStore::setEnabled |
( |
|
$isEnabled | ) |
|
◆ setStore()
SMW\SQLStore\QueryDependency\QueryDependencyLinksStore::setStore |
( |
Store |
$store | ) |
|
◆ updateDependencies()
SMW\SQLStore\QueryDependency\QueryDependencyLinksStore::updateDependencies |
( |
|
$queryResult | ) |
|
This method is called from the SMW::Store::AfterQueryResultLookupComplete
hook to resolve and update dependencies fetched from an embedded query and its QueryResult object.
- Since
- 2.3
- Parameters
-
QueryResult | string | $queryResult | |
The documentation for this class was generated from the following file:
- QueryDependencyLinksStore.php