|
| __construct (SMWDIWikiPage $subject, $changes=null, $insertions=null, $deletions=null, $id=null, $edit=null) |
|
| hasUserDefinedProperties () |
|
| hasChanges () |
|
| getInsertions () |
|
| getDeletions () |
|
| getChanges () |
|
| getSubject () |
|
| addChange (SMWDIProperty $property, SWLPropertyChange $change) |
|
| addInsertion (SMWDIProperty $property, SMWDataItem $dataItem) |
|
| addDeletion (SMWDIProperty $property, SMWDataItem $dataItem) |
|
| getAllProperties () |
|
| removeChangesForProperty (SMWDIProperty $property) |
|
| getAllPropertyChanges (SMWDIProperty $property) |
|
| toArray () |
|
| writeToStore (array $groupsToAssociate, $editId) |
|
| getTitle () |
|
| getEdit () |
|
| setEdit (SWLEdit $edit) |
|
| hasInsertion (SMWDIProperty $property, $value) |
|
| hasDeletion (SMWDIProperty $property, $value) |
|
| hasChange (SMWDIProperty $property, SWLPropertyChange $change) |
|
| mergeInChangeSet (SWLChangeSet $set) |
|
◆ __construct()
SWLChangeSet::__construct |
( |
SMWDIWikiPage |
$subject, |
|
|
|
$changes = null , |
|
|
|
$insertions = null , |
|
|
|
$deletions = null , |
|
|
|
$id = null , |
|
|
|
$edit = null |
|
) |
| |
Create a new instance of a change set.
- Parameters
-
◆ addChange()
◆ addDeletion()
◆ addInsertion()
◆ getAllProperties()
SWLChangeSet::getAllProperties |
( |
| ) |
|
◆ getAllPropertyChanges()
Returns a list of ALL changes, including isertions and deletions.
- Parameters
-
- Returns
- array of SWLPropertyChange
◆ getChanges()
SWLChangeSet::getChanges |
( |
| ) |
|
◆ getDeletions()
SWLChangeSet::getDeletions |
( |
| ) |
|
◆ getEdit()
SWLChangeSet::getEdit |
( |
| ) |
|
Gets the edit this set of changes belong to.
- Since
- 0.1
- Returns
- SWLEdit
◆ getInsertions()
SWLChangeSet::getInsertions |
( |
| ) |
|
◆ getSubject()
SWLChangeSet::getSubject |
( |
| ) |
|
◆ getTitle()
SWLChangeSet::getTitle |
( |
| ) |
|
Gets the title of the page these changes belong to.
- Since
- 0.1
- Returns
- Title
◆ hasChange()
Returns if a certain change is present in the set of changes.
- Since
- 0.1
- Parameters
-
- Returns
- boolean
◆ hasChanges()
SWLChangeSet::hasChanges |
( |
| ) |
|
Returns whether the set contains any changes.
- Since
- 0.1
- Returns
- boolean
◆ hasDeletion()
Returns if a certain insertion is present in the set of changes.
- Since
- 0.1
- Parameters
-
- Returns
- boolean
◆ hasInsertion()
Returns if a certain insertion is present in the set of changes.
- Since
- 0.1
- Parameters
-
- Returns
- boolean
◆ hasUserDefinedProperties()
SWLChangeSet::hasUserDefinedProperties |
( |
| ) |
|
Rteurns if the change set contains (changes for) user defined properties.
- Since
- 0.1
- Returns
- boolean
◆ mergeInChangeSet()
Merges in the changes of another change set. Duplicate changes are detected and only kept as a single change. This is usefull for merging sets with (possibly overlapping) changes belonging to a single edit.
- Since
- 0.1
- Parameters
-
◆ newFromArray()
static SWLChangeSet::newFromArray |
( |
array |
$changeSetArray | ) |
|
|
static |
Creates and returns a new SWLChangeSet instance from a database result obtained by doing a select on swl_sets.
- Since
- 0.1
- Parameters
-
- Returns
- SWLChangeSet
◆ newFromDBResult()
static SWLChangeSet::newFromDBResult |
( |
|
$set | ) |
|
|
static |
Creates and returns a new SWLChangeSet instance from a database result obtained by doing a select on swl_sets.
- Since
- 0.1
- Parameters
-
- Returns
- SWLChangeSet
◆ newFromSemanticData()
Creates and returns a new SMWChangeSet from 2 SMWSemanticData objects.
- Parameters
-
SMWSemanticData | $old | |
SMWSemanticData | $new | |
array | $filterProperties | Optional list of properties (string serializations) to filter on. Null for no filtering. |
- Returns
- SMWChangeSet
◆ removeChangesForProperty()
SWLChangeSet::removeChangesForProperty |
( |
SMWDIProperty |
$property | ) |
|
Removes all changes for a certian property.
- Parameters
-
◆ setEdit()
SWLChangeSet::setEdit |
( |
SWLEdit |
$edit | ) |
|
Sets the edit this set of changes belong to.
- Since
- 0.1
- Parameters
-
◆ toArray()
SWLChangeSet::toArray |
( |
| ) |
|
Serializes the object as an associative array, which can be passed to newFromArray to create a new instance.
- Since
- 0.1
- Returns
- array
◆ writeToStore()
SWLChangeSet::writeToStore |
( |
array |
$groupsToAssociate, |
|
|
|
$editId |
|
) |
| |
Save the change set to the database.
- Since
- 0.1
- Parameters
-
- Returns
- integer ID of the inserted row (0 if nothing was inserted).
The documentation for this class was generated from the following file: