1 | <?php |
||
25 | class UserFieldOption extends DataObject |
||
26 | { |
||
27 | private static $db = array( |
||
|
|||
28 | 'Title' => 'Varchar(255)', |
||
29 | 'Default' => 'Boolean', |
||
30 | 'Sort' => 'Int' |
||
31 | ); |
||
32 | |||
33 | private static $default_sort = 'Sort ASC'; |
||
34 | |||
35 | private static $has_one = array( |
||
36 | 'Field' => 'Broarm\EventTickets\UserField' |
||
37 | ); |
||
38 | |||
39 | private static $summary_fields = array( |
||
40 | 'Title', |
||
41 | 'Default' |
||
42 | ); |
||
43 | |||
44 | private static $translate = array( |
||
45 | 'Title' |
||
46 | ); |
||
47 | |||
48 | public function getCMSFields() |
||
59 | |||
60 | public function canView($member = null) |
||
64 | |||
65 | public function canEdit($member = null) |
||
69 | |||
70 | public function canDelete($member = null) |
||
74 | |||
75 | public function canCreate($member = null) |
||
79 | } |
||
80 |