Exemplo n.º 1
0
Arquivo: Session.php Projeto: n8b/VMN
 /**
  * Removes auth records that signify that user is connected to the provider
  *
  * @param \Elgg\HybridAuth\Provider $provider Provider
  * @return bool
  */
 public function removeAuthRecord(Provider $provider)
 {
     if ($this->handle == Session::DEFAULT_HANDLE) {
         elgg_trigger_plugin_hook('hybridauth:deauthenticate', $provider->getName(), array('provider' => $provider, 'entity' => $this->user));
     } else {
         elgg_trigger_plugin_hook('hybridauth:deauthenticate:session', $provider->getName(), array('provider' => $provider, 'session' => $this));
     }
     return elgg_unset_plugin_user_setting($this->getAuthRecordName($provider), $this->user->guid, 'elgg_hybridauth');
 }
Exemplo n.º 2
0
 public function getName($key)
 {
     return $this->namespace . '_' . parent::getName($key);
 }
Exemplo n.º 3
0
 /**
  * @return string
  */
 public function getProviderName()
 {
     return parent::getName();
 }