| 1 | <?php namespace App\Modules\V1\Acl\ModelObservers; |
||
| 6 | class AclGroupObserver { |
||
| 7 | |||
| 8 | public function saving($model) |
||
| 12 | |||
| 13 | public function saved($model) |
||
| 17 | |||
| 18 | public function creating($model) |
||
| 22 | |||
| 23 | public function created($model) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Prevent updating of the admin group. |
||
| 30 | * |
||
| 31 | * @param object $model the model beign updated. |
||
| 32 | * @return void |
||
| 33 | */ |
||
| 34 | public function updating($model) |
||
| 41 | |||
| 42 | public function updated($model) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Prevent deleting the admin group. |
||
| 49 | * |
||
| 50 | * @param object $model the delted model. |
||
| 51 | * @return void |
||
| 52 | */ |
||
| 53 | public function deleting($model) |
||
| 60 | |||
| 61 | public function deleted($model) |
||
| 65 | |||
| 66 | public function restoring($model) |
||
| 70 | |||
| 71 | public function restored($model) |
||
| 75 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.