The EuroCMS Settings Module

authorversiondate
Imri Palojadraft24-07-2022

The Setting modules allows components to store key value data in the database, securely.

The settings class allows to SET and GET values. It will auto detect the name and component type, and use them as a parameter for the DB query.

Only the Files module is allowed to access Files saved data.

Contemplate

  • Make this a generic named key value, with type and such?

The variables in EuroEditor, are saved as in object in the database, with the first value hard set.

Make this the "Value" module. So that every component can save any and all things in here. Not just settings items?

DB Structure

setting_iddomain_iduser_idgroup_iddescriptiontypecomponentcomponent_namekeyvalueuser_lockstatus
111settingsmodulesFilesSTORAGE_HANDLERLocalenabled
211settingsmodulesEuroEditorFORMATmarkdownenabled
311settingsfunctionIPInfoAPI_KEYzxcvasdfqwenabled
411settingsfunctionHetrixToolsAPI_KEYqwertyenabled
511settingslibrariesexiftoolINSTALLED_BINARYtrueenabled
611settingscoreSearchENGINESolrenabled
711settingsthemesSkeletonSKELETON_VERSION2.0.4enabled
811settingswidgetsNewUbuntuReleaseLATEST_VERSION22.04enabled
911variablemodulesEuroEditorUBUNTU_LTS_VERSION22.04
1011modulesFormsINPUTS
1111modulesapiDEFAULT_OUTPUTyaml
1211modulesapiYAML_REGEX{}:|>?<
1311

Permissions

settings_addThe ability to add a new settings data
setting_modifyThe ability to modify existing settings data
settings_deleteThe ability to delete existing settings data