コード例 #1
0
ファイル: UserSettings.php プロジェクト: bilel99/oge
 protected static function init()
 {
     $settings = array();
     require_once "settings.php";
     self::$settings = $settings;
 }
コード例 #2
0
ファイル: SPContacts.base.php プロジェクト: bilel99/oge
 /**
  * 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));
 }