1 | <?php |
||
23 | class AcosTable extends Table |
||
24 | { |
||
25 | |||
26 | /** |
||
27 | * Initialize a table instance. Called after the constructor. |
||
28 | * |
||
29 | * @param array $config Configuration options passed to the constructor |
||
30 | * @return void |
||
31 | */ |
||
32 | public function initialize(array $config) |
||
48 | |||
49 | /** |
||
50 | * We create a hash of "alias" property so we can perform |
||
51 | * case sensitive SQL comparisons. |
||
52 | * |
||
53 | * @param \Cake\Event\Event $event The event that was triggered |
||
54 | * @param \User\Model\Entity\Aco $aco ACO entity being saved |
||
55 | * @return void |
||
56 | */ |
||
57 | public function beforeSave(Event $event, Aco $aco) |
||
63 | |||
64 | /** |
||
65 | * Clear permissions cache after ACO save so new changes are applied. |
||
66 | * |
||
67 | * @param \Cake\Event\Event $event The event that was triggered |
||
68 | * @param \User\Model\Entity\Aco $aco ACO entity that was saved |
||
69 | * @return void |
||
70 | */ |
||
71 | public function afterSave(Event $event, Aco $aco) |
||
75 | |||
76 | /** |
||
77 | * Retrieves the ACO contents for the given ACO path. |
||
78 | * |
||
79 | * ### ACO path format: |
||
80 | * |
||
81 | * As a string describing a path: |
||
82 | * |
||
83 | * PluginName/ControllerName/actionName |
||
84 | * |
||
85 | * Or an associative array which values describes a path, for instance: |
||
86 | * |
||
87 | * ```php |
||
88 | * [ |
||
89 | * 'plugin' => YourPlugin, |
||
90 | * 'prefix' => Admin, |
||
91 | * 'controller' => Users, |
||
92 | * 'action' => index, |
||
93 | * ] |
||
94 | * ``` |
||
95 | * |
||
96 | * The above array is equivalent to: `PluginName/Admin/Users/index` |
||
97 | * |
||
98 | * @param string|array $ref ACO path as described above |
||
99 | * @return \Cake\ORM\Query|bool False if not found or query result if found |
||
100 | */ |
||
101 | public function node($ref) |
||
174 | } |
||
175 |