@@ -1072,6 +1072,7 @@ public static function seedBasicEventTypes($summit_id)
10721072 $ presentation ->AreSpeakersMandatory = false ;
10731073 $ presentation ->UseModerator = false ;
10741074 $ presentation ->IsModeratorMandatory = false ;
1075+ $ presentation ->IsDefault = true ;
10751076 $ presentation ->write ();
10761077
10771078 $ key_note = SummitEventType::get ()->filter (['Type ' => IPresentationType::Keynotes, 'SummitID ' => $ summit_id ])->first ();
@@ -1090,6 +1091,7 @@ public static function seedBasicEventTypes($summit_id)
10901091 $ key_note ->AreSpeakersMandatory = false ;
10911092 $ key_note ->UseModerator = true ;
10921093 $ key_note ->IsModeratorMandatory = false ;
1094+ $ key_note ->IsDefault = true ;
10931095 $ key_note ->write ();
10941096
10951097 $ panel = SummitEventType::get ()->filter (['Type ' => IPresentationType::Panel, 'SummitID ' => $ summit_id ])->first ();
@@ -1108,6 +1110,7 @@ public static function seedBasicEventTypes($summit_id)
11081110 $ panel ->AreSpeakersMandatory = false ;
11091111 $ panel ->UseModerator = true ;
11101112 $ panel ->IsModeratorMandatory = false ;
1113+ $ panel ->IsDefault = true ;
11111114 $ panel ->write ();
11121115
11131116 $ lighting_talks = SummitEventType::get ()->filter (['Type ' => IPresentationType::LightingTalks, 'SummitID ' => $ summit_id ])->first ();
@@ -1126,6 +1129,7 @@ public static function seedBasicEventTypes($summit_id)
11261129 $ lighting_talks ->AreSpeakersMandatory = false ;
11271130 $ lighting_talks ->UseModerator = false ;
11281131 $ lighting_talks ->IsModeratorMandatory = false ;
1132+ $ lighting_talks ->IsDefault = true ;
11291133 $ lighting_talks ->write ();
11301134
11311135 $ hand_on_labs = SummitEventType::get ()->filter (['Type ' => ISummitEventType::HandonLabs, 'SummitID ' => $ summit_id ])->first ();
@@ -1136,6 +1140,7 @@ public static function seedBasicEventTypes($summit_id)
11361140
11371141 $ hand_on_labs ->Type = ISummitEventType::HandonLabs;
11381142 $ hand_on_labs ->SummitID = $ summit_id ;
1143+ $ hand_on_labs ->IsDefault = true ;
11391144 $ hand_on_labs ->write ();
11401145
11411146 $ lunch = SummitEventType::get ()->filter (['Type ' => ISummitEventType::Lunch, 'SummitID ' => $ summit_id ])->first ();
@@ -1145,6 +1150,7 @@ public static function seedBasicEventTypes($summit_id)
11451150
11461151 $ lunch ->Type = ISummitEventType::Lunch;
11471152 $ lunch ->SummitID = $ summit_id ;
1153+ $ lunch ->IsDefault = true ;
11481154 $ lunch ->write ();
11491155
11501156 $ breaks = SummitEventType::get ()->filter (['Type ' => ISummitEventType::Breaks, 'SummitID ' => $ summit_id ])->first ();
@@ -1154,16 +1160,17 @@ public static function seedBasicEventTypes($summit_id)
11541160
11551161 $ breaks ->Type = ISummitEventType::Breaks;
11561162 $ breaks ->SummitID = $ summit_id ;
1163+ $ breaks ->IsDefault = true ;
11571164 $ breaks ->write ();
11581165
1159-
11601166 $ evening_events = SummitEventType::get ()->filter (['Type ' => ISummitEventType::EveningEvents, 'SummitID ' => $ summit_id ])->first ();
11611167 if (is_null ($ evening_events )) {
11621168 $ evening_events = new SummitEventType ();
11631169 }
11641170
11651171 $ evening_events ->Type = ISummitEventType::EveningEvents;
11661172 $ evening_events ->SummitID = $ summit_id ;
1173+ $ breaks ->IsDefault = true ;
11671174 $ evening_events ->write ();
11681175
11691176
@@ -1172,26 +1179,12 @@ public static function seedBasicEventTypes($summit_id)
11721179 $ groups_events = new SummitEventType ();
11731180 }
11741181
1175- $ groups_events ->Type = ISummitEventType::GroupsEvents;
1176- $ groups_events ->SummitID = $ summit_id ;
1182+ $ groups_events ->Type = ISummitEventType::GroupsEvents;
1183+ $ groups_events ->SummitID = $ summit_id ;
1184+ $ groups_events ->IsDefault = true ;
11771185 $ groups_events ->write ();
11781186 }
11791187
1180- public static function isDefaultEventType ($ event_type )
1181- {
1182- return in_array ($ event_type ,
1183- [
1184- IPresentationType::Presentation,
1185- IPresentationType::Keynotes,
1186- IPresentationType::Panel,
1187- IPresentationType::LightingTalks,
1188- ISummitEventType::HandonLabs,
1189- ISummitEventType::EveningEvents,
1190- ISummitEventType::Lunch_Breaks,
1191- ISummitEventType::GroupsEvents,
1192- ]);
1193- }
1194-
11951188 /**
11961189 * @return bool
11971190 */
0 commit comments