Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\SQLStore\QueryDependency\QueryResultDependencyListResolver Class Reference

Public Member Functions

 __construct (PropertyHierarchyLookup $propertyHierarchyLookup)
 
 setPropertyDependencyExemptionlist (array $propertyDependencyExemptionlist)
 
 getDependencyListByLateRetrievalFrom ($queryResult)
 
 getDependencyListFrom ($queryResult)
 

Detailed Description

GNU GPL v2+

Since
2.3
Author
mwjames

Constructor & Destructor Documentation

SMW\SQLStore\QueryDependency\QueryResultDependencyListResolver::__construct ( PropertyHierarchyLookup  $propertyHierarchyLookup)
Since
2.3
Parameters
$queryResultCan be a string for when format=Debug
PropertyHierarchyLookup$propertyHierarchyLookup

Member Function Documentation

SMW\SQLStore\QueryDependency\QueryResultDependencyListResolver::getDependencyListByLateRetrievalFrom (   $queryResult)

At the point where the QueryResult instantiates results by means of the ResultArray, record the objects with the help of the EntityListAccumulator. Processing is depending and various factors which could be to early with the row instance is not yet being resolved.

QueryDependencyLinksStore::updateDependencyList is executed in deferred mode therefore allows a "late" access to track dependencies of column/row entities without having to resolve the QueryResult object on its own, see ResultArray::getNextDataValue/ResultArray::getNextDataItem.

Since
2.4
Parameters
QueryResult | string$queryResult
Returns
DIWikiPage[]|[]
SMW\SQLStore\QueryDependency\QueryResultDependencyListResolver::getDependencyListFrom (   $queryResult)
Since
2.3
Parameters
QueryResult | string$queryResult
Returns
DIWikiPage[]|[]
SMW\SQLStore\QueryDependency\QueryResultDependencyListResolver::setPropertyDependencyExemptionlist ( array  $propertyDependencyExemptionlist)
Since
2.3
Parameters
array$propertyDependencyExemptionlist

The documentation for this class was generated from the following file: