ContentHistory
Extends \Joomla\CMS\Table\Observer\AbstractObserverTable class supporting modified pre-order tree traversal behavior.
since |
3.2 |
---|
Methods
__construct
Constructor: Associates to $table $this observer
__construct(\Joomla\CMS\Table\TableInterface $table)
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
createObserver(\JObservableInterface $observableObject, array $params = array()) : \Joomla\CMS\Table\Observer\ContentHistory
since |
3.2 |
---|
Arguments
- $observableObject
\JObservableInterface
The subject object to be observed- $params
array
( 'typeAlias' => $typeAlias )
Response
onAfterDelete
Post-processor for $table->delete($pk)
onAfterDelete(mixed $pk) : void
since |
3.1.2 |
---|
Arguments
- $pk
mixed
The deleted primary key value.
onAfterLoad
Post-processor for $table->load($keys, $reset)
onAfterLoad( &$result, array $row) : void
since |
3.1.2 |
---|
Arguments
- $result
- $row
array
The loaded (and already binded to $this->table) row of the database table
onAfterStore
Post-processor for $table->store($updateNulls)
onAfterStore( &$result) : void
since |
3.1.2 |
---|
Arguments
- $result
onBeforeDelete
Pre-processor for $table->delete($pk)
onBeforeDelete(mixed $pk) : void
since |
3.1.2 |
---|---|
throws |
|
Arguments
- $pk
mixed
An optional primary key value to delete. If not set the instance property value is used.
onBeforeLoad
Pre-processor for $table->load($keys, $reset)
onBeforeLoad(mixed $keys, boolean $reset) : void
since |
3.1.2 |
---|
Arguments
- $keys
mixed
An optional primary key value to load the row by, or an array of fields to match. If not set the instance property value is used.- $reset
boolean
True to reset the default values before loading the new row.
onBeforeStore
Pre-processor for $table->store($updateNulls)
onBeforeStore(boolean $updateNulls, string $tableKey) : void
since |
3.1.2 |
---|
Arguments
- $updateNulls
boolean
The result of the load- $tableKey
string
The key of the table
parseTypeAlias
Internal method Parses a TypeAlias of the form "{variableName}.type", replacing {variableName} with table-instance variables variableName Storing result into $this->contenthistoryHelper->typeAlias
parseTypeAlias() : void
since |
3.2 |
---|
Properties
contenthistoryHelper
Helper object for storing and deleting version history information associated with this table observer
since |
3.2 |
---|
Type(s)
\JHelperContenthistory
typeAliasPattern
The pattern for this table's TypeAlias
since |
3.2 |
---|
Type(s)
string
_myTableForPregreplaceOnly
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.