Overview

Packages

  • None
  • thrift
    • transport

Classes

  • Argument
  • ContainerType
  • FacebookBase
  • FacebookService_aliveSince_args
  • FacebookService_aliveSince_result
  • FacebookService_getCounter_args
  • FacebookService_getCounter_result
  • FacebookService_getCounters_args
  • FacebookService_getCounters_result
  • FacebookService_getCpuProfile_args
  • FacebookService_getCpuProfile_result
  • FacebookService_getLimitedReflection_args
  • FacebookService_getLimitedReflection_result
  • FacebookService_getName_args
  • FacebookService_getName_result
  • FacebookService_getOption_args
  • FacebookService_getOption_result
  • FacebookService_getOptions_args
  • FacebookService_getOptions_result
  • FacebookService_getStatus_args
  • FacebookService_getStatus_result
  • FacebookService_getStatusDetails_args
  • FacebookService_getStatusDetails_result
  • FacebookService_getVersion_args
  • FacebookService_getVersion_result
  • FacebookService_reinitialize_args
  • FacebookService_setOption_args
  • FacebookService_setOption_result
  • FacebookService_shutdown_args
  • FacebookServiceClient
  • FacebookServiceProcessor
  • fb_status
  • Method
  • Service
  • SimpleType
  • TBase
  • TBinaryProtocol
  • TBinaryProtocolAccelerated
  • TBinaryProtocolFactory
  • ThriftType
  • TMessageType
  • TProtocol
  • TType
  • TTypeTag

Interfaces

  • FacebookServiceIf
  • Horde_Thrift
  • TProtocolFactory

Exceptions

  • TApplicationException
  • TException
  • TProtocolException
  • TTransportException

Functions

  • apc_fetch
  • apc_store
  • Overview
  • Package
  • Class
  • Tree

Class TProtocol

Protocol base class module.

Direct known subclasses

TBinaryProtocol

Indirect known subclasses

TBinaryProtocolAccelerated
Abstract
Located at Horde/Thrift/thrift_root/protocol/TProtocol.php
Methods summary
public TTransport
# getTransport( )

Accessor for transport

Accessor for transport

Returns

TTransport
abstract public
# writeMessageBegin( string $name, integer $type, integer $seqid )

Writes the message header

Writes the message header

Parameters

$name
Function name
$type
message type TMessageType::CALL or TMessageType::REPLY
$seqid
The sequence id of this message
abstract public
# writeMessageEnd( )

Close the message

Close the message

abstract public integer
# writeStructBegin( string $name )

Writes a struct header.

Writes a struct header.

Parameters

$name
Struct name

Returns

integer
How many bytes written

Throws

TException
on write error
abstract public integer
# writeStructEnd( )

Close a struct.

Close a struct.

Returns

integer
How many bytes written

Throws

TException
on write error
abstract public
# writeFieldBegin( mixed $fieldName, mixed $fieldType, mixed $fieldId )
abstract public
# writeFieldEnd( )
abstract public
# writeFieldStop( )
abstract public
# writeMapBegin( mixed $keyType, mixed $valType, mixed $size )
abstract public
# writeMapEnd( )
abstract public
# writeListBegin( mixed $elemType, mixed $size )
abstract public
# writeListEnd( )
abstract public
# writeSetBegin( mixed $elemType, mixed $size )
abstract public
# writeSetEnd( )
abstract public
# writeBool( mixed $bool )
abstract public
# writeByte( mixed $byte )
abstract public
# writeI16( mixed $i16 )
abstract public
# writeI32( mixed $i32 )
abstract public
# writeI64( mixed $i64 )
abstract public
# writeDouble( mixed $dub )
abstract public
# writeString( mixed $str )
abstract public
# readMessageBegin( string & $name, integer & $type, mixed & $seqid )

Reads the message header

Reads the message header

Parameters

$name
Function name
$type
message type TMessageType::CALL or TMessageType::REPLY
$seqid

Parem

int $seqid The sequence id of this message
abstract public
# readMessageEnd( )

Read the close of message

Read the close of message

abstract public
# readStructBegin( mixed & $name )
abstract public
# readStructEnd( )
abstract public
# readFieldBegin( mixed & $name, mixed & $fieldType, mixed & $fieldId )
abstract public
# readFieldEnd( )
abstract public
# readMapBegin( mixed & $keyType, mixed & $valType, mixed & $size )
abstract public
# readMapEnd( )
abstract public
# readListBegin( mixed & $elemType, mixed & $size )
abstract public
# readListEnd( )
abstract public
# readSetBegin( mixed & $elemType, mixed & $size )
abstract public
# readSetEnd( )
abstract public
# readBool( mixed & $bool )
abstract public
# readByte( mixed & $byte )
abstract public
# readI16( mixed & $i16 )
abstract public
# readI32( mixed & $i32 )
abstract public
# readI64( mixed & $i64 )
abstract public
# readDouble( mixed & $dub )
abstract public
# readString( mixed & $str )
public
# skip( TType $type )

The skip function is a utility to parse over unrecognized date without causing corruption.

The skip function is a utility to parse over unrecognized date without causing corruption.

Parameters

$type
What type is it
public static
# skipBinary( TTransport $itrans, integer $type )

Utility for skipping binary data

Utility for skipping binary data

Parameters

$itrans
TTransport object
$type
Field type
Properties summary
public static string $TBINARYPROTOCOLACCELERATED
# 'TBinaryProtocolAccelerated'
API documentation generated by ApiGen