Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SMW\SQLStore\ChangeOp\ChangeDiff Class Reference

Public Member Functions

 __construct (DIWikiPage $subject, array $tableChangeOps, array $dataOps, array $propertyList, array $textItems=[])
 
 setAssociatedRev ( $associatedRev)
 
 getAssociatedRev ()
 
 getSubject ()
 
 getTableChangeOps ()
 
 getDataOps ()
 
 getTextItems ()
 
 getPropertyList ( $op=false)
 
 setChangeList ( $type, array $changes)
 
 getChangeListByType ( $type)
 
 serialize ()
 
 toJson ( $prettify=false)
 
 save (Cache $cache)
 

Static Public Member Functions

static fetch (Cache $cache, DIWikiPage $subject)
 

Public Attributes

const CACHE_NAMESPACE = 'smw:store:diff'
 
const CACHE_TTL = 604800
 

Detailed Description

GNU GPL v2+

Since
2.3
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\SQLStore\ChangeOp\ChangeDiff::__construct ( DIWikiPage  $subject,
array  $tableChangeOps,
array  $dataOps,
array  $propertyList,
array  $textItems = [] 
)
Since
3.0
Parameters
DIWikiPage$subject
array$tableChangeOps
array$dataOps
array$propertyList
array$textItems

Member Function Documentation

◆ fetch()

static SMW\SQLStore\ChangeOp\ChangeDiff::fetch ( Cache  $cache,
DIWikiPage  $subject 
)
static
Since
3.0
Parameters
Cache$cache
DIWikiPage$subject

◆ getAssociatedRev()

SMW\SQLStore\ChangeOp\ChangeDiff::getAssociatedRev ( )
Since
3.1
Returns
integer

◆ getChangeListByType()

SMW\SQLStore\ChangeOp\ChangeDiff::getChangeListByType (   $type)
Since
3.0
Parameters
string$type
Returns
array

◆ getDataOps()

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

◆ getPropertyList()

SMW\SQLStore\ChangeOp\ChangeDiff::getPropertyList (   $op = false)
Since
3.0
Parameters
boolean$op
Returns
[]

◆ getSubject()

SMW\SQLStore\ChangeOp\ChangeDiff::getSubject ( )
Since
3.0
Returns
DIWikiPage

◆ getTableChangeOps()

SMW\SQLStore\ChangeOp\ChangeDiff::getTableChangeOps ( )
Since
3.0
Returns
TableChangeOps[]

◆ getTextItems()

SMW\SQLStore\ChangeOp\ChangeDiff::getTextItems ( )
Since
3.0
Returns
[]

◆ save()

SMW\SQLStore\ChangeOp\ChangeDiff::save ( Cache  $cache)
Since
3.0
Parameters
Cache$cache

◆ serialize()

SMW\SQLStore\ChangeOp\ChangeDiff::serialize ( )
Since
3.0
Returns
string

◆ setAssociatedRev()

SMW\SQLStore\ChangeOp\ChangeDiff::setAssociatedRev (   $associatedRev)
Since
3.1
Parameters
integer$associatedRev

◆ setChangeList()

SMW\SQLStore\ChangeOp\ChangeDiff::setChangeList (   $type,
array  $changes 
)
Since
3.0
Parameters
string$type
array$changes

◆ toJson()

SMW\SQLStore\ChangeOp\ChangeDiff::toJson (   $prettify = false)
Since
3.0
Returns
string

Member Data Documentation

◆ CACHE_NAMESPACE

const SMW\SQLStore\ChangeOp\ChangeDiff::CACHE_NAMESPACE = 'smw:store:diff'

Identifies the cache namespace

◆ CACHE_TTL

const SMW\SQLStore\ChangeOp\ChangeDiff::CACHE_TTL = 604800

Identifies the cache TTL (one week)


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

About | General disclaimer | Privacy policy