diff --git a/src/BigBlueButton/Client.php b/src/BigBlueButton/Client.php index eb19a3d..c47624c 100644 --- a/src/BigBlueButton/Client.php +++ b/src/BigBlueButton/Client.php @@ -161,7 +161,7 @@ private function xml2object($raw_response) // Fix data model. if (isset($array->attendees)) { $array->attendees = (array) $array->attendees; - if (!isset($array->attendees[0]) or $array->attendees[0] === "\n") { + if ($array->attendees[0] === "\n") { $array->attendees = []; } } @@ -169,7 +169,7 @@ private function xml2object($raw_response) // Fix data model. if (isset($array->metadata)) { $array->metadata = (array) $array->metadata; - if (!isset($array->metadata[0]) or $array->metadata[0] === "\n") { + if ($array->metadata[0] === "\n") { $array->metadata = []; } } diff --git a/src/BigBlueButton/Member/Meeting.php b/src/BigBlueButton/Member/Meeting.php index cd5bbc0..c4509c4 100644 --- a/src/BigBlueButton/Member/Meeting.php +++ b/src/BigBlueButton/Member/Meeting.php @@ -81,28 +81,6 @@ class Meeting * @var string */ protected $logoutURL; - - /** - * The Banner Text. - * - * @var string - */ - protected $bannerText; - - /** - * The Banner Color. - * - * @var string - */ - - protected $bannerColor; - - /** - * The logo. - * - * @var string - */ - protected $logo; /** * The meeting will record. @@ -151,7 +129,13 @@ class Meeting * * @var string */ + protected $logo; + /** + * Copyright statement for flash client. + * + * @var string + */ protected $copyright; /** @@ -378,8 +362,6 @@ public function __construct($attributes, Client $client) 'voiceBridge' => '', 'webVoice' => '', 'logoutURL' => '', - 'bannerText' => '', - 'bannerColor' => '', 'record' => false, 'duration' => 0, 'meta' => [], @@ -388,8 +370,6 @@ public function __construct($attributes, Client $client) 'allowStartStopRecording' => true, 'webcamsOnlyForModerator' => false, 'logo' => '', - 'bannerText' => '', - 'bannerColor' => '', 'copyright' => '', 'muteOnStart' => false, ]; @@ -662,93 +642,6 @@ public function setLogoutURL($logoutURL) $this->logoutURL = $logoutURL; return $this; } - /** - * Get the banner text. - * - * @return string - */ - public function getBannerText() - { - return $this->bannerText; - } - - /** - * Set the banner text. - * - * @param string $bannerText - * @return Meeting - */ - public function setBannerText($bannerText) - { - $this->bannerText = $bannerText; - return $this; - } - - /** - * Get the banner Color. - * - * @return string - */ - public function getBannerColor() - { - return $this->bannerColor; - } - - /** - * Set the banner Color. - * - * @param string $bannerColor - * @return Meeting - */ - public function setBannerColor($bannerColor) - { - $this->bannerColor = $bannerColor; - return $this; - } - - /** - * Get the copyright. - * - * @return string - */ - public function getCopyright() - { - return $this->copyright; - } - - /** - * Set the copyright. - * - * @param string $copyright - * @return Meeting - */ - public function setCopyright($copyright) - { - $this->copyright = $copyright; - return $this; - } - - /** - * Get the logo. - * - * @return string - */ - public function getLogo() - { - return $this->logo; - } - - /** - * Set the logo. - * - * @param string $logo - * @return Meeting - */ - public function setLogo($logo) - { - $this->logo = $logo; - return $this; - } /** * Does the meeting record? @@ -781,39 +674,6 @@ public function setRecord($record) $this->record = $record; return $this; } - - /** - * Does mute on start? - * - * @return boolean - */ - - public function getMuteOnStart() - { - return $this->doesMuteOnStart(); - } - - /** - * Alias for getMuteOnStart(). - * - * @return boolean - */ - public function doesMuteOnStart() - { - return $this->muteOnStart; - } - - /** - * Set the muteOnStart. - * - * @param boolean $muteOnStart - * @return Meeting - */ - public function setMuteOnStart($muteOnStart) - { - $this->muteOnStart = $muteOnStart; - return $this; - } /** * Get the duration. @@ -956,38 +816,6 @@ public function setAllowStartStopRecording($allowStartStopRecording) return $this; } - /** - * Alias for getWebcamsOnlyForModerator(). - * - * @return boolean - */ - public function doesWebcamsOnlyForModerator() - { - return $this->getWebcamsOnlyForModerator(); - } - - /** - * Does the meeting allow to start/stop recording? - * - * @return boolean - */ - public function getWebcamsOnlyForModerator() - { - return $this->webcamsOnlyForModerator; - } - - /** - * Set the allow start/stop recording indicator. - * - * @param boolean $webcamsOnlyForModerator - * @return Meeting - */ - public function setWebcamsOnlyForModerator($webcamsOnlyForModerator) - { - $this->webcamsOnlyForModerator = $webcamsOnlyForModerator; - return $this; - } - /** * Get the create time. * @@ -1198,17 +1026,11 @@ public function create() 'welcome' => $this->getWelcome(), 'dialNumber' => $this->getDialNumber(), 'logoutURL' => $this->getLogoutURL(), - 'bannerText' => $this->getBannerText(), - 'bannerColor' => $this->getBannerColor(), - 'copyright' => $this->getCopyright(), - 'logo' => $this->getLogo(), 'record' => $this->getRecord(), - 'muteOnStart' => $this->getMuteOnStart(), 'duration' => $this->getDuration(), 'moderatorOnlyMessage' => $this->getModeratorOnlyMessage(), 'autoStartRecording' => $this->getAutoStartRecording(), 'allowStartStopRecording' => $this->getAllowStartStopRecording(), - 'webcamsOnlyForModerator' => $this->getWebcamsOnlyForModerator(), ]); $this->meetingID = $response->meetingID; return $this->getInfo(); diff --git a/src/BigBlueButton/Server.php b/src/BigBlueButton/Server.php index 4f9d504..0dda249 100644 --- a/src/BigBlueButton/Server.php +++ b/src/BigBlueButton/Server.php @@ -139,7 +139,6 @@ public function getVersion() * recording. This means the meeting can start recording automatically * (autoStartRecording=true) with the user able to stop/start recording * from the client. - * - webcamsOnlyForModerator * * @return \sanduhrs\BigBlueButton\Member\Meeting * A meeting object.