/** *This method returns an array of the attendees in the specified meeting. * *@param meetingID -- the unique meeting identifier used to store the meeting in the bigbluebuttonbn server *@param modPW -- the moderator password of the meeting *@param URL -- the url of the bigbluebuttonbn server *@param SALT -- the security salt of the bigbluebuttonbn server * *@return * - Null if the server is unreachable. * - If FAILED, returns an array containing a returncode, messageKey, message. * - If SUCCESS, returns an array of array containing the userID, fullName, role of each attendee */ public static function getUsersArray($meetingID, $modPW, $URL, $SALT) { $xml = BigBlueButtonBN::_wrap_simplexml_load_file(BigBlueButtonBN::getMeetingInfoURL($meetingID, $modPW, $URL, $SALT)); if ($xml && $xml->returncode == 'SUCCESS' && $xml->messageKey == null) { //The meetings were returned return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey); } else { if ($xml && $xml->returncode == 'SUCCESS') { //If there were meetings already created foreach ($xml->attendees->attendee as $attendee) { $users[] = array('userID' => $attendee->userID, 'fullName' => $attendee->fullName, 'role' => $attendee->role); } return $users; } else { if ($xml) { //If the xml packet returned failure it displays the message to the user return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey); } else { //If the server is unreachable, then prompts the user of the necessary action return null; } } } }