\App\ConfigModule\ModelsWebSocketManager

WebSocket configuration manager

Summary

Methods
Properties
Constants
__construct()
delete()
getServiceFile()
save()
list()
load()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
createMessaging()
createService()
$components
$fileNames
$genericManager
$instances
$schemaManager
N/A

Properties

$components

$components : string[]

Type

normal — WebSocket components

$fileNames

$fileNames : string[]

Type

normal — WebSocket messaging and service file names

$genericManager

$genericManager : \App\ConfigModule\Models\GenericManager

Type

normal — Generic configuration manager

$instances

$instances : array<string,string|null>

Type

normal — WebSocket instances

$schemaManager

$schemaManager : \App\ConfigModule\Models\ComponentSchemaManager

Type

normal — JSON schema manager

Methods

__construct()

__construct(\App\ConfigModule\Models\GenericManager  $genericManager, \App\ConfigModule\Models\ComponentSchemaManager  $schemaManager) : mixed

Constructor

Parameters

\App\ConfigModule\Models\GenericManager $genericManager

Generic configuration manager

\App\ConfigModule\Models\ComponentSchemaManager $schemaManager

JSON schema manager

Returns

mixed

delete()

delete(int  $id) : void

Deletes a configuration

Parameters

int $id

WebSocket interface ID

Throws

\Nette\Utils\JsonException

getServiceFile()

getServiceFile(string  $instanceName) : string|null

Gets WebSocket service file name by instance name

Parameters

string $instanceName

Instance name

Throws

\Nette\Utils\JsonException

Returns

string|null —

WebSocket service file name

save()

save(array  $array) : void

Saves the configuration

Parameters

array $array

Websocket settings

Throws

\Nette\Utils\JsonException

list()

list() : array

Gets WebSocket instances

Throws

\Nette\Utils\JsonException

Returns

array —

WebSocket instances

load()

load(int  $id) : array

Loads a configuration

Parameters

int $id

WebSocket interface ID

Throws

\Nette\Utils\JsonException

Returns

array —

Array for form

createMessaging()

createMessaging(array  $values) : array

Creates a messaging configuration

Parameters

array $values

Values from form

Returns

array —

Messaging configuration

createService()

createService(array  $values) : array

Creates a service configuration

Parameters

array $values

Values from the form

Returns

array —

Service configuration