1 | <?php |
||
12 | trait SearchTrait |
||
13 | { |
||
14 | private static $searchFields = [ ]; |
||
15 | |||
16 | 9 | private static function setup() |
|
26 | |||
27 | private static function searchFields() |
||
31 | |||
32 | /** |
||
33 | * @param array $fields |
||
34 | */ |
||
35 | 9 | public static function setSearchFields(array $fields) |
|
39 | |||
40 | /** |
||
41 | * @return array |
||
42 | */ |
||
43 | 2 | public static function getSearchFields() |
|
47 | |||
48 | /** |
||
49 | * @return mixed |
||
50 | */ |
||
51 | 1 | public static function search() |
|
60 | |||
61 | 9 | public static function bootSearchTrait() |
|
79 | |||
80 | /** |
||
81 | * @param Model $model |
||
82 | * @param Store $store |
||
83 | */ |
||
84 | private static function insertCallback(Model $model, Store $store) |
||
89 | |||
90 | /** |
||
91 | * @param Model $model |
||
92 | * @param Store $store |
||
93 | */ |
||
94 | private static function deleteCallback(Model $model, Store $store) |
||
99 | } |
||
100 |