| @@ -138,8 +138,18 @@ | ||
| 138 | 138 | { |
| 139 | 139 | return $this->event_type == 'group_event'; |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | + /** | |
| 143 | + * Every value event_type can hold, on both fcal_calendar_slots and fcal_bookings. | |
| 144 | + * | |
| 145 | + * @return array | |
| 146 | + */ | |
| 147 | + public static function getEventTypes() | |
| 148 | + { | |
| 149 | + return ['single', 'group', 'round_robin', 'collective', 'single_event', 'group_event']; | |
| 150 | + } | |
| 151 | + | |
| 142 | 152 | public function isRoundRobin() |
| 143 | 153 | { |
| 144 | 154 | return $this->event_type == 'round_robin'; |
| 145 | 155 | } |