示例#1
0
 protected static function init()
 {
     $settings = array();
     require_once "settings.php";
     self::$settings = $settings;
 }
示例#2
0
 /**
  * Initializes SPContactsExtAuth with SPOAuthClient as default
  * Override if you need a different client instead
  * Default options accepted are oauth_parms and oauth_urls both assoc arrays
  */
 public function __construct()
 {
     $urls = SPUserSettings::get_settings($this->url_key);
     $auth = SPUserSettings::get_settings($this->auth_key);
     $this->client = new SPOAuthClient();
     $this->client->auth_http_method = SPOAuthClient::HTTP_AUTH_HEADER;
     parent::__construct(array($auth, $urls));
 }