AbstractObserver
Implements JObserverInterfaceTable class supporting modified pre-order tree traversal behavior.
| since |
3.1.2 |
|---|---|
| package |
Joomla CMS |
Methods
__construct
Constructor: Associates to $table $this observer
__construct(\Joomla\CMS\Table\TableInterface table) : mixed
| since |
3.1.2 |
|---|
Arguments
- table
\Joomla\CMS\Table\TableInterfaceTable to be observed
Response
mixed
onAfterDelete
Post-processor for $table->delete($pk)
onAfterDelete(mixed pk) : void
| since |
3.1.2 |
|---|
Arguments
- pk
mixedThe deleted primary key value.
onAfterLoad
Post-processor for $table->load($keys, $reset)
onAfterLoad(bool &result, array row) : void
| since |
3.1.2 |
|---|
Arguments
- result
boolThe result of the load- row
arrayThe loaded (and already binded to $this->table) row of the database table
onAfterStore
Post-processor for $table->store($updateNulls)
onAfterStore(bool &result) : void
| since |
3.1.2 |
|---|
Arguments
- result
boolThe result of the store
onBeforeDelete
Pre-processor for $table->delete($pk)
onBeforeDelete(mixed pk) : void
| since |
3.1.2 |
|---|---|
| throws |
|
Arguments
- pk
mixedAn 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, bool reset) : void
| since |
3.1.2 |
|---|
Arguments
- keys
mixedAn 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
boolTrue to reset the default values before loading the new row.
onBeforeStore
Pre-processor for $table->store($updateNulls)
onBeforeStore(bool updateNulls, string tableKey) : void
| since |
3.1.2 |
|---|
Arguments
- updateNulls
boolThe result of the load- tableKey
stringThe key of the table
Properties
table
The observed table
| since |
3.1.2 |
|---|
Type(s)
\Joomla\CMS\Table\Table