Repository navigation
Internals Settings
Framework Internals · Developer guide
Settings uses DatabaseManager to join awt_setting with package names, builds SettingModel objects and defines SETT_... constants containing those objects. Config computes a normalized constant name and returns the corresponding object or null. setValue writes the row directly and changes the object's current value.
Settings values are persisted as scalar strings in a VARCHAR column; value_type/category/required_permission_level are metadata, not automatic type conversion or enforced access checks. createSetting returns 0 if a package/name record exists. Repeated initSettings guards the wrong unprefixed name before defining SETT_..., so reinitialization can attempt duplicate constant definitions. Config normalizes hyphens while SettingModel only normalizes spaces. Use consistent names and initialize settings once during normal bootstrap.
-
Setting-Config —
awt_src/classes/setting/Config.php -
Setting-Settings —
awt_src/classes/setting/Settings.php -
Setting-Model-SettingModel —
awt_src/classes/setting/model/SettingModel.php
AWT Framework Wiki · Home · Installation Guide · Developer Guide · Framework Internals
Philosophy · Architecture · Known discrepancies · Verification
Installation Guide
Developer Guide
- Learning sequence
- First package
- Package structure
- Lifecycle
- Runtimes
- Events and objects
- Routing and controllers
- Views and resources
- Database and models
- Storage and caching
- Configuration and CLI
- Responses and errors
- Extension points
Framework Internals
- Architecture
- Bootstrap
- Packages
- Runtime
- Events and context
- Objects
- HTTP routing and controllers
- Rendering
- Blade integration
- Database
- Models
- Storage and caching
- Settings
- CLI
- Identity and sessions
- Responses
- Errors
- Complete source inventory
Documentation notes