コード例 #1
0
 /**
  * Load user info from WebEx based on email address.
  *
  * @param string          $email Email address to search for.
  * @return stdClass|bool  object of user info, false if failed.
  */
 public static function search_webex_for_email($email)
 {
     $webex = new webex();
     $xml = xml_gen::get_user_for_email($email);
     $response = $webex->get_response($xml);
     if (!$response) {
         // Not found (or maybe another error).
         return false;
     }
     if (!isset($response['use:user']['0']['#']['use:webExId']['0']['#'])) {
         // Not found.
         return false;
     }
     $webexid = $response['use:user']['0']['#']['use:webExId']['0']['#'];
     return self::search_webex_for_webexid($webexid);
 }