Lines Matching refs:this

26      * @see getOAuthService() use this to ensure it's intialized
33 * Auto register this plugin with the oAuth authentication plugin
39 $controller->register_hook('PLUGIN_OAUTH_BACKEND_REGISTER', 'AFTER', $this, 'handleRegister');
43 * Auto register this plugin with the oAuth authentication plugin
47 $event->data[$this->getServiceID()] = $this;
62 $this->getKey(),
63 $this->getSecret(),
70 $servicename = $this->getServiceID();
71 $serviceclass = $this->registerServiceClass();
82 $this->oAuth = $serviceFactory->createService(
86 $this->getScopes()
89 if ($this->oAuth === null) {
90 throw new Exception('Failed to initialize Service ' . $this->getLabel());
100 if ($this->oAuth === null) throw new Exception('OAuth Service not properly initialized');
101 return $this->oAuth;
113 $oauth = $this->getOAuthService();
141 $oauth = $this->getOAuthService();
180 $oauth = $this->getOAuthService();
226 $oauth = $this->getOAuthService();
235 $token = $oauth->getStorage()->retrieveAccessToken($this->getServiceID());
263 'href' => wl($ID, ['oauthlogin' => $this->getServiceID()], false, '&'),
264 'class' => 'plugin_oauth_' . $this->getServiceID(),
265 'style' => 'background-color: ' . $this->getColor(),
268 return '<a ' . $attr . '>' . $this->getSvgLogo() . '<span>' . $this->getLabel() . '</span></a> ';
277 * If there are required procedures for the service, you can implement them by overriding this.
313 * Defaults to ServiceID. You may want to override this.
319 return ucfirst($this->getServiceID());
332 $name = $this->getPluginName();
361 * Return the SVG of the logo for this service
369 $logo = DOKU_PLUGIN . $this->getPluginName() . '/logo.svg';
381 return $this->getConf('key');
391 return $this->getConf('secret');