1 | <?php |
||
15 | class LogEntry extends DataObject implements PermissionProvider |
||
16 | { |
||
17 | /** |
||
18 | * {@inheritDoc} |
||
19 | */ |
||
20 | private static $table_name = 'LogEntry'; |
||
21 | |||
22 | /** |
||
23 | * {@inheritDoc} |
||
24 | */ |
||
25 | private static $db = [ |
||
26 | 'Entry' => 'Text', |
||
27 | 'Level' => 'Varchar' |
||
28 | ]; |
||
29 | |||
30 | /** |
||
31 | * {@inheritDoc} |
||
32 | */ |
||
33 | private static $summary_fields = [ |
||
34 | 'Entry', |
||
35 | 'Created', |
||
36 | 'Level' |
||
37 | ]; |
||
38 | |||
39 | /** |
||
40 | * Permissions |
||
41 | */ |
||
42 | public function providePermissions() |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | public function canCreate($member = null, $context = []) |
||
65 | |||
66 | /** |
||
67 | * We should never edit log entries |
||
68 | * |
||
69 | * {@inheritDoc} |
||
70 | */ |
||
71 | public function canEdit($member = null) |
||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | public function canDelete($member = null) |
||
82 | |||
83 | /** |
||
84 | * {@inheritdoc} |
||
85 | */ |
||
86 | public function canView($member = null) |
||
90 | } |
||
91 |