Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\Property\ChangePropagationNotifier Class Reference

Public Member Functions

 __construct (Store $store, SerializerFactory $serializerFactory)
 
 setPropertyList (array $propertyList)
 
 isCommandLineMode ( $isCommandLineMode)
 
 hasDiff ()
 
 notify (DIWikiPage $subject)
 
 inNamespace (DIWikiPage $subject)
 
 checkAndNotify (SemanticData &$semanticData)
 

Detailed Description

Before a new set of data (type, constraints etc.) is stored about a property the class tries to compare old and new specifications (values about that property) and notifies a dispatcher about a change.

GNU GPL v2+

Since
1.9
Author
mwjames
Markus Krötzsch

Constructor & Destructor Documentation

◆ __construct()

SMW\Property\ChangePropagationNotifier::__construct ( Store  $store,
SerializerFactory  $serializerFactory 
)
Since
1.9
Parameters
Store$store
SerializerFactory$serializerFactory

Member Function Documentation

◆ checkAndNotify()

SMW\Property\ChangePropagationNotifier::checkAndNotify ( SemanticData $semanticData)

Compare and detect differences between the invoked semantic data and the current stored data

Note
Compare on extra properties from smwgChangePropagationWatchlist (e.g '_PLIST') to find a possible specification change
Since
1.9

◆ hasDiff()

SMW\Property\ChangePropagationNotifier::hasDiff ( )
Since
1.9
Returns
boolean

◆ inNamespace()

SMW\Property\ChangePropagationNotifier::inNamespace ( DIWikiPage  $subject)
Since
3.1
Parameters
DIWikiPage$subject
Returns
boolean

◆ isCommandLineMode()

SMW\Property\ChangePropagationNotifier::isCommandLineMode (   $isCommandLineMode)
See also
https://www.mediawiki.org/wiki/Manual:$wgCommandLineMode Indicates whether MW is running in command-line mode.
Since
3.0
Parameters
boolean$isCommandLineMode

◆ notify()

SMW\Property\ChangePropagationNotifier::notify ( DIWikiPage  $subject)
Since
2.5
Parameters
DIWikiPage$subject

◆ setPropertyList()

SMW\Property\ChangePropagationNotifier::setPropertyList ( array  $propertyList)
Since
2.5
Parameters
array$propertyList

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

About | General disclaimer | Privacy policy