Lines Matching refs:instance

20     protected $instance = 1;  variable in helper_plugin_sfauth
36 * @param int $instance the salesforce configuration instance to use (1 to 3)
39 public static function getLoginURL($instance) { argument
40 $instance = (int) $instance;
41 if($instance < 1 || $instance > 3) $instance = 1;
42 return DOKU_URL . DOKU_SCRIPT . '?do=login&u=sf&p=sf&sf='.$instance;
84 * @param int $instance Salesforce config instance
87 public function init_by_oauth($instance) { argument
90 $instance = (int) $instance;
91 if($instance < 1 || $instance > 3) $instance = 1;
92 $this->instance = $instance;
112 if($this->oauth_finish($INPUT->get->str('code'), $instance)) {
130 $this->oauth_start($this->instance);
188 protected function oauth_start($instance) { argument
190 $instance = (int) $instance;
191 if($instance < 1 || $instance > 3) $instance = 1;
192 $this->instance = $instance;
199 'redirect_uri' => self::getLoginURL($this->instance),
211 * @param int $instance Salesforce instance to authenticate with
214 protected function oauth_finish($code, $instance) { argument
215 $instance = (int) $instance;
216 if($instance < 1 || $instance > 3) $instance = 1;
217 $this->instance = $instance;
225 'client_id' => $this->getIConf('consumer key', $this->instance),
226 'client_secret' => $this->getIConf('consumer secret', $this->instance),
227 'redirect_uri' => self::getLoginURL($this->instance)
256 'client_id' => $this->getIConf('consumer key', $this->instance),
257 'client_secret' => $this->getIConf('consumer secret', $this->instance)
311 $this->userdata['grps'][] = 'salesforce'.$this->instance;
362 $this->instance = $this->authdata['dokuwiki-instance'];
380 $this->authdata['dokuwiki-instance'] = $this->instance;
397 protected function getIConf($config, $instance) { argument
398 if($instance === 2 || $instance === 3) {
399 $postfix = ' '.$instance;