1 | <?php |
||
10 | class ContentReviewLog extends DataObject |
||
11 | { |
||
12 | /** |
||
13 | * @var array |
||
14 | */ |
||
15 | private static $db = [ |
||
16 | "Note" => "Text", |
||
17 | ]; |
||
18 | |||
19 | /** |
||
20 | * @var array |
||
21 | */ |
||
22 | private static $has_one = [ |
||
23 | "Reviewer" => Member::class, |
||
24 | "SiteTree" => SiteTree::class, |
||
25 | ]; |
||
26 | |||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | private static $summary_fields = [ |
||
31 | "Note" => ["title" => "Note"], |
||
32 | "Created" => ["title" => "Reviewed at"], |
||
33 | "Reviewer.Title" => ["title" => "Reviewed by"] |
||
34 | ]; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | private static $default_sort = "Created DESC"; |
||
40 | |||
41 | private static $table_name = 'ContentReviewLog'; |
||
42 | |||
43 | /** |
||
44 | * @param mixed $member |
||
45 | * |
||
46 | * @return bool |
||
47 | */ |
||
48 | public function canView($member = null) |
||
52 | } |
||
53 |