1616 * You should have received a copy of the GNU Lesser General Public License along
1717 * with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
1818 */
19-
2019namespace BigBlueButton \Parameters ;
2120
21+ use BigBlueButton \Core \GuestPolicy ;
22+ use BigBlueButton \Core \MeetingLayout ;
23+
2224/**
2325 * @method string getName()
2426 * @method $this setName(string $name)
122124 */
123125class CreateMeetingParameters extends MetaParameters
124126{
125- public const ALWAYS_ACCEPT = 'ALWAYS_ACCEPT ' ;
126- public const ALWAYS_DENY = 'ALWAYS_DENY ' ;
127- public const ASK_MODERATOR = 'ASK_MODERATOR ' ;
128- public const ALWAYS_ACCEPT_AUTH = 'ALWAYS_ACCEPT_AUTH ' ;
127+ /**
128+ * @deprecated Use GuestPolicy::ALWAYS_ACCEPT instead.
129+ */
130+ public const ALWAYS_ACCEPT = GuestPolicy::ALWAYS_ACCEPT ;
131+ /**
132+ * @deprecated Use GuestPolicy::ALWAYS_DENY instead.
133+ */
134+ public const ALWAYS_DENY = GuestPolicy::ALWAYS_DENY ;
135+ /**
136+ * @deprecated Use GuestPolicy::ASK_MODERATOR instead.
137+ */
138+ public const ASK_MODERATOR = GuestPolicy::ASK_MODERATOR ;
139+ /**
140+ * @deprecated Use GuestPolicy::ALWAYS_ACCEPT_AUTH instead.
141+ */
142+ public const ALWAYS_ACCEPT_AUTH = GuestPolicy::ALWAYS_ACCEPT_AUTH ;
129143
130- const CUSTOM_LAYOUT = 'CUSTOM_LAYOUT ' ;
131- const SMART_LAYOUT = 'SMART_LAYOUT ' ;
132- const PRESENTATION_FOCUS = 'PRESENTATION_FOCUS ' ;
133- const VIDEO_FOCUS = 'VIDEO_FOCUS ' ;
144+ /**
145+ * @deprecated Use MeetingLayout::CUSTOM_LAYOUT instead.
146+ */
147+ public const CUSTOM_LAYOUT = MeetingLayout::CUSTOM_LAYOUT ;
148+ /**
149+ * @deprecated Use MeetingLayout::SMART_LAYOUT instead.
150+ */
151+ public const SMART_LAYOUT = MeetingLayout::SMART_LAYOUT ;
152+ /**
153+ * @deprecated Use MeetingLayout::PRESENTATION_FOCUS instead.
154+ */
155+ public const PRESENTATION_FOCUS = MeetingLayout::PRESENTATION_FOCUS ;
156+ /**
157+ * @deprecated Use MeetingLayout::VIDEO_FOCUS instead.
158+ */
159+ public const VIDEO_FOCUS = MeetingLayout::VIDEO_FOCUS ;
134160
135161 /**
136162 * @var string
@@ -325,7 +351,7 @@ class CreateMeetingParameters extends MetaParameters
325351 /**
326352 * @var string
327353 */
328- protected $ guestPolicy = self ::ALWAYS_ACCEPT ;
354+ protected $ guestPolicy = GuestPolicy ::ALWAYS_ACCEPT ;
329355
330356 /**
331357 * @var bool
@@ -604,15 +630,15 @@ public function setParentMeetingId(string $parentMeetingID)
604630 */
605631 public function isGuestPolicyAlwaysDeny ()
606632 {
607- return $ this ->guestPolicy === self ::ALWAYS_DENY ;
633+ return $ this ->guestPolicy === GuestPolicy ::ALWAYS_DENY ;
608634 }
609635
610636 /**
611637 * @return CreateMeetingParameters
612638 */
613639 public function setGuestPolicyAlwaysDeny ()
614640 {
615- $ this ->guestPolicy = self ::ALWAYS_DENY ;
641+ $ this ->guestPolicy = GuestPolicy ::ALWAYS_DENY ;
616642
617643 return $ this ;
618644 }
@@ -622,7 +648,7 @@ public function setGuestPolicyAlwaysDeny()
622648 */
623649 public function isGuestPolicyAskModerator ()
624650 {
625- return $ this ->guestPolicy === self ::ASK_MODERATOR ;
651+ return $ this ->guestPolicy === GuestPolicy ::ASK_MODERATOR ;
626652 }
627653
628654 /**
@@ -631,7 +657,7 @@ public function isGuestPolicyAskModerator()
631657 */
632658 public function setGuestPolicyAskModerator ()
633659 {
634- $ this ->guestPolicy = self ::ASK_MODERATOR ;
660+ $ this ->guestPolicy = GuestPolicy ::ASK_MODERATOR ;
635661
636662 return $ this ;
637663 }
@@ -641,15 +667,16 @@ public function setGuestPolicyAskModerator()
641667 */
642668 public function isGuestPolicyAlwaysAcceptAuth ()
643669 {
644- return $ this ->guestPolicy === self ::ALWAYS_ACCEPT_AUTH ;
670+ return $ this ->guestPolicy === GuestPolicy ::ALWAYS_ACCEPT_AUTH ;
645671 }
646672
647673 /**
648674 * Ask moderator on join of guests is allowed to enter the meeting, user are allowed to join directly
675+ * @return CreateMeetingParameters
649676 */
650677 public function setGuestPolicyAlwaysAcceptAuth ()
651678 {
652- $ this ->guestPolicy = self ::ALWAYS_ACCEPT_AUTH ;
679+ $ this ->guestPolicy = GuestPolicy ::ALWAYS_ACCEPT_AUTH ;
653680
654681 return $ this ;
655682 }
0 commit comments