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

Public Member Functions

 __construct (DIWikiPage $subject=null, array $diff=[])
 
 setTextItemsFlag ( $textItemsFlag)
 
 getSubject ()
 
 getIterator ()
 
 getHash ()
 
 addFixedPropertyRecord ( $tableName, array $fixedPropertyRecord)
 
 getFixedPropertyRecords ()
 
 addPropertyList ( $propertyList)
 
 getPropertyList ()
 
 addDataOp ( $hash, array $data)
 
 getDataOps ()
 
 addTextItems ( $id, array $textItems)
 
 addDiffOp (array $insertOp, array $deleteOp)
 
 getTableChangeOps ( $table=null)
 
 newChangeDiff ()
 
 getOrderedDiffByTable ( $table=null)
 
 getChangedEntityIdListByType ( $type=null)
 
 getChangedEntityIdSummaryList ()
 
 getCombinedIdListOfChangedEntities ()
 

Public Attributes

const OP_INSERT = 'insert'
 
const OP_DELETE = 'delete'
 

Detailed Description

GNU GPL v2+

Since
2.3
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\SQLStore\ChangeOp\ChangeOp::__construct ( DIWikiPage  $subject = null,
array  $diff = [] 
)
Since
2.3
Parameters
DIWikiPage | null$subject
array$diff

Member Function Documentation

◆ addDataOp()

SMW\SQLStore\ChangeOp\ChangeOp::addDataOp (   $hash,
array  $data 
)
Since
3.0
Parameters
string$hash
array$data

◆ addDiffOp()

SMW\SQLStore\ChangeOp\ChangeOp::addDiffOp ( array  $insertOp,
array  $deleteOp 
)
Since
2.3
Parameters
array$insertOp
array$deleteOp

◆ addFixedPropertyRecord()

SMW\SQLStore\ChangeOp\ChangeOp::addFixedPropertyRecord (   $tableName,
array  $fixedPropertyRecord 
)
Since
2.3
Parameters
array$fixedPropertyRecord

◆ addPropertyList()

SMW\SQLStore\ChangeOp\ChangeOp::addPropertyList (   $propertyList)
Since
3.0
Returns
array

◆ addTextItems()

SMW\SQLStore\ChangeOp\ChangeOp::addTextItems (   $id,
array  $textItems 
)
Since
3.0
Parameters
integer$id
array$data

◆ getChangedEntityIdListByType()

SMW\SQLStore\ChangeOp\ChangeOp::getChangedEntityIdListByType (   $type = null)
Since
3.0
Parameters
string | null$type
Returns
array

◆ getChangedEntityIdSummaryList()

SMW\SQLStore\ChangeOp\ChangeOp::getChangedEntityIdSummaryList ( )
Since
3.0
Returns
array

◆ getCombinedIdListOfChangedEntities()

SMW\SQLStore\ChangeOp\ChangeOp::getCombinedIdListOfChangedEntities ( )
Deprecated:
since 3.0, use ChangeOp::getChangedEntityIdSummaryList
Since
2.3
Returns
array

◆ getDataOps()

SMW\SQLStore\ChangeOp\ChangeOp::getDataOps ( )
Since
3.0
Returns
TableChangeOp[]

◆ getFixedPropertyRecords()

SMW\SQLStore\ChangeOp\ChangeOp::getFixedPropertyRecords ( )
Since
2.4
Returns
array

◆ getHash()

SMW\SQLStore\ChangeOp\ChangeOp::getHash ( )
Since
2.5
Returns
string

◆ getIterator()

SMW\SQLStore\ChangeOp\ChangeOp::getIterator ( )
Since
2.3
Returns
ArrayIterator

◆ getOrderedDiffByTable()

SMW\SQLStore\ChangeOp\ChangeOp::getOrderedDiffByTable (   $table = null)

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

Since
2.3
Returns
array

◆ getPropertyList()

SMW\SQLStore\ChangeOp\ChangeOp::getPropertyList ( )
Since
3.0
Returns
array

◆ getSubject()

SMW\SQLStore\ChangeOp\ChangeOp::getSubject ( )
Since
2.5
Returns
DIWikiPage

◆ getTableChangeOps()

SMW\SQLStore\ChangeOp\ChangeOp::getTableChangeOps (   $table = null)

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

Since
2.4
Parameters
string | null$table
Returns
TableChangeOp[]|[]

◆ newChangeDiff()

SMW\SQLStore\ChangeOp\ChangeOp::newChangeDiff ( )
Since
3.0
Returns
ChangeDiff

◆ setTextItemsFlag()

SMW\SQLStore\ChangeOp\ChangeOp::setTextItemsFlag (   $textItemsFlag)
Since
3.0
Parameters
boolean$textItemsFlag

Member Data Documentation

◆ OP_INSERT

const SMW\SQLStore\ChangeOp\ChangeOp::OP_INSERT = 'insert'

Type of change operations


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

About | General disclaimer | Privacy policy