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

Class: Net_DIME_Message

Source Location: /Net_DIME-1.0.2/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 370]
Net_DIME_Message enables you to manipulate and build a DIME encapsulated message.


[ Top ]


Class Variables

$cf =  0

[line 382]


Type:   mixed


[ Top ]

$currentPart =  -1

[line 374]


Type:   mixed


[ Top ]

$debug =  false

[line 384]


Type:   mixed


[ Top ]

$id =  null

[line 383]


Type:   mixed


[ Top ]

$mb =  1

[line 380]


Type:   mixed


[ Top ]

$me =  0

[line 381]


Type:   mixed


[ Top ]

$parts = array()

[line 373]


Type:   mixed


[ Top ]

$record_size =  4096

[line 372]


Type:   mixed


[ Top ]

$stream =  null

[line 375]


Type:   mixed


[ Top ]

$type =

[line 378]


Type:   mixed


[ Top ]

$typestr =

[line 379]


Type:   mixed


[ Top ]



Method Detail

Net_DIME_Message (Constructor)   [line 395]

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 651]

void decodeData( &$data)

Decodes a DIME encode string of data.

Parameters:

   &$data   — 

[ Top ]

doChunk   [line 443]

void doChunk( $data)


Parameters:

   $data   — 

[ Top ]

encodeData   [line 548]

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 576]

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 451]

void endChunk( )


[ Top ]

endMessage   [line 465]

void endMessage( )


[ Top ]

read   [line 669]

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 486]

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 509]

void sendEndMessage( )


[ Top ]

sendFile   [line 524]

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 427]

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:41:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.