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

Public Member Functions

 __construct (Store $store)
 
 setCheckDependencies ( $checkDependencies)
 
 canCheckDependencies ()
 
 getCheckedDependencies ()
 
 hasArchaicDependencies (DIWikiPage $subject)
 

Detailed Description

GNU GPL v2+

Since
3.1
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\SQLStore\QueryDependency\DependencyLinksValidator::__construct ( Store  $store)
Since
3.1
Parameters
Store$store

Member Function Documentation

◆ canCheckDependencies()

SMW\SQLStore\QueryDependency\DependencyLinksValidator::canCheckDependencies ( )
Since
3.1
Returns
boolean

◆ getCheckedDependencies()

SMW\SQLStore\QueryDependency\DependencyLinksValidator::getCheckedDependencies ( )
Since
3.1
Returns
[]

◆ hasArchaicDependencies()

SMW\SQLStore\QueryDependency\DependencyLinksValidator::hasArchaicDependencies ( DIWikiPage  $subject)

The question to be answered by this method is whether any embedded query for subject X contains dependencies (those entities that are part of a query either as result subject, property, condition, or printrequest) that were updated recently or not . "Updated recently" refers to those entities that have a more recent smw_touched than the query that holds the reference.

Subject X -> contains Query Y (last touched 12:00) -> contains result subject Foo (last touched 12:05) -> since Foo is "younger" it could contain new/altered assignments (e.g. display title changed, sortkey altered, was deleted etc.) -> represents a likelihood of being outdated therefore it is categorized as a archaic dependency to X/Y

Since
3.1
Parameters
DIWikiPage$subject
Returns
boolean

◆ setCheckDependencies()

SMW\SQLStore\QueryDependency\DependencyLinksValidator::setCheckDependencies (   $checkDependencies)
Since
3.1
Parameters
boolean$checkDependencies

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

About | General disclaimer | Privacy policy