applications/dashboard/controllers/class.profilecontroller.php
public function Connections($UserReference = '', $Username = '') {
      $this->Permission('Garden.SignIn.Allow');
      $this->GetUserInfo($UserReference, $Username, '', TRUE);
      $UserID = GetValueR('User.UserID', $this);
      $this->_SetBreadcrumbs(T('Social'), UserUrl($this->User, '', 'connections'));
      
      $PModel = new Gdn_AuthenticationProviderModel();
      $Providers = $PModel->GetProviders();
      
      $this->SetData('_Providers', $Providers);
      $this->SetData('Connections', array());
      $this->EventArguments['User'] = $this->User;
      $this->FireEvent('GetConnections');
      
      // Add some connection information.
      foreach ($this->Data['Connections'] as &$Row) {
         $Provider = GetValue($Row['ProviderKey'], $Providers, array());
         
         TouchValue('Connected', $Row, !is_null(GetValue('UniqueID', $Provider, NULL)));
      }
      
      $this->CanonicalUrl(UserUrl($this->User, '', 'connections'));
      $this->Title(T('Social'));
      require_once $this->FetchViewLocation('connection_functions');
      $this->Render();
   }
public function Connections($UserReference = '', $Username = '') {
      $this->Permission('Garden.SignIn.Allow');
      $this->GetUserInfo($UserReference, $Username, '', TRUE);
      $UserID = GetValueR('User.UserID', $this);
      $this->_SetBreadcrumbs(T('Social'), UserUrl($this->User, '', 'connections'));
      
      $PModel = new Gdn_AuthenticationProviderModel();
      $Providers = $PModel->GetProviders();
      
      $this->SetData('_Providers', $Providers);
      $this->SetData('Connections', array());
      $this->EventArguments['User'] = $this->User;
      $this->FireEvent('GetConnections');
      
      // Add some connection information.
      foreach ($this->Data['Connections'] as &$Row) {
         $Provider = GetValue($Row['ProviderKey'], $Providers, array());
         
         TouchValue('Connected', $Row, !is_null(GetValue('UniqueID', $Provider, NULL)));
      }
      
      $this->CanonicalUrl(UserUrl($this->User, '', 'connections'));
      $this->Title(T('Social'));
      require_once $this->FetchViewLocation('connection_functions');
      $this->Render();
   }
public function Connections ( $ UserReference = '' , $ Username = '' ) { $ this -> Permission ( 'Garden.SignIn.Allow' ) ; $ this -> GetUserInfo ( $ UserReference , $ Username , '' , TRUE ) ; $ UserID = GetValueR ( 'User.UserID' , $ this ) ; $ this -> _SetBreadcrumbs ( T ( 'Social' ) , UserUrl ( $ this -> User , '' , 'connections' ) ) ; $ PModel = new Gdn_AuthenticationProviderModel ( ) ; $ Providers = $ PModel -> GetProviders ( ) ; $ this -> SetData ( '_Providers' , $ Providers ) ; $ this -> SetData ( 'Connections' , array ( ) ) ; $ this -> EventArguments [ 'User' ] = $ this -> User ; $ this -> FireEvent ( 'GetConnections' ) ; // Add some connection information. foreach ( $ this -> Data [ 'Connections' ] as & $ Row ) { $ Provider = GetValue ( $ Row [ 'ProviderKey' ] , $ Providers , array ( ) ) ; TouchValue ( 'Connected' , $ Row , ! is_null ( GetValue ( 'UniqueID' , $ Provider , NULL ) ) ) ; } $ this -> CanonicalUrl ( UserUrl ( $ this -> User , '' , 'connections' ) ) ; $ this -> Title ( T ( 'Social' ) ) ; require_once $ this -> FetchViewLocation ( 'connection_functions' ) ; $ this -> Render ( ) ; }
Lists the connections to other sites.

@param int|string $UserReference
@param string $Username
@since 2.1
Lists the connections to other sites .