Total Complexity | 7 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class Test_CmsActionsModel extends DataObject implements TestOnly |
||
11 | { |
||
12 | private static $db = [ |
||
|
|||
13 | "Name" => "Varchar", |
||
14 | ]; |
||
15 | private static $has_one = []; |
||
16 | private static $table_name = 'CmsActionsModel'; |
||
17 | |||
18 | public function getCMSActions() |
||
19 | { |
||
20 | $actions = parent::getCMSActions(); |
||
21 | $actions->push(new CustomAction('testAction', 'Test Action')); |
||
22 | return $actions; |
||
23 | } |
||
24 | |||
25 | public function getCMSUtils() |
||
29 | } |
||
30 | |||
31 | public function canDelete($member = null) |
||
32 | { |
||
33 | return true; |
||
34 | } |
||
35 | |||
36 | public function canEdit($member = null) |
||
39 | } |
||
40 | |||
41 | public function testAction() |
||
42 | { |
||
43 | return 'called testAction'; |
||
44 | } |
||
45 | |||
46 | public function getDeleteButtonTitle() |
||
47 | { |
||
48 | return 'Delete this!'; |
||
49 | } |
||
50 | |||
51 | public function getCancelButtonTitle() |
||
54 | } |
||
55 | } |
||
56 |