PHP Class Thruway\Registration

Afficher le fichier Open project: voryx/thruway Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

createRegistrationFromRegisterMessage() public static méthode

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

errorAllPendingCalls() public méthode

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

getAllowMultipleRegistrations() public méthode

getCallByRequestId() public méthode

Get call by request ID
public getCallByRequestId ( integer $requestId ) : boolean
$requestId integer
Résultat boolean

getCurrentCallCount() public méthode

Get current call count
public getCurrentCallCount ( ) : integer
Résultat integer

getDiscloseCaller() public méthode

Get disclose caller
public getDiscloseCaller ( ) : mixed
Résultat mixed

getId() public méthode

Get registration ID
public getId ( ) : mixed
Résultat mixed

getInvokeType() public méthode

public getInvokeType ( ) : String
Résultat String

getProcedureName() public méthode

Get procedure name
public getProcedureName ( ) : string
Résultat string

getSession() public méthode

Get seesion
public getSession ( ) : Session
Résultat Session

getStatistics() public méthode

Get registration statistics
public getStatistics ( ) : array
Résultat array

isAllowMultipleRegistrations() public méthode

processCall() public méthode

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

removeCall() public méthode

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

setAllowMultipleRegistrations() public méthode

public setAllowMultipleRegistrations ( boolean $allowMultipleRegistrations )
$allowMultipleRegistrations boolean

setDiscloseCaller() public méthode

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

setInvokeType() public méthode

public setInvokeType ( String $type )
$type String