PHP Class Thruway\Realm

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

Méthodes publiques

Méthode Description
__construct ( string $realmName ) Constructor
addModule ( Thruway\Module\RealmModuleInterface $module )
addSession ( Session $session )
getBroker ( ) : Broker Get broker
getDealer ( ) : Dealer Get dealer
getRealmName ( ) : mixed Get realm name
getSessions ( ) : SplObjectStorage Get list session
getSubscribedRealmEvents ( ) : array Events that we'll be listening on
handleAbortMessage ( MessageEvent $event )
handleAuthenticateMessage ( MessageEvent $event )
handleGoodbyeMessage ( MessageEvent $event )
handleLeaveRealm ( LeaveRealmEvent $event )
handleSendWelcomeMessage ( MessageEvent $event )
leave ( Session $session ) Process on session leave
managerGetSessions ( ) : array Get list sessions
processGoodbye ( Session $session, Thruway\Message\Message $msg )
publishMeta ( string $topicName, mixed $arguments, mixed $argumentsKw = null, mixed $options = null ) Publish meta

Private Methods

Méthode Description
processAbort ( Session $session, Thruway\Message\Message $msg ) Process AbortMessage
processAuthenticate ( Session $session, Thruway\Message\AuthenticateMessage $msg ) Process AuthenticateMessage
processSendWelcome ( Session $session, Thruway\Message\WelcomeMessage $msg ) Process HelloMessage

Method Details

__construct() public méthode

Constructor
public __construct ( string $realmName )
$realmName string

addModule() public méthode

public addModule ( Thruway\Module\RealmModuleInterface $module )
$module Thruway\Module\RealmModuleInterface

addSession() public méthode

public addSession ( Session $session )
$session Session

getBroker() public méthode

Get broker
public getBroker ( ) : Broker
Résultat Thruway\Role\Broker

getDealer() public méthode

Get dealer
public getDealer ( ) : Dealer
Résultat Thruway\Role\Dealer

getRealmName() public méthode

Get realm name
public getRealmName ( ) : mixed
Résultat mixed

getSessions() public méthode

Get list session
public getSessions ( ) : SplObjectStorage
Résultat SplObjectStorage

getSubscribedRealmEvents() public méthode

Events that we'll be listening on
public getSubscribedRealmEvents ( ) : array
Résultat array

handleAbortMessage() public méthode

public handleAbortMessage ( MessageEvent $event )
$event Thruway\Event\MessageEvent

handleAuthenticateMessage() public méthode

public handleAuthenticateMessage ( MessageEvent $event )
$event Thruway\Event\MessageEvent

handleGoodbyeMessage() public méthode

public handleGoodbyeMessage ( MessageEvent $event )
$event Thruway\Event\MessageEvent

handleLeaveRealm() public méthode

public handleLeaveRealm ( LeaveRealmEvent $event )
$event Thruway\Event\LeaveRealmEvent

handleSendWelcomeMessage() public méthode

public handleSendWelcomeMessage ( MessageEvent $event )
$event Thruway\Event\MessageEvent

leave() public méthode

Process on session leave
public leave ( Session $session )
$session Session

managerGetSessions() public méthode

todo: this is used by some tests - is leftover from the old manager stuff
public managerGetSessions ( ) : array
Résultat array

processGoodbye() public méthode

public processGoodbye ( Session $session, Thruway\Message\Message $msg )
$session Session
$msg Thruway\Message\Message

publishMeta() public méthode

Publish meta
public publishMeta ( string $topicName, mixed $arguments, mixed $argumentsKw = null, mixed $options = null )
$topicName string
$arguments mixed
$argumentsKw mixed
$options mixed