PHP Class Thruway\Registration

Mostra file Open project: voryx/thruway Class Usage Examples

Public Methods

Method Description
__construct ( Session $session, string $procedureName ) Constructor
createRegistrationFromRegisterMessage ( Session $session, Thruway\Message\RegisterMessage $msg ) : Registration Create Registration from RegisterMessage
errorAllPendingCalls ( ) This will send error messages on all pending calls This is used when a session disconnects before completing a call
getAllowMultipleRegistrations ( ) : boolean
getCallByRequestId ( integer $requestId ) : boolean Get call by request ID
getCurrentCallCount ( ) : integer Get current call count
getDiscloseCaller ( ) : mixed Get disclose caller
getId ( ) : mixed Get registration ID
getInvokeType ( ) : String
getProcedureName ( ) : string Get procedure name
getSession ( ) : Session Get seesion
getStatistics ( ) : array Get registration statistics
isAllowMultipleRegistrations ( ) : boolean
processCall ( Call $call ) Process call
removeCall ( Call $callToRemove ) Remove call
setAllowMultipleRegistrations ( boolean $allowMultipleRegistrations )
setDiscloseCaller ( mixed $discloseCaller ) Set disclose caller
setInvokeType ( String $type )

Method Details

__construct() public method

Constructor
public __construct ( Session $session, string $procedureName )
$session Session
$procedureName string

createRegistrationFromRegisterMessage() public static method

Create Registration from RegisterMessage
public static createRegistrationFromRegisterMessage ( Session $session, Thruway\Message\RegisterMessage $msg ) : Registration
$session Session
$msg Thruway\Message\RegisterMessage
return Registration

errorAllPendingCalls() public method

This will send error messages on all pending calls This is used when a session disconnects before completing a call

getAllowMultipleRegistrations() public method

getCallByRequestId() public method

Get call by request ID
public getCallByRequestId ( integer $requestId ) : boolean
$requestId integer
return boolean

getCurrentCallCount() public method

Get current call count
public getCurrentCallCount ( ) : integer
return integer

getDiscloseCaller() public method

Get disclose caller
public getDiscloseCaller ( ) : mixed
return mixed

getId() public method

Get registration ID
public getId ( ) : mixed
return mixed

getInvokeType() public method

public getInvokeType ( ) : String
return String

getProcedureName() public method

Get procedure name
public getProcedureName ( ) : string
return string

getSession() public method

Get seesion
public getSession ( ) : Session
return Session

getStatistics() public method

Get registration statistics
public getStatistics ( ) : array
return array

isAllowMultipleRegistrations() public method

processCall() public method

Process call
public processCall ( Call $call )
$call Call

removeCall() public method

Remove call
public removeCall ( Call $callToRemove )
$callToRemove Call

setAllowMultipleRegistrations() public method

public setAllowMultipleRegistrations ( boolean $allowMultipleRegistrations )
$allowMultipleRegistrations boolean

setDiscloseCaller() public method

Set disclose caller
public setDiscloseCaller ( mixed $discloseCaller )
$discloseCaller mixed

setInvokeType() public method

public setInvokeType ( String $type )
$type String