\App\ConfigModule\ModelsWebSocketManager

WebSocket configuration manager

Summary

Methods
Properties
Constants
__construct()
delete()
getServiceFile()
save()
createMessaging()
createService()
list()
load()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(\App\ConfigModule\Models\GenericManager  genericManager, \App\ConfigModule\Models\JsonFileManager  fileManager, \App\ConfigModule\Models\JsonSchemaManager  schemaManager) : 

Constructor

Parameters

\App\ConfigModule\Models\GenericManager genericManager

Generic configuration manager

\App\ConfigModule\Models\JsonFileManager fileManager

JSON file manager

\App\ConfigModule\Models\JsonSchemaManager schemaManager

JSON schema manager

Returns

delete()

delete(  id) : 

Delete a configuration

Parameters

id

WebSocket interface ID

Throws

\App\ConfigModule\Models\JsonException

Returns

getServiceFile()

getServiceFile(  instanceName) : string|null

Get WebSocket service file name by instance name

Parameters

instanceName

Instance name

Throws

\App\ConfigModule\Models\JsonException

Returns

string|null —

WebSocket service file name

save()

save(mixed||string|int  array) : 

Save configuration

Parameters

mixed||string|int array

Websocket settings

Throws

\App\ConfigModule\Models\JsonException

Returns

createMessaging()

createMessaging(mixed||string|int  values, mixed||string|int  instances) : mixed||string|int

Create a messaging configuration

Parameters

mixed||string|int values

Values from form

mixed||string|int instances

Names of messaging and service instances

Returns

mixed||string|int —

Messaging configuration

createService()

createService(mixed||string|int  values, mixed||string|int  instances) : mixed||string|int

Create a service configuration

Parameters

mixed||string|int values

Values from form

mixed||string|int instances

Names of messaging and service instances

Returns

mixed||string|int —

Service configuration

list()

list() : mixed||string|int

Get WebSocket instances

Throws

\App\ConfigModule\Models\JsonException

Returns

mixed||string|int —

WebSocket instances

load()

load(  id) : mixed||string|int

Load a configuration

Parameters

id

WebSocket interface ID

Throws

\App\ConfigModule\Models\JsonException

Returns

mixed||string|int —

Array for form