PHP Class Gpf_Rpc_Server

Inheritance: extends Gpf_Object
Datei anzeigen Open project: fubralimited/php-oara Class Usage Examples

Public Methods

Method Description
__construct ( )
execute ( $request = '' ) : Gpf_Rpc_Serializable
executeAndEcho ( $request = '' ) Return response to standard output
getRequestsArray ( Gpf_Rpc_Params $params )
run ( Gpf_Rpc_Params $params ) : Gpf_Rpc_Serializable Executes multi request
syncTime ( Gpf_Rpc_Params $params ) : Gpf_Rpc_Action Set time offset between client and server and store it to session Offset is computed as client time - server time

Protected Methods

Method Description
callServiceMethod ( Gpf_Rpc_Params $params )

Private Methods

Method Description
decodeRequest ( $requestData )
encodeResponse ( Gpf_Rpc_Serializable $response )
executeRequest ( Gpf_Rpc_Params $params ) : Gpf_Rpc_Serializable
getEncoderHandlerType ( array $requestData ) : string Compute correct handler type for server response
initDatabaseLogger ( )
isFormHandler ( $requestData, $type, $handler )
isFormRequest ( $request )
isStandardRequestUsed ( $requestArray )
parseRequestDataFromPost ( $data )
setDecoder ( $request )
setEncoder ( Gpf_Rpc_Params $params )
setStandardRequest ( )

Method Details

__construct() public method

public __construct ( )

callServiceMethod() protected method

protected callServiceMethod ( Gpf_Rpc_Params $params )
$params Gpf_Rpc_Params

execute() public method

public execute ( $request = '' ) : Gpf_Rpc_Serializable
return Gpf_Rpc_Serializable

executeAndEcho() public method

Return response to standard output
public executeAndEcho ( $request = '' )

getRequestsArray() public method

public getRequestsArray ( Gpf_Rpc_Params $params )
$params Gpf_Rpc_Params

run() public method

Executes multi request
public run ( Gpf_Rpc_Params $params ) : Gpf_Rpc_Serializable
$params Gpf_Rpc_Params
return Gpf_Rpc_Serializable

syncTime() public method

Set time offset between client and server and store it to session Offset is computed as client time - server time
public syncTime ( Gpf_Rpc_Params $params ) : Gpf_Rpc_Action
$params Gpf_Rpc_Params
return Gpf_Rpc_Action