hw_InsertObject
<<<
hw_mapid hw_Modifyobject
>>>

8.44 Hyperwave
8 Référence des fonctions
 Manuel PHP

Introduction
Pré-requis
Installation
Intégration avec Apache
Configuration à l'exécution
Types de ressources
Constantes pré-définies
A faire
hw_Array2Objrec
hw_changeobject
hw_Children
hw_ChildrenObj
hw_Close
hw_Connect
hw_connection_info
hw_cp
hw_Deleteobject
hw_DocByAnchor
hw_DocByAnchorObj
hw_Document_Attributes
hw_Document_BodyTag
hw_Document_Content
hw_Document_SetContent
hw_Document_Size
hw_dummy
hw_EditText
hw_Error
hw_ErrorMsg
hw_Free_Document
hw_GetAnchors
hw_GetAnchorsObj
hw_GetAndLock
hw_GetChildColl
hw_GetChildCollObj
hw_GetChildDocColl
hw_GetChildDocCollObj
hw_GetObject
hw_GetObjectByQuery
hw_GetObjectByQueryColl
hw_GetObjectByQueryCollObj
hw_GetObjectByQueryObj
hw_GetParents
hw_GetParentsObj
hw_getrellink
hw_GetRemote
hw_getremotechildren
hw_GetSrcByDestObj
hw_GetText
hw_getusername
hw_Identify
hw_InCollections
hw_Info
hw_InsColl
hw_InsDoc
hw_insertanchors
hw_InsertDocument
hw_InsertObject
->hw_mapid
hw_Modifyobject
hw_mv
hw_New_Document
hw_objrec2array
hw_Output_Document
hw_pConnect
hw_PipeDocument
hw_Root
hw_setlinkroot
hw_stat
hw_Unlock
hw_Who

8.44.58 hw_mapid()Représente un id global en un id virtuel local

[ Exemples avec hw_mapid ]   PHP 3>= 3.0.13, PHP 4

int  hw_mapid ( int   connection , int   server_id , int   object_id )

hw_mapid représente l'id d'un objet global de n'importe quel serveur Hyperwave, même si vous ne vous y êtes pas connecté avec hw_connect , avec un id d'objet local virtuel. Cet id d'objet local peut alors être utilisé comme n'importe quel id d'objet : par exemple on peut obtenir l'enregistrement d'objet avec la fonction hw_getobject . L'id du serveur est la première partie de l'id global (GOid) de l'objet, qui est en fait une adresse IP.

Note : afin d'utiliser cette fonction, vous devez lever le flag F_DISTRIBUTED, ce qui ne peut être fait qu'à la compilation. Par défaut, il n'est pas levé. Lisez les commentaires de début du fichier hg_comm.c

<< hw_mapid >>
hw_InsertObject Hyperwave hw_Modifyobject