@@ -254,6 +254,48 @@ class Member extends SilverstripeBaseModel
254254 */
255255 private $ external_pic ;
256256
257+ /**
258+ * @ORM\Column(name="PublicProfileShowPhoto", options={"default":0}, type="boolean")
259+ * @var bool
260+ */
261+ private $ public_profile_show_photo ;
262+
263+ /**
264+ * @ORM\Column(name="PublicProfileShowFullName", options={"default":0}, type="boolean")
265+ * @var bool
266+ */
267+ private $ public_profile_show_fullname ;
268+
269+ /**
270+ * @ORM\Column(name="PublicProfileShowEmail", options={"default":0}, type="boolean")
271+ * @var bool
272+ */
273+ private $ public_profile_show_email ;
274+
275+ /**
276+ * @ORM\Column(name="PublicProfileAllowChatWithMe", options={"default":0}, type="boolean")
277+ * @var bool
278+ */
279+ private $ public_profile_allow_chat_with_me ;
280+
281+ /**
282+ * @ORM\Column(name="PublicProfileShowSocialMediaInfo", options={"default":0}, type="boolean")
283+ * @var bool
284+ */
285+ private $ public_profile_show_social_media_info ;
286+
287+ /**
288+ * @ORM\Column(name="PublicProfileShowBio", options={"default":0}, type="boolean")
289+ * @var bool
290+ */
291+ private $ public_profile_show_bio ;
292+
293+ /**
294+ * @ORM\Column(name="PublicProfileShowTelephoneNumber", options={"default":0}, type="boolean")
295+ * @var bool
296+ */
297+ private $ public_profile_show_telephone_number ;
298+
257299 /**
258300 * @ORM\OneToMany(targetEntity="SummitMemberSchedule", mappedBy="member", cascade={"persist"}, orphanRemoval=true, fetch="EXTRA_LAZY")
259301 * @var SummitMemberSchedule[]
@@ -422,6 +464,15 @@ public function __construct()
422464 $ this ->subscribed_to_newsletter = false ;
423465 $ this ->display_on_site = false ;
424466 $ this ->created_presentations = new ArrayCollection ();
467+
468+ // user profile settings
469+ $ this ->public_profile_show_photo = false ;
470+ $ this ->public_profile_show_email = false ;
471+ $ this ->public_profile_show_fullname = true ;
472+ $ this ->public_profile_allow_chat_with_me = false ;
473+ $ this ->public_profile_show_social_media_info = false ;
474+ $ this ->public_profile_show_bio = true ;
475+ $ this ->public_profile_show_telephone_number = false ;
425476 }
426477
427478 /**
@@ -3124,4 +3175,75 @@ public function isAuthzFor(Summit $summit, Sponsor $sponsor = null):bool{
31243175 return true ;
31253176 return false ;
31263177 }
3178+
3179+ public function isPublicProfileShowPhoto (): bool
3180+ {
3181+ return $ this ->public_profile_show_photo ;
3182+ }
3183+
3184+ public function setPublicProfileShowPhoto (bool $ public_profile_show_photo ): void
3185+ {
3186+ $ this ->public_profile_show_photo = $ public_profile_show_photo ;
3187+ }
3188+
3189+ public function isPublicProfileShowFullname (): bool
3190+ {
3191+ return $ this ->public_profile_show_fullname ;
3192+ }
3193+
3194+ public function setPublicProfileShowFullname (bool $ public_profile_show_fullname ): void
3195+ {
3196+ $ this ->public_profile_show_fullname = $ public_profile_show_fullname ;
3197+ }
3198+
3199+ public function isPublicProfileShowEmail (): bool
3200+ {
3201+ return $ this ->public_profile_show_email ;
3202+ }
3203+
3204+ public function setPublicProfileShowEmail (bool $ public_profile_show_email ): void
3205+ {
3206+ $ this ->public_profile_show_email = $ public_profile_show_email ;
3207+ }
3208+
3209+ public function isPublicProfileAllowChatWithMe (): bool
3210+ {
3211+ return $ this ->public_profile_allow_chat_with_me ;
3212+ }
3213+
3214+ public function setPublicProfileAllowChatWithMe (bool $ public_profile_allow_chat_with_me ): void
3215+ {
3216+ $ this ->public_profile_allow_chat_with_me = $ public_profile_allow_chat_with_me ;
3217+ }
3218+
3219+ public function isPublicProfileShowSocialMediaInfo (): bool
3220+ {
3221+ return $ this ->public_profile_show_social_media_info ;
3222+ }
3223+
3224+ public function setPublicProfileShowSocialMediaInfo (bool $ public_profile_show_social_media_info ): void
3225+ {
3226+ $ this ->public_profile_show_social_media_info = $ public_profile_show_social_media_info ;
3227+ }
3228+
3229+ public function isPublicProfileShowBio (): bool
3230+ {
3231+ return $ this ->public_profile_show_bio ;
3232+ }
3233+
3234+ public function setPublicProfileShowBio (bool $ public_profile_show_bio ): void
3235+ {
3236+ $ this ->public_profile_show_bio = $ public_profile_show_bio ;
3237+ }
3238+
3239+ public function isPublicProfileShowTelephoneNumber (): bool
3240+ {
3241+ return $ this ->public_profile_show_telephone_number ;
3242+ }
3243+
3244+ public function setPublicProfileShowTelephoneNumber (bool $ public_profile_show_telephone_number ): void
3245+ {
3246+ $ this ->public_profile_show_telephone_number = $ public_profile_show_telephone_number ;
3247+ }
3248+
31273249}
0 commit comments