1 | <?php |
||
28 | class WaitingListRegistration extends DataObject |
||
29 | { |
||
30 | private static $db = array( |
||
|
|||
31 | 'Title' => 'Varchar(255)', |
||
32 | 'Email' => 'Varchar(255)', |
||
33 | 'Telephone' => 'Varchar(255)' |
||
34 | ); |
||
35 | |||
36 | private static $has_one = array( |
||
37 | 'Event' => 'CalendarEvent' |
||
38 | ); |
||
39 | |||
40 | private static $summary_fields = array( |
||
41 | 'Title' => 'Name', |
||
42 | 'Email' => 'Email', |
||
43 | 'Telephone' => 'Telephone' |
||
44 | ); |
||
45 | |||
46 | public function getCMSFields() |
||
59 | |||
60 | /** |
||
61 | * Returns the singular name without the namespaces |
||
62 | * |
||
63 | * @return string |
||
64 | */ |
||
65 | public function singular_name() |
||
70 | |||
71 | public function canView($member = null) |
||
75 | |||
76 | public function canEdit($member = null) |
||
80 | |||
81 | public function canDelete($member = null) |
||
85 | |||
86 | public function canCreate($member = null) |
||
90 | } |
||
91 |