Abstract Class JTableObserver

Description

Implements interfaces:

Table class supporting modified pre-order tree traversal behavior.

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


	
			
Direct descendents
Class Description
 class JTableObserverContenthistory Table class supporting modified pre-order tree traversal behavior.
 class JTableObserverTags Abstract class defining methods that can be implemented by an Observer class of a JTable class (which is an Observable).
Variable Summary
Method Summary
 JTableObserver __construct (JTable $table)
 void onAfterDelete (mixed $pk)
 void onAfterLoad (boolean &$result, array $row)
 void onAfterStore (boolean &$result)
 void onBeforeDelete (mixed $pk)
 void onBeforeLoad (mixed $keys, boolean $reset)
 void onBeforeStore (boolean $updateNulls, string $tableKey)
Variables
JTable $table (line 28)

The observed table

  • since: 3.1.2
  • access: protected
Methods
Constructor __construct (line 37)

Constructor: Associates to $table $this observer

  • since: 3.1.2
  • access: public
JTableObserver __construct (JTable $table)
  • JTable $table: Table to be observed
onAfterDelete (line 122)

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

  • since: 3.1.2
  • access: public
void onAfterDelete (mixed $pk)
  • mixed $pk: The deleted primary key value.
onAfterLoad (line 68)

Post-processor for $table->load($keys, $reset)

  • since: 3.1.2
  • access: public
void onAfterLoad (boolean &$result, array $row)
  • boolean &$result: The result of the load
  • array $row: The loaded (and already binded to $this->table) row of the database table
onAfterStore (line 95)

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

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

Redefined in descendants as:
onBeforeDelete (line 109)

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

  • since: 3.1.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.

Redefined in descendants as:
onBeforeLoad (line 54)

Pre-processor for $table->load($keys, $reset)

  • since: 3.1.2
  • access: public
void onBeforeLoad (mixed $keys, boolean $reset)
  • mixed $keys: 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.
  • boolean $reset: True to reset the default values before loading the new row.
onBeforeStore (line 82)

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

  • since: 3.1.2
  • access: public
void onBeforeStore (boolean $updateNulls, string $tableKey)
  • boolean $updateNulls: The result of the load
  • string $tableKey: The key of the table

Redefined in descendants as:

Documentation generated on Tue, 19 Nov 2013 15:09:46 +0100 by phpDocumentor 1.4.3