\App\ConfigModule\ModelsComponentManager

Component configuration manager

Summary

Methods
Properties
Constants
__construct()
add()
delete()
load()
list()
save()
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\JsonFileManager  fileManager) : 

Constructor

Parameters

\App\ConfigModule\Models\JsonFileManager fileManager

JSON file manager

Returns

add()

add(mixed||string|int  array) : 

Add new component

Parameters

mixed||string|int array

Component's settings

Throws

\App\ConfigModule\Models\JsonException

Returns

delete()

delete(  id) : 

Delete a component

Parameters

id

Component ID

Throws

\App\ConfigModule\Models\JsonException

Returns

load()

load(  id) : mixed||string|int

Load a component from main configuration JSON

Parameters

id

Component ID

Throws

\App\ConfigModule\Models\JsonException

Returns

mixed||string|int —

Array for form

list()

list() : mixed||string|int

Load components from main configuration JSON

Throws

\App\ConfigModule\Models\JsonException

Returns

mixed||string|int —

Array for form

save()

save(mixed||string|int  components,   id) : 

Save components setting

Parameters

mixed||string|int components

Components settings

id

Component ID

Throws

\App\ConfigModule\Models\JsonException

Returns