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

Class: Net_DIME_Message

Source Location: /Net_DIME-1.0.0RC1/DIME.php

Class Overview


Net_DIME_Message enables you to manipulate and build a DIME encapsulated message.


Author(s):

Copyright:

  • 2002-2007 The PHP Group

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 350]
Net_DIME_Message enables you to manipulate and build a DIME encapsulated message.


[ Top ]


Class Variables

$cf =  0

[line 362]


Type:   mixed


[ Top ]

$currentPart =  -1

[line 354]


Type:   mixed


[ Top ]

$debug =  false

[line 364]


Type:   mixed


[ Top ]

$id =  null

[line 363]


Type:   mixed


[ Top ]

$mb =  1

[line 360]


Type:   mixed


[ Top ]

$me =  0

[line 361]


Type:   mixed


[ Top ]

$parts = array()

[line 353]


Type:   mixed


[ Top ]

$record_size =  4096

[line 352]


Type:   mixed


[ Top ]

$stream =  null

[line 355]


Type:   mixed


[ Top ]

$type =

[line 358]


Type:   mixed


[ Top ]

$typestr =

[line 359]


Type:   mixed


[ Top ]



Method Detail

Net_DIME_Message (Constructor)   [line 375]

Net_DIME_Message Net_DIME_Message( [resource $stream = null], [integer $record_size = 4096], [boolean $debug = false])

Constructor.
  • Todo: Integrate with PHP streams.

Parameters:

resource   $stream   —  A file pointer.
integer   $record_size   — 
boolean   $debug   — 

[ Top ]

decodeData   [line 631]

void decodeData( $data)

Decodes a DIME encode string of data.

Parameters:

   $data   — 

[ Top ]

doChunk   [line 423]

void doChunk( $data)


Parameters:

   $data   — 

[ Top ]

encodeData   [line 528]

void encodeData( string $data, [string $typestr = ''], [string $id = null], [integer $type = NET_DIME_TYPE_UNKNOWN])

Encodes data in DIME.

Parameters:

string   $data   — 
string   $typestr   — 
string   $id   — 
integer   $type   —  One of the NET_DIME_TYPE_* constants.

[ Top ]

encodeFile   [line 556]

void encodeFile( $filename, [ $typestr = ''], [ $id = null], [ $type = NET_DIME_TYPE_UNKNOWN])

Reads a file, creates records and writes them to the stream provided in the constructor.

Parameters:

   $filename   — 
   $typestr   — 
   $id   — 
   $type   — 

[ Top ]

endChunk   [line 431]

void endChunk( )


[ Top ]

endMessage   [line 445]

void endMessage( )


[ Top ]

read   [line 649]

void read( [ $buf = null])

Reads the stream and creates an array of records.

The method can accept the start of a previously read buffer. This is useful in situations where you need to read headers before discovering that the data is DIME encoded, such as in the case of reading an HTTP response.


Parameters:

   $buf   — 

[ Top ]

sendData   [line 466]

void sendData( string $data, [string $typestr = ''], [string $id = null], [integer $type = NET_DIME_TYPE_UNKNOWN])

Creates DIME records from a chunk of data and writes them to the stream provided in the constructor.

Parameters:

string   $data   — 
string   $typestr   — 
string   $id   — 
integer   $type   —  One of the NET_DIME_TYPE_* constants.

[ Top ]

sendEndMessage   [line 489]

void sendEndMessage( )


[ Top ]

sendFile   [line 504]

void sendFile( string $filename, [string $typestr = ''], [string $id = null], [integer $type = NET_DIME_TYPE_UNKNOWN])

Reads a file, creates records and writes them to the stream provided in the constructor.

Parameters:

string   $filename   —  A file name.
string   $typestr   — 
string   $id   — 
integer   $type   —  One of the NET_DIME_TYPE_* constants.

[ Top ]

startChunk   [line 407]

void startChunk( $data, [ $typestr = ''], [ $id = null], [ $type = NET_DIME_TYPE_UNKNOWN])


Parameters:

   $data   — 
   $typestr   — 
   $id   — 
   $type   — 

[ Top ]


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