\System\Model\TableOptionsTable

Represents "options" database table.

Summary

Methods
Properties
Constants
initialize()
afterSave()
afterDelete()
update()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

initialize()

initialize(array $config) : void

Initialize a table instance. Called after the constructor.

Parameters

array $config

Configuration options passed to the constructor

afterSave()

afterSave(\Cake\Event\Event $event, \Cake\ORM\Entity $option) : void

Regenerates system's snapshot.

Parameters

\Cake\Event\Event $event

The event that was triggered

\Cake\ORM\Entity $option

The option entity that was saved

afterDelete()

afterDelete(\Cake\Event\Event $event, \Cake\ORM\Entity $option) : void

Regenerates system's snapshot.

Parameters

\Cake\Event\Event $event

The event that was triggered

\Cake\ORM\Entity $option

The option entity that was saved

update()

update(string $name, mixed $value, boolean|null $autoload, boolean $callbacks) : null|\Cake\ORM\Entity

Updates the given option.

Parameters

string $name

Option name

mixed $value

Value to store for this option

boolean|null $autoload

Set to true to load this option on bootstrap, null indicates it should not be modified. Defaults to null (do not change)

boolean $callbacks

Whether to trigger callbacks (beforeSavem etc) or not. Defaults to true

Returns

null|\Cake\ORM\Entity —

The option as an entity on success, null otherwise