PHP 클래스 Thruway\Realm

파일 보기 프로젝트 열기: voryx/thruway 1 사용 예제들

공개 메소드들

메소드 설명
__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

비공개 메소드들

메소드 설명
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

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $realmName )
$realmName string

addModule() 공개 메소드

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

addSession() 공개 메소드

public addSession ( Session $session )
$session Session

getBroker() 공개 메소드

Get broker
public getBroker ( ) : Broker
리턴 Thruway\Role\Broker

getDealer() 공개 메소드

Get dealer
public getDealer ( ) : Dealer
리턴 Thruway\Role\Dealer

getRealmName() 공개 메소드

Get realm name
public getRealmName ( ) : mixed
리턴 mixed

getSessions() 공개 메소드

Get list session
public getSessions ( ) : SplObjectStorage
리턴 SplObjectStorage

getSubscribedRealmEvents() 공개 메소드

Events that we'll be listening on
public getSubscribedRealmEvents ( ) : array
리턴 array

handleAbortMessage() 공개 메소드

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

handleAuthenticateMessage() 공개 메소드

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

handleGoodbyeMessage() 공개 메소드

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

handleLeaveRealm() 공개 메소드

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

handleSendWelcomeMessage() 공개 메소드

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

leave() 공개 메소드

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

managerGetSessions() 공개 메소드

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

processGoodbye() 공개 메소드

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

publishMeta() 공개 메소드

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