You are here

api.bbb.inc in BigBlueButton 6

Same filename and directory in other branches
  1. 7 includes/api.bbb.inc

Big Blue Button - Enables universities and colleges to deliver a high-quality learning experience.

@author Stefan Auditor <stefan.auditor@erdfisch.de>

File

includes/api.bbb.inc
View source
<?php

/**
 * @file
 * Big Blue Button - Enables universities and colleges to deliver a high-quality
 * learning experience.
 *
 * @author
 * Stefan Auditor <stefan.auditor@erdfisch.de>
 */

/**
 * Parse xml response
 *
 * @param XML
 * @return OBJECT
 */
function bbb_api_parse_response($xml) {

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

/**
 * Custom debugging
 */
function bbb_api_debug($var) {
  if (BBB_API_DEBUG) {
    if (module_exists('devel')) {
      dsm($var);
    }
    watchdog('big blue button debug', '%message', array(
      '%message' => '<pre>' . print_r($var, 1) . '</pre>',
    ), WATCHDOG_DEBUG);
  }
}

Functions

Namesort descending Description
bbb_api_debug Custom debugging
bbb_api_parse_response Parse xml response