The constructor.
ConfigSystem
ConfigSystem
(string $program)
-
string
$program: The name of the program to setup configuration for, such as "Segue" or "Concerto".
Adds a property with the name & type specified. This is used while setting up the config system.
void
addProperty
(ref $field, [optional $default = null])
-
ref
$field: object $field A SchemaField defining the properties of this field.
-
optional
$default: object $default The default value for this property. Must be the correct class that is associated with the SchemaField type value, as defined by the DataTypeManager.
Tells the ConfigSystem to finish setup and change into a mode where settings can actually be changed/added, etc.
void
finishSetup
()
Returns a Record ready for editing permissions.
ref
getRecord
([optional $force = false])
-
optional
$force: boolean $force This option is only used internally.
Saves all the config data to the database.
void
save
()