You are here

function bbb_api_parse_response in BigBlueButton 7

Same name and namespace in other branches
  1. 6 includes/api-0.64.bbb.inc \bbb_api_parse_response()
  2. 6 includes/api-0.7.bbb.inc \bbb_api_parse_response()
  3. 6 includes/api.bbb.inc \bbb_api_parse_response()

Parse xml response

Parameters

XML: @return OBJECT

1 call to bbb_api_parse_response()
bbb_api_call in includes/api.bbb.inc
Connect to BBB API and return response.

File

includes/api.bbb.inc, line 261
BigBlueButton - Enables universities and colleges to deliver a high-quality learning experience.

Code

function bbb_api_parse_response($xml) {

  //TODO: Refactor
  $response = new StdClass();
  if ($xml) {
    foreach ($xml as $element => $node) {
      $response->{$element} = (string) $node;
    }
  }
  return $response;
}