jeyroik / extas-system-options
There is no license information available for the latest version (0.1.0) of this package.
System options for extas
0.1.0
2023-07-12 11:02 UTC
Requires
Requires (Dev)
This package is auto-updated.
Last update: 2024-12-12 13:48:25 UTC
README
extas-system-options
System options for extas
usage
in an extas.json
{ "system_options": [ { "name": "some.name", "title": "Some param", "description": "Some system param", "value": "string|int|array|object" } ] }
in a code
$system = new System(); $option = $system->systemOptions()->one([ISystemOption::FIELD__NAME => 'some.name']); print_r($option->getValue()); //or if ($system->hasOption('some.name')) { print_r($system->getOptionValue()); }