public function getUserByProviderId($provider, $identifier)
    {
        $this->oDb->select('user_id');
        $this->oDb->where('provider', $provider);
        $this->oDb->where('identifier', $identifier);

        $oUser = $this->oDb->get(NAILS_DB_PREFIX . 'user_social')->row();

        if (empty($oUser)) {
            return false;
        }

        return $this->oUserModel->getById($oUser->user_id);
    }
public function getUserByProviderId($provider, $identifier)
    {
        $this->oDb->select('user_id');
        $this->oDb->where('provider', $provider);
        $this->oDb->where('identifier', $identifier);

        $oUser = $this->oDb->get(NAILS_DB_PREFIX . 'user_social')->row();

        if (empty($oUser)) {
            return false;
        }

        return $this->oUserModel->getById($oUser->user_id);
    }
public function getUserByProviderId ( $ provider , $ identifier ) { $ this -> oDb -> select ( 'user_id' ) ; $ this -> oDb -> where ( 'provider' , $ provider ) ; $ this -> oDb -> where ( 'identifier' , $ identifier ) ; $ oUser = $ this -> oDb -> get ( NAILS_DB_PREFIX . 'user_social' ) -> row ( ) ; if ( empty ( $ oUser ) ) { return false ; } return $ this -> oUserModel -> getById ( $ oUser -> user_id ) ; }
Fetches a local user profile via a provider and provider ID

@param  string $provider   The provider to use
@param  string $identifier The provider's user ID

@return mixed               stdClass on success, false on failure
Fetches a local user profile via a provider and provider ID