Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SWLPropertyChanges Class Reference
Inheritance diagram for SWLPropertyChanges:
Inheritance graph
[legend]
Collaboration diagram for SWLPropertyChanges:
Collaboration graph
[legend]

Public Member Functions

 getProperties ()
 
 hasChanges ()
 
 getPropertyChanges (SMWDIProperty $property)
 
 addPropertyObjectChange (SMWDIProperty $property, SWLPropertyChange $change)
 
 addPropertyChange ( $propertyName, SWLPropertyChange $change)
 
 removeChangesForProperty (SMWDIProperty $property)
 
 rewind ()
 
 current ()
 
 key ()
 
 next ()
 
 valid ()
 

Member Function Documentation

◆ addPropertyChange()

SWLPropertyChanges::addPropertyChange (   $propertyName,
SWLPropertyChange  $change 
)

Store a value for a given property identified by its text label (without namespace prefix).

Parameters
string$propertyName
SWLPropertyChange$change

◆ addPropertyObjectChange()

SWLPropertyChanges::addPropertyObjectChange ( SMWDIProperty  $property,
SWLPropertyChange  $change 
)

Store a value for a property identified by its SMWDataItem object.

Note
There is no check whether the type of the given data item agrees with the type of the property. Since property types can change, all parts of SMW are prepared to handle mismatched data item types anyway.
Parameters
SMWDIProperty$property
SWLPropertyChange$change

◆ getProperties()

SWLPropertyChanges::getProperties ( )

Get the array of all properties that have changes.

Returns
array of SMWDIProperty

◆ getPropertyChanges()

SWLPropertyChanges::getPropertyChanges ( SMWDIProperty  $property)

Get the array of all stored values for some property.

Parameters
$propertySMWDIProperty
Returns
array of SWLPropertyChange

◆ hasChanges()

SWLPropertyChanges::hasChanges ( )

Returns if the list contains any changes. This info is cached, so the call is cheaper then doing a count.

Returns
boolean

◆ removeChangesForProperty()

SWLPropertyChanges::removeChangesForProperty ( SMWDIProperty  $property)

Removes all changes for a certian property.

Parameters
SMWDIProperty$property

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

About | General disclaimer | Privacy policy