1 <?php
2
3 /*
4 * This file is part of the Icybee package.
5 *
6 * (c) Olivier Laviale <olivier.laviale@gmail.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Icybee\Modules\Cache;
13
14 use ICanBoogie\Errors;
15 use ICanBoogie\Exception;
16
17 /**
18 * @property-read Collection $collection Caches collection.
19 */
20 abstract class BaseOperation extends \ICanBoogie\Operation
21 {
22 protected function get_controls()
23 {
24 return array
25 (
26 self::CONTROL_PERMISSION => Module::PERMISSION_ADMINISTER
27 )
28
29 + parent::get_controls();
30 }
31
32 protected function get_collection()
33 {
34 return Collection::get();
35 }
36
37 protected function validate(Errors $errors)
38 {
39 return true;
40 }
41 }