Class JTableContenthistory
Content History table.
- JObject
- JTable implements JObservableInterface, JTableInterface
- JTableContenthistory
Copyright: Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
License: General Public License version 2 or later; see LICENSE.txt
Since: 3.2
Located at cms/table/contenthistory.php
Methods summary
public
|
|
public
boolean
|
|
public
string
|
#
getSha1( mixed $jsonData,
Utility method to get the hash after removing selected values. This lets us detect changes other than modified date (which will change on every save). |
public
string
|
#
getHashMatch( )
Utility method to get a matching row based on the hash value and id columns. This lets us check to make sure we don't save duplicate versions. |
public
boolean
|
#
deleteOldVersions( integer $maxVersions )
Utility method to remove the oldest versions of an item, saving only the most recent versions. |
Methods inherited from JTable
_getAssetName()
,
_getAssetParentId()
,
_getAssetTitle()
,
_lock()
,
_unlock()
,
addIncludePath()
,
appendPrimaryKeys()
,
attachObserver()
,
bind()
,
check()
,
checkIn()
,
checkOut()
,
delete()
,
getColumnAlias()
,
getDbo()
,
getFields()
,
getInstance()
,
getKeyName()
,
getNextOrder()
,
getObserverOfClass()
,
getPrimaryKey()
,
getRules()
,
getTableName()
,
hasPrimaryKey()
,
hit()
,
isCheckedOut()
,
load()
,
move()
,
publish()
,
reorder()
,
reset()
,
save()
,
setColumnAlias()
,
setDbo()
,
setRules()
Methods inherited from JObject
__toString()
,
def()
,
get()
,
getError()
,
getErrors()
,
getProperties()
,
set()
,
setError()
,
setProperties()
Magic methods summary
Properties summary
public
array
|
$ignoreChanges |
#
Array of object fields to unset from the data object before calculating SHA1 hash. This allows us to detect a meaningful change in the database row using the hash. This can be read from the #__content_types content_history_options column. |
public
array
|
$convertToInt |
#
Array of object fields to convert to integers before calculating SHA1 hash. Some values are stored differently when an item is created than when the item is changed and saved. This works around that issue. This can be read from the #__content_types content_history_options column. |
Properties inherited from JTable
$_autoincrement
,
$_columnAlias
,
$_db
,
$_jsonEncode
,
$_locked
,
$_observers
,
$_rules
,
$_tbl
,
$_tbl_key
,
$_tbl_keys
,
$_trackAssets