Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | List of all members
SMW\SQLStore\CompositePropertyTableDiffIterator Class Reference
Collaboration diagram for SMW\SQLStore\CompositePropertyTableDiffIterator:
Collaboration graph
[legend]

Public Member Functions

 __construct (array $diff=array())
 
 setSubject (DIWikiPage $subject)
 
 getSubject ()
 
 getIterator ()
 
 getHash ()
 
 addDataRecord ($hash, array $data)
 
 getDataChangeOps ()
 
 addTableDiffChangeOp (array $insertChangeOp, array $deleteChangeOp)
 
 addFixedPropertyRecord ($tableName, array $fixedPropertyRecord)
 
 getFixedPropertyRecords ()
 
 getTableChangeOps ($table=null)
 
 getOrderedDiffByTable ($table=null)
 
 getListOfChangedEntityIdsByType ($type=null)
 
 getCombinedIdListOfChangedEntities ()
 

Public Attributes

const TYPE_INSERT = 'insert'
 
const TYPE_DELETE = 'delete'
 

Detailed Description

GNU GPL v2+

Since
2.3
Author
mwjames

Constructor & Destructor Documentation

SMW\SQLStore\CompositePropertyTableDiffIterator::__construct ( array  $diff = array())
Since
2.3
Parameters
array$diff

Member Function Documentation

SMW\SQLStore\CompositePropertyTableDiffIterator::addDataRecord (   $hash,
array  $data 
)
Since
3.0
Parameters
array$data
SMW\SQLStore\CompositePropertyTableDiffIterator::addFixedPropertyRecord (   $tableName,
array  $fixedPropertyRecord 
)
Since
2.3
Parameters
array$fixedPropertyRecord
SMW\SQLStore\CompositePropertyTableDiffIterator::addTableDiffChangeOp ( array  $insertChangeOp,
array  $deleteChangeOp 
)
Since
2.3
Parameters
array$insertChangeOp
array$deleteChangeOp
SMW\SQLStore\CompositePropertyTableDiffIterator::getCombinedIdListOfChangedEntities ( )
Since
2.3
Returns
array
SMW\SQLStore\CompositePropertyTableDiffIterator::getDataChangeOps ( )
Since
3.0
Returns
TableChangeOp[]
SMW\SQLStore\CompositePropertyTableDiffIterator::getFixedPropertyRecords ( )
Since
2.4
Returns
array
SMW\SQLStore\CompositePropertyTableDiffIterator::getHash ( )
Since
2.5
Returns
string
SMW\SQLStore\CompositePropertyTableDiffIterator::getIterator ( )
Since
2.3
Returns
ArrayIterator
SMW\SQLStore\CompositePropertyTableDiffIterator::getListOfChangedEntityIdsByType (   $type = null)
Since
3.0
Parameters
string | null$type
Returns
array
SMW\SQLStore\CompositePropertyTableDiffIterator::getOrderedDiffByTable (   $table = null)

Simplified (ordered by table) diff array to allow for an easier post-processing

Since
2.3
Returns
array
SMW\SQLStore\CompositePropertyTableDiffIterator::getSubject ( )
Since
2.5
Returns
DIWikiPage
SMW\SQLStore\CompositePropertyTableDiffIterator::getTableChangeOps (   $table = null)

ChangeOp (TableChangeOp/FieldChangeOp) representation of the composite diff.

Since
2.4
Parameters
string | null$table
Returns
TableChangeOp[]|[]
SMW\SQLStore\CompositePropertyTableDiffIterator::setSubject ( DIWikiPage  $subject)
Since
2.5
Returns
DIWikiPage $subject

Member Data Documentation

const SMW\SQLStore\CompositePropertyTableDiffIterator::TYPE_DELETE = 'delete'
const SMW\SQLStore\CompositePropertyTableDiffIterator::TYPE_INSERT = 'insert'

Type of change operations


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