\TPhpStream

Php stream transport. Reads to and writes from the php standard streams php://input and php://output

Summary

Methods
Properties
Constants
isOpen()
open()
close()
read()
readAll()
write()
flush()
__construct()
No public properties found
MODE_R
MODE_W
No protected methods found
No protected properties found
N/A
No private methods found
$inStream_
$outStream_
$read_
$write_
N/A

Constants

MODE_R

MODE_R

MODE_W

MODE_W

Properties

$inStream_

$inStream_ : 

Type

$outStream_

$outStream_ : 

Type

$read_

$read_ : 

Type

$write_

$write_ : 

Type

Methods

isOpen()

isOpen() : boolean

Whether this transport is open.

Returns

boolean —

true if open

open()

open() 

Open the transport for reading/writing

close()

close() 

Close the transport.

read()

read(integer  $len) : string

Read some data into the array.

Parameters

integer $len

How much to read

Returns

string —

The data that has been read

readAll()

readAll(  $len) : string

Guarantees that the full amount of data is read.

Parameters

$len

Throws

\TTransportException

if cannot read data

Returns

string —

The data, of exact length

write()

write(string  $buf) 

Writes the given data out.

Parameters

string $buf

The data to write

flush()

flush() 

Flushes any pending data out of a buffer

__construct()

__construct(  $mode) 

Parameters

$mode