public function convertToCommunityId($id)
    {
        switch (self::getTypeOfId($id)) {
            case USER_ID_TYPE_COMMUNITY:
                return $id;
            case USER_ID_TYPE_VANITY:
                $api_interface = new ISteamUser();
                return $api_interface->ResolveVanityURL($id);
            case USER_ID_TYPE_STEAM:
                return self::steamIdToCommunityId($id);
            default:
                return FALSE;
        }
    }
public function convertToCommunityId($id)
    {
        switch (self::getTypeOfId($id)) {
            case USER_ID_TYPE_COMMUNITY:
                return $id;
            case USER_ID_TYPE_VANITY:
                $api_interface = new ISteamUser();
                return $api_interface->ResolveVanityURL($id);
            case USER_ID_TYPE_STEAM:
                return self::steamIdToCommunityId($id);
            default:
                return FALSE;
        }
    }
public function convertToCommunityId ( $ id ) { switch ( self :: getTypeOfId ( $ id ) ) { case USER_ID_TYPE_COMMUNITY : return $ id ; case USER_ID_TYPE_VANITY : $ api_interface = new ISteamUser ( ) ; return $ api_interface -> ResolveVanityURL ( $ id ) ; case USER_ID_TYPE_STEAM : return self :: steamIdToCommunityId ( $ id ) ; default : return FALSE ; } }
Converts User ID into Community ID
@param mixed $id User ID
@return bool|null|string Returns Community ID or FALSE if supplied ID cannot be converted
Converts User ID into Community ID