/** * 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'); }
public function getName($key) { return $this->namespace . '_' . parent::getName($key); }
/** * @return string */ public function getProviderName() { return parent::getName(); }