RT::DatabaseSetting - Represents a config setting
Create takes a hash of values and creates a row in the database. Available keys are:
Must be unique.
If you provide a reference, we will automatically serialize the data structure using Storable. Otherwise any string is passed through as-is.
Currently handles storable or application/json.
storable
application/json
Returns a tuple of (status, msg) on failure and (id, msg) on success. Also automatically propagates this config change to all server processes.
Returns true if the current user can see the database setting
Load a setting from the database. Takes a single argument. If the argument is numerical, load by the column 'id'. Otherwise, load by the "Name" column.
Not permitted
Returns either (0, "failure reason") or 1 depending on whether the given name is valid.
Checks ACL, and on success propagates this config change to all server processes.
Returns a pair of this setting's content and any error.
Documented for internal use only, do not call these from outside RT::DatabaseSetting itself.
Checks if the current user has SuperUser before calling SUPER::_Set, and then propagates this config change to all server processes.
SUPER::_Set
Checks "CurrentUserCanSee" before calling SUPER::_Value.
SUPER::_Value
To install RT::Extension::ConfigInDatabase, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RT::Extension::ConfigInDatabase
CPAN shell
perl -MCPAN -e shell install RT::Extension::ConfigInDatabase
For more information on module installation, please visit the detailed CPAN module installation guide.