\JTableObserverContenthistory
Table class supporting modified pre-order tree traversal behavior.
Synopsis
class JTableObserverContenthistory
extends JTableObserver
{
- // members
- protected JHelperContenthistory $contenthistoryHelper;
- protected $typeAliasPattern;
- public JTableObserverContenthistory $_myTableForPregreplaceOnly;
- // Inherited members from JTableObserver
- protected JTable $table;
- // methods
- public static JTableObserverContenthistory createObserver()
- public void onAfterStore()
- public void onBeforeDelete()
- protected void parseTypeAlias()
- // Inherited methods from JTableObserver
- public void __construct()
- public void onBeforeLoad()
- public void onAfterLoad()
- public void onBeforeStore()
- public void onAfterStore()
- public void onBeforeDelete()
- public void onAfterDelete()
Hierarchy
Extends
Members
protected
- $contenthistoryHelper
—
JHelperContenthistory
Helper object for storing and deleting version history information associated with this table observer - $table
—
JTable
The observed table - $typeAliasPattern
—
string
The pattern for this table's TypeAlias
public
- $_myTableForPregreplaceOnly
—
JTableObserverContenthistory
Not public, so marking private and deprecated, but needed internally in parseTypeAlias for PHP < 5.4.0 as it's not passing context $this to closure function.
Methods
protected
- parseTypeAlias() — Internal method Parses a TypeAlias of the form "{variableName}.type", replacing {variableName} with table-instance variables variableName Storing result into $this->contenthistoryHelper->typeAlias
public
- createObserver() — Creates the associated observer instance and attaches it to the $observableObject Creates the associated content history helper class instance $typeAlias can be of the form "{variableName}.type", automatically replacing {variableName} with table-instance variables variableName
- onAfterStore() — Post-processor for $table->store($updateNulls)
- onBeforeDelete() — Pre-processor for $table->delete($pk)
Inherited from JTableObserver
public
- onAfterDelete() — Post-processor for $table->delete($pk)
- onAfterLoad() — Post-processor for $table->load($keys, $reset)
- onAfterStore() — Post-processor for $table->store($updateNulls)
- onBeforeDelete() — Pre-processor for $table->delete($pk)
- onBeforeLoad() — Pre-processor for $table->load($keys, $reset)
- onBeforeStore() — Pre-processor for $table->store($updateNulls)