1 | <?php |
||
14 | class Log extends \Model { |
||
15 | |||
16 | public static $logging = false; |
||
17 | public static $cols = [ |
||
18 | 'type' => ['type' => 'text'], |
||
19 | 'info' => ['type' => 'text'], |
||
20 | 'query' => ['type' => 'text'], |
||
21 | 'status' => ['type' => 'text'], |
||
22 | 'exchange_id' => ['type' => 'select', 'source' => 'relation', 'realtion' => 'exchange'], |
||
23 | 'date_create' => ['type' => 'dateTime'], |
||
24 | 'date_end' => ['type' => 'dateTime', 'null' => true, 'emptyValue' => null], |
||
25 | ]; |
||
26 | public static $dataManagers = [ |
||
27 | 'manager' => [ |
||
28 | 'cols' => [ |
||
29 | 'type', 'info', 'query', 'status', 'date_create', 'date_end' |
||
30 | ], |
||
31 | ] |
||
32 | ]; |
||
33 | public static $forms = [ |
||
34 | 'manager' => [ |
||
35 | 'map' => [ |
||
36 | ['type', 'info', 'status'], |
||
37 | ['query'] |
||
38 | ] |
||
39 | ] |
||
40 | ]; |
||
41 | |||
42 | public static function relations() { |
||
50 | |||
51 | } |