\Block\Model\TableBlockRegionsTable

Represents "block_regions" database table.

Summary

Methods
Properties
Constants
initialize()
buildRules()
validationDefault()
afterSave()
afterDelete()
clearCache()
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 method.

Parameters

array $config

The configuration for the Table.

buildRules()

buildRules(\Cake\ORM\RulesChecker $rules) : \Cake\ORM\RulesChecker

Application rules.

Parameters

\Cake\ORM\RulesChecker $rules

The rule checker

Returns

\Cake\ORM\RulesChecker

validationDefault()

validationDefault(\Cake\Validation\Validator $validator) : \Cake\Validation\Validator

Default validation rules.

Parameters

\Cake\Validation\Validator $validator

The validator object

Returns

\Cake\Validation\Validator

afterSave()

afterSave(\Cake\Event\Event $event, \Block\Model\Entity\BlockRegion $blockRegion, \ArrayObject $options) : void

Clears blocks cache after assignment changes.

Parameters

\Cake\Event\Event $event

The event that was triggered

\Block\Model\Entity\BlockRegion $blockRegion

The block entity that was deleted

\ArrayObject $options

Additional options given as an array

afterDelete()

afterDelete(\Cake\Event\Event $event, \Block\Model\Entity\BlockRegion $blockRegion, \ArrayObject $options) : void

Clears blocks cache after assignment is removed.

Parameters

\Cake\Event\Event $event

The event that was triggered

\Block\Model\Entity\BlockRegion $blockRegion

The block entity that was deleted

\ArrayObject $options

Additional options given as an array

clearCache()

clearCache() : void

Clear blocks cache for all themes and all regions.