/** *This method calls getMeetings on the bigbluebuttonbn server, then calls getMeetingInfo for each meeting and concatenates the result. * *@param URL -- the url of the bigbluebuttonbn server *@param SALT -- the security salt of the bigbluebuttonbn server * *@return * - If failed then returns a boolean of false. * - If succeeded then returns an xml of all the meetings. */ public static function getMeetings($URL, $SALT) { $xml = BigBlueButtonBN::_wrap_simplexml_load_file(BigBlueButtonBN::getMeetingsURL($URL, $SALT)); if ($xml && $xml->returncode == 'SUCCESS') { if ($xml->messageKey) { return $xml->message->asXML(); } ob_start(); echo '<meetings>'; if (count($xml->meetings) && count($xml->meetings->meeting)) { foreach ($xml->meetings->meeting as $meeting) { echo '<meeting>'; echo BigBlueButtonBN::getMeetingInfo($meeting->meetingID, $meeting->moderatorPW, $URL, $SALT); echo '</meeting>'; } } echo '</meetings>'; return ob_get_clean(); } else { return false; } }