\User\Model\TableAcosTable

Represents "acos" database table.

Summary

Methods
Properties
Constants
initialize()
beforeSave()
node()
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

beforeSave()

beforeSave(\Cake\Event\Event $event, \User\Model\Entity\Aco $aco) : void

We create a hash of "alias" property so we can perform case sensitive SQL comparisons.

Parameters

\Cake\Event\Event $event

The event that was triggered

\User\Model\Entity\Aco $aco

ACO entity being saved

node()

node(string|array $ref) : \Cake\ORM\Query|boolean

Retrieves the ACO contents for the given ACO path.

ACO path format:

As a string describing a path:

PluginName/ControllerName/actionName

Or an associative array which values describes a path, for instance:

[
    'plugin' => YourPlugin,
    'prefix' => Admin,
    'controller' => Users,
    'action' => index,
]

The above array is equivalent to: PluginName/Admin/Users/index

Parameters

string|array $ref

ACO path as described above

Returns

\Cake\ORM\Query|boolean —

False if not found or query result if found