Class JTableObserverContenthistory

Description

Table class supporting modified pre-order tree traversal behavior.

Located in /libraries/joomla/table/observer/contenthistory.php (line 20)

JTableObserver
   |
   --JTableObserverContenthistory
Variable Summary
Method Summary
 static JTableObserverContenthistory createObserver (JObservableInterface $observableObject, [array $params = array()])
 void onAfterStore (boolean &$result)
 void onBeforeDelete (mixed $pk)
 void parseTypeAlias ()
Variables
static JTableObserverContenthistory $_myTableForPregreplaceOnly (line 47)

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.

  • deprecated: Never use this
  • private:
  • since: 3.2
  • access: public
JHelperContenthistory $contenthistoryHelper (line 28)

Helper object for storing and deleting version history information associated with this table observer

  • since: 3.2
  • access: protected
string $typeAliasPattern = null (line 36)

The pattern for this table's TypeAlias

  • since: 3.2
  • access: protected

Inherited Variables

Inherited from JTableObserver

JTableObserver::$table
Methods
static createObserver (line 61)

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

  • since: 3.2
  • access: public
static JTableObserverContenthistory createObserver (JObservableInterface $observableObject, [array $params = array()])
  • JObservableInterface $observableObject: The subject object to be observed
  • array $params: ( 'typeAlias' => $typeAlias )
onAfterStore (line 82)

Post-processor for $table->store($updateNulls)

  • since: 3.2
  • access: public
void onAfterStore (boolean &$result)
  • boolean &$result: The result of the load

Redefinition of:
JTableObserver::onAfterStore()
Post-processor for $table->store($updateNulls)
onBeforeDelete (line 106)

Pre-processor for $table->delete($pk)

  • since: 3.2
  • throws: UnexpectedValueException
  • access: public
void onBeforeDelete (mixed $pk)
  • mixed $pk: An optional primary key value to delete. If not set the instance property value is used.

Redefinition of:
JTableObserver::onBeforeDelete()
Pre-processor for $table->delete($pk)
parseTypeAlias (line 127)

Internal method Parses a TypeAlias of the form "{variableName}.type", replacing {variableName} with table-instance variables variableName Storing result into $this->contenthistoryHelper->typeAlias

  • since: 3.2
  • access: protected
void parseTypeAlias ()

Inherited Methods

Inherited From JTableObserver

 JTableObserver::__construct()
 JTableObserver::onAfterDelete()
 JTableObserver::onAfterLoad()
 JTableObserver::onAfterStore()
 JTableObserver::onBeforeDelete()
 JTableObserver::onBeforeLoad()
 JTableObserver::onBeforeStore()

Documentation generated on Tue, 19 Nov 2013 14:56:59 +0100 by phpDocumentor 1.4.3