PHP Class Protocol\FCGI\Record

Afficher le fichier Open project: lisachenko/protocol-fcgi Class Usage Examples

Protected Properties

Свойство Type Description
$requestId integer Identifies the FastCGI request to which the record belongs.
$reserved integer Reserved byte for future proposes
$type integer Identifies the FastCGI record type, i.e. the general function that the record performs.
$version integer Identifies the FastCGI protocol version.

Méthodes publiques

Méthode Description
__toString ( ) : string Returns the binary message representation of record
getContentData ( ) : string Returns the context data from the record
getContentLength ( ) : integer Returns the size of content length
getPaddingLength ( ) : integer Returns the size of padding length
getRequestId ( ) : integer
getType ( ) : integer
getVersion ( ) : integer Returns the version of record
setContentData ( $data ) Sets the content data and adjusts the length fields
setRequestId ( integer $requestId ) : Record
unpack ( string $data ) : static Unpacks the message from the binary data buffer

Méthodes protégées

Méthode Description
packPayload ( ) : string Implementation of packing the payload
unpackPayload ( Record $self, string $data ) Method to unpack the payload for the record.

Method Details

__toString() final public méthode

Returns the binary message representation of record
final public __toString ( ) : string
Résultat string

getContentData() public méthode

Returns the context data from the record
public getContentData ( ) : string
Résultat string

getContentLength() final public méthode

Returns the size of content length
final public getContentLength ( ) : integer
Résultat integer

getPaddingLength() final public méthode

Returns the size of padding length
final public getPaddingLength ( ) : integer
Résultat integer

getRequestId() public méthode

public getRequestId ( ) : integer
Résultat integer

getType() public méthode

public getType ( ) : integer
Résultat integer

getVersion() public méthode

Returns the version of record
public getVersion ( ) : integer
Résultat integer

packPayload() protected méthode

Implementation of packing the payload
protected packPayload ( ) : string
Résultat string

setContentData() public méthode

Sets the content data and adjusts the length fields
public setContentData ( $data )
$data

setRequestId() public méthode

public setRequestId ( integer $requestId ) : Record
$requestId integer
Résultat Record

unpack() final public static méthode

Unpacks the message from the binary data buffer
final public static unpack ( string $data ) : static
$data string Binary buffer with raw data
Résultat static

unpackPayload() protected static méthode

NB: Default implementation will be always called
protected static unpackPayload ( Record $self, string $data )
$self Record Instance of current frame
$data string Binary data

Property Details

$requestId protected_oe property

Identifies the FastCGI request to which the record belongs.
protected int $requestId
Résultat integer

$reserved protected_oe property

Reserved byte for future proposes
protected int $reserved
Résultat integer

$type protected_oe property

Identifies the FastCGI record type, i.e. the general function that the record performs.
protected int $type
Résultat integer

$version protected_oe property

Identifies the FastCGI protocol version.
protected int $version
Résultat integer