Download the PHP package skyline/settings without Composer
On this page you can find all versions of the php package skyline/settings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package settings
Skyline Settings
This package extends your Skyline Application by a setting tool that provides a persistent settings storage.
Installation
`
Usage
Compiling with Skyline, this package adds a service.
### The Settings
The settings are designed as key value pair, where the key is the setting name and the value its value.
The settings mechanism knows three locations, where a setting can be defined:
1. The default settings scope.
Once declared, the setting is valid in the whole application (like the example above)
1. The grouped settings scope.
The setting is part of a group (ex. VIEW.width or EDITOR.width)
1. The user settings scope.
Any grouped or default setting can be associated with a user so then the setting VIEW.width for user A is different than VIEW.width for user B.
If the scope is not selected or the setting does not exist in it, the setting manager will try to find it in parent scope.
Example: I'm looking for setting ``itemsPerPage`` in group ``DASHBOARD`` of ``USER_A``
The setting manager will return the first existing setting:
- Setting DASHBOARD.itemsPerPage for USER_A
- Setting DASHBOARD.itemsPerPage
- Setting itemsPerPage for USER_A
- Setting itemsPerPage
- NULL
Example: I'm looking for setting ``itemsPerPage`` of ``USER_A`` (without group)
- Setting itemsPerPage for USER_A
- Setting itemsPerPage
- NULL
Please note that setting groups and user groups is not the same.
The manager also allows to declare settings:
In the same way you can remove settings:
All versions of settings with dependencies
PHP Build Version
Package Version
The package skyline/settings contains the following files
Loading the files please wait ....