Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct (Store $store, SemanticData $semanticData, ChangePropagationNotifier $changePropagationNotifier) | |
isCommandLineMode ( $isCommandLineMode) | |
isChangeProp ( $isChangeProp) | |
isDeferrableUpdate ( $isDeferrableUpdate) | |
setOrigin ( $origin) | |
getSubject () | |
canCreateUpdateJob ( $canCreateUpdateJob) | |
isSkippable (Title $title, ?int &$latestRevID=null) | |
doUpdate () | |
runUpdate () | |
This function takes care of storing the collected semantic data and clearing out any outdated entries for the processed page. It assumes that parsing has happened and that all relevant information are contained and provided for.
Optionally, this function also takes care of triggering indirect updates that might be needed for an overall database consistency. If the saved page describes a property or data type, the method checks whether the property type, the data type, the allowed values, or the conversion factors have changed.
GNU GPL v2+
SMW\DataUpdater::__construct | ( | Store | $store, |
SemanticData | $semanticData, | ||
ChangePropagationNotifier | $changePropagationNotifier | ||
) |
Store | $store | |
SemanticData | $semanticData | |
ChangePropagationNotifier | $changePropagationNotifier |
SMW\DataUpdater::canCreateUpdateJob | ( | $canCreateUpdateJob | ) |
boolean | $canCreateUpdateJob |
SMW\DataUpdater::doUpdate | ( | ) |
SMW\DataUpdater::getSubject | ( | ) |
SMW\DataUpdater::isChangeProp | ( | $isChangeProp | ) |
boolean | $isChangeProp |
SMW\DataUpdater::isCommandLineMode | ( | $isCommandLineMode | ) |
boolean | $isCommandLineMode |
SMW\DataUpdater::isDeferrableUpdate | ( | $isDeferrableUpdate | ) |
boolean | $isChangeProp |
SMW\DataUpdater::isSkippable | ( | Title | $title, |
?int & | $latestRevID = null |
||
) |
Is the update skippable given that a revision has already been stored in SMW?
MW 1.29 made the LinksUpdate a EnqueueableDataUpdate which creates updates as JobSpecification (refreshLinksPrioritized) and posses a possibility of running an update more than once for the same RevID.
Title | $title | |
int | null | &$latestRevID |
SMW\DataUpdater::runUpdate | ( | ) |
SMW\DataUpdater::setOrigin | ( | $origin | ) |
string | $origin |