PHP 클래스 Sulu\Bundle\PreviewBundle\Websocket\PreviewMessageHandler

상속: implements Sulu\Component\Websocket\MessageDispatcher\MessageHandlerInterface
파일 보기 프로젝트 열기: sulu/sulu

공개 메소드들

메소드 설명
__construct ( Doctrine\ORM\EntityManagerInterface $entityManager, Sulu\Bundle\PreviewBundle\Preview\PreviewInterface $preview )
handle ( Ratchet\ConnectionInterface $conn, array $message, MessageHandlerContext $context )
onClose ( Ratchet\ConnectionInterface $conn, MessageHandlerContext $context )

보호된 메소드들

메소드 설명
execute ( MessageHandlerContext $context, $message )

비공개 메소드들

메소드 설명
reconnect ( ) Reconnect to mysql.
render ( MessageHandlerContext $context, $message )
start ( MessageHandlerContext $context, array $message ) : array Start preview with given parameters.
stop ( MessageHandlerContext $context ) : array Stop preview for given context.
update ( MessageHandlerContext $context, array $message ) : array Update preview with given parameter.
updateContext ( MessageHandlerContext $context, array $message ) : array Update preview-context with given parameter.

메소드 상세

__construct() 공개 메소드

public __construct ( Doctrine\ORM\EntityManagerInterface $entityManager, Sulu\Bundle\PreviewBundle\Preview\PreviewInterface $preview )
$entityManager Doctrine\ORM\EntityManagerInterface
$preview Sulu\Bundle\PreviewBundle\Preview\PreviewInterface

execute() 보호된 메소드

protected execute ( MessageHandlerContext $context, $message )
$context Sulu\Component\Websocket\MessageDispatcher\MessageHandlerContext

handle() 공개 메소드

public handle ( Ratchet\ConnectionInterface $conn, array $message, MessageHandlerContext $context )
$conn Ratchet\ConnectionInterface
$message array
$context Sulu\Component\Websocket\MessageDispatcher\MessageHandlerContext

onClose() 공개 메소드

public onClose ( Ratchet\ConnectionInterface $conn, MessageHandlerContext $context )
$conn Ratchet\ConnectionInterface
$context Sulu\Component\Websocket\MessageDispatcher\MessageHandlerContext