Overview

Packages

  • None
  • thrift
    • transport

Classes

  • TBufferedTransport
  • TFramedTransport
  • THttpClient
  • TMemoryBuffer
  • TNullTransport
  • TPhpStream
  • TSocket
  • TSocketPool
  • TTransport
  • Overview
  • Package
  • Class
  • Tree

Class TPhpStream

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

TTransport
Extended by TPhpStream
Package: thrift\transport
Author: Mark Slee mcslee@facebook.com
Located at Horde/Thrift/thrift_root/transport/TPhpStream.php
Methods summary
public
# __construct( mixed $mode )
public
# open( )

Open the transport for reading/writing

Open the transport for reading/writing

Throws

TTransportException
if cannot open
public
# close( )

Close the transport.

Close the transport.

public boolean
# isOpen( )

Whether this transport is open.

Whether this transport is open.

Returns

boolean
true if open
public string
# read( integer $len )

Read some data into the array.

Read some data into the array.

Parameters

$len
How much to read

Returns

string
The data that has been read

Throws

TTransportException
if cannot read any more data
public
# write( string $buf )

Writes the given data out.

Writes the given data out.

Parameters

$buf
The data to write

Throws

TTransportException
if writing fails
public
# flush( )

Flushes any pending data out of a buffer

Flushes any pending data out of a buffer

Throws

TTransportException
if a writing error occurs

Overrides

TTransport::flush()
Methods inherited from TTransport
readAll()
Constants summary
integer MODE_R
# 1
integer MODE_W
# 2
API documentation generated by ApiGen