Net_HL7
[ class tree: Net_HL7 ] [ index: Net_HL7 ] [ all elements ]

Class: Net_HL7_Connection

Source Location: /Net_HL7-0.1.1/Net/HL7/Connection.php

Class Overview


Usage:


Author(s):

Version:

  • 0.10

Methods


Inherited Variables

Inherited Methods


Class Details

[line 63]
Usage:

$req =& new Net_HL7_Message();

... set some request attributes

$res = $conn->send($req);

$conn->close(); </code>

The Net_HL7_Connection object represents the tcp connection to the HL7 message broker. The Connection has only two useful methods (apart from the constructor), send and close. The 'send' method takes a Net_HL7_Message object as argument, and also returns a Net_HL7_Message object. The send method can be used more than once, before the connection is closed.

The Connection object holds the following fields:

_MESSAGE_PREFIX

The prefix to be sent to the HL7 server to initiate the message. Defaults to \013.

_MESSAGE_SUFFIX End of message signal for HL7 server. Defaults to \034\015.



[ Top ]


Method Detail

Net_HL7_Connection (Constructor)   [line 79]

boolean Net_HL7_Connection( mixed $host, int $port)

Creates a connection to a HL7 server, or returns undef when a connection could not be established.are:

Parameters:

mixed   $host   —  Host to connect to
int   $port   —  Port to connect to

[ Top ]

close   [line 155]

boolean close( )

Close the connection.
  • Access: public

[ Top ]

send   [line 123]

object Instance send( object Instance $req)

Sends a Net_HL7_Message object over this connection.

Parameters:

object Instance   $req   —  of Net_HL7_Message

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:32:34 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.