protected static function init() { $settings = array(); require_once "settings.php"; self::$settings = $settings; }
/** * 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)); }