Пример #1
0
 /**
  *This method creates a new meeting room in the BigBlueButton server 
  *
  *@param name -- a name fot the meeting
  *@param meetingID -- the unique meeting identifier used to store the meeting in the bigbluebuttonbn server
  *@param attendeePW -- the attendee of the meeting
  *@param moderatorPW -- the moderator of the meeting
  *@param welcome -- the welcome message that gets displayed on the chat window
  *@param logoutURL -- the URL that the bbb client will go to after users logouut
  *@param SALT -- the security salt of the bigbluebuttonbn server
  *@param URL -- the url of the bigbluebuttonbn server
  *@param record -- the flag which indicate if the meetings will be recorded or not record=true|false, default false
  *
  *@return A boolean of true if the meeting has been created, doesn't matter if is running or not and false if it was an error
  */
 public static function createMeeting($name, $meetingID, $attendeePW, $moderatorPW, $welcome, $logoutURL, $SALT, $URL, $record = 'false', $duration = 0, $voiceBridge = 0, $metadata = array())
 {
     $xml = BigBlueButtonBN::_wrap_simplexml_load_file(BigBlueButtonBN::createMeetingURL($name, $meetingID, $attendeePW, $moderatorPW, $welcome, $logoutURL, $SALT, $URL, $record, $duration, $voiceBridge, $metadata));
     if ($xml && $xml->returncode == 'SUCCESS') {
         return true;
     } else {
         return false;
     }
 }