| @@ 24-96 (lines=73) @@ | ||
| 21 | /** |
|
| 22 | * Class EndMeetingParameters. |
|
| 23 | */ |
|
| 24 | class EndMeetingParameters extends BaseParameters |
|
| 25 | { |
|
| 26 | /** |
|
| 27 | * @var string |
|
| 28 | */ |
|
| 29 | private $meetingId; |
|
| 30 | ||
| 31 | /** |
|
| 32 | * @var string |
|
| 33 | */ |
|
| 34 | private $password; |
|
| 35 | ||
| 36 | /** |
|
| 37 | * EndMeetingParameters constructor. |
|
| 38 | * |
|
| 39 | * @param $meetingId |
|
| 40 | * @param $password |
|
| 41 | */ |
|
| 42 | public function __construct($meetingId, $password) |
|
| 43 | { |
|
| 44 | $this->password = $password; |
|
| 45 | $this->meetingId = $meetingId; |
|
| 46 | } |
|
| 47 | ||
| 48 | /** |
|
| 49 | * @return string |
|
| 50 | */ |
|
| 51 | public function getMeetingId() |
|
| 52 | { |
|
| 53 | return $this->meetingId; |
|
| 54 | } |
|
| 55 | ||
| 56 | /** |
|
| 57 | * @param string $meetingId |
|
| 58 | * @return EndMeetingParameters |
|
| 59 | */ |
|
| 60 | public function setMeetingId($meetingId) |
|
| 61 | { |
|
| 62 | $this->meetingId = $meetingId; |
|
| 63 | ||
| 64 | return $this; |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * @return string |
|
| 69 | */ |
|
| 70 | public function getPassword() |
|
| 71 | { |
|
| 72 | return $this->password; |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * @param string $password |
|
| 77 | * @return EndMeetingParameters |
|
| 78 | */ |
|
| 79 | public function setPassword($password) |
|
| 80 | { |
|
| 81 | $this->password = $password; |
|
| 82 | ||
| 83 | return $this; |
|
| 84 | } |
|
| 85 | ||
| 86 | /** |
|
| 87 | * @return string |
|
| 88 | */ |
|
| 89 | public function getHTTPQuery() |
|
| 90 | { |
|
| 91 | return $this->buildHTTPQuery( |
|
| 92 | [ |
|
| 93 | 'meetingID' => $this->meetingId, |
|
| 94 | 'password' => $this->password, |
|
| 95 | ] |
|
| 96 | ); |
|
| 97 | } |
|
| 98 | } |
|
| 99 | ||
| @@ 25-97 (lines=73) @@ | ||
| 22 | * Class GetMeetingInfoParameters |
|
| 23 | * @package BigBlueButton\Parameters |
|
| 24 | */ |
|
| 25 | class GetMeetingInfoParameters extends BaseParameters |
|
| 26 | { |
|
| 27 | /** |
|
| 28 | * @var string |
|
| 29 | */ |
|
| 30 | private $meetingId; |
|
| 31 | ||
| 32 | /** |
|
| 33 | * @var string |
|
| 34 | */ |
|
| 35 | private $password; |
|
| 36 | ||
| 37 | /** |
|
| 38 | * GetMeetingInfoParameters constructor. |
|
| 39 | * |
|
| 40 | * @param $meetingId |
|
| 41 | * @param $password |
|
| 42 | */ |
|
| 43 | public function __construct($meetingId, $password) |
|
| 44 | { |
|
| 45 | $this->password = $password; |
|
| 46 | $this->meetingId = $meetingId; |
|
| 47 | } |
|
| 48 | ||
| 49 | /** |
|
| 50 | * @return string |
|
| 51 | */ |
|
| 52 | public function getMeetingId() |
|
| 53 | { |
|
| 54 | return $this->meetingId; |
|
| 55 | } |
|
| 56 | ||
| 57 | /** |
|
| 58 | * @param string $meetingId |
|
| 59 | * @return GetMeetingInfoParameters |
|
| 60 | */ |
|
| 61 | public function setMeetingId($meetingId) |
|
| 62 | { |
|
| 63 | $this->meetingId = $meetingId; |
|
| 64 | ||
| 65 | return $this; |
|
| 66 | } |
|
| 67 | ||
| 68 | /** |
|
| 69 | * @return string |
|
| 70 | */ |
|
| 71 | public function getPassword() |
|
| 72 | { |
|
| 73 | return $this->password; |
|
| 74 | } |
|
| 75 | ||
| 76 | /** |
|
| 77 | * @param string $password |
|
| 78 | * @return GetMeetingInfoParameters |
|
| 79 | */ |
|
| 80 | public function setPassword($password) |
|
| 81 | { |
|
| 82 | $this->password = $password; |
|
| 83 | ||
| 84 | return $this; |
|
| 85 | } |
|
| 86 | ||
| 87 | /** |
|
| 88 | * @return string |
|
| 89 | */ |
|
| 90 | public function getHTTPQuery() |
|
| 91 | { |
|
| 92 | return $this->buildHTTPQuery( |
|
| 93 | [ |
|
| 94 | 'meetingID' => $this->meetingId, |
|
| 95 | 'password' => $this->password, |
|
| 96 | ] |
|
| 97 | ); |
|
| 98 | } |
|
| 99 | } |
|
| 100 | ||
| @@ 25-97 (lines=73) @@ | ||
| 22 | * Class PublishRecordingsParameters |
|
| 23 | * @package BigBlueButton\Parameters |
|
| 24 | */ |
|
| 25 | class PublishRecordingsParameters extends BaseParameters |
|
| 26 | { |
|
| 27 | /** |
|
| 28 | * @var string |
|
| 29 | */ |
|
| 30 | private $recordingId; |
|
| 31 | ||
| 32 | /** |
|
| 33 | * @var bool |
|
| 34 | */ |
|
| 35 | private $publish; |
|
| 36 | ||
| 37 | /** |
|
| 38 | * PublishRecordingsParameters constructor. |
|
| 39 | * |
|
| 40 | * @param $recordingId |
|
| 41 | * @param $publish |
|
| 42 | */ |
|
| 43 | public function __construct($recordingId, $publish) |
|
| 44 | { |
|
| 45 | $this->recordingId = $recordingId; |
|
| 46 | $this->publish = $publish; |
|
| 47 | } |
|
| 48 | ||
| 49 | /** |
|
| 50 | * @return string |
|
| 51 | */ |
|
| 52 | public function getRecordingId() |
|
| 53 | { |
|
| 54 | return $this->recordingId; |
|
| 55 | } |
|
| 56 | ||
| 57 | /** |
|
| 58 | * @param string $recordingId |
|
| 59 | * @return PublishRecordingsParameters |
|
| 60 | */ |
|
| 61 | public function setRecordingId($recordingId) |
|
| 62 | { |
|
| 63 | $this->recordingId = $recordingId; |
|
| 64 | ||
| 65 | return $this; |
|
| 66 | } |
|
| 67 | ||
| 68 | /** |
|
| 69 | * @return bool |
|
| 70 | */ |
|
| 71 | public function isPublish() |
|
| 72 | { |
|
| 73 | return $this->publish; |
|
| 74 | } |
|
| 75 | ||
| 76 | /** |
|
| 77 | * @param bool $publish |
|
| 78 | * @return PublishRecordingsParameters |
|
| 79 | */ |
|
| 80 | public function setPublish($publish) |
|
| 81 | { |
|
| 82 | $this->publish = $publish; |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * @return string |
|
| 87 | */ |
|
| 88 | public function getHTTPQuery() |
|
| 89 | { |
|
| 90 | return $this->buildHTTPQuery( |
|
| 91 | [ |
|
| 92 | 'recordID' => $this->recordingId, |
|
| 93 | 'publish', $this->publish ? 'true' : 'false' |
|
| 94 | ] |
|
| 95 | ); |
|
| 96 | } |
|
| 97 | } |
|
| 98 | ||
| @@ 25-97 (lines=73) @@ | ||
| 22 | * Class SetConfigXMLParameters |
|
| 23 | * @package BigBlueButton\Parameters |
|
| 24 | */ |
|
| 25 | class SetConfigXMLParameters extends BaseParameters |
|
| 26 | { |
|
| 27 | /** |
|
| 28 | * @var string |
|
| 29 | */ |
|
| 30 | private $meetingId; |
|
| 31 | ||
| 32 | /** |
|
| 33 | * @var \SimpleXMLElement |
|
| 34 | */ |
|
| 35 | private $rawXml; |
|
| 36 | ||
| 37 | /** |
|
| 38 | * SetConfigXMLParameters constructor. |
|
| 39 | * |
|
| 40 | * @param $meetingId |
|
| 41 | */ |
|
| 42 | public function __construct($meetingId) |
|
| 43 | { |
|
| 44 | $this->meetingId = $meetingId; |
|
| 45 | } |
|
| 46 | ||
| 47 | /** |
|
| 48 | * @return string |
|
| 49 | */ |
|
| 50 | public function getMeetingId() |
|
| 51 | { |
|
| 52 | return $this->meetingId; |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * @param string $meetingId |
|
| 57 | * @return SetConfigXMLParameters |
|
| 58 | */ |
|
| 59 | public function setMeetingId($meetingId) |
|
| 60 | { |
|
| 61 | $this->meetingId = $meetingId; |
|
| 62 | ||
| 63 | return $this; |
|
| 64 | } |
|
| 65 | ||
| 66 | /** |
|
| 67 | * @return string |
|
| 68 | */ |
|
| 69 | public function getRawXml() |
|
| 70 | { |
|
| 71 | return $this->rawXml; |
|
| 72 | } |
|
| 73 | ||
| 74 | /** |
|
| 75 | * @param \SimpleXMLElement $rawXml |
|
| 76 | * @return SetConfigXMLParameters |
|
| 77 | */ |
|
| 78 | public function setRawXml($rawXml) |
|
| 79 | { |
|
| 80 | $this->rawXml = $rawXml; |
|
| 81 | ||
| 82 | return $this; |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * @return string |
|
| 87 | */ |
|
| 88 | public function getHTTPQuery() |
|
| 89 | { |
|
| 90 | return $this->buildHTTPQuery( |
|
| 91 | [ |
|
| 92 | 'configXML' => urlencode($this->rawXml->asXML()), |
|
| 93 | 'meetingID' => $this->meetingId, |
|
| 94 | ] |
|
| 95 | ); |
|
| 96 | } |
|
| 97 | } |
|
| 98 | ||