RT::Configuration - 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 Data::Dumper. Otherwise any string is passed through as-is.
Currently handles perl
or 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.
Returns either (0, "failure reason") or 1 depending on whether the given content is valid.
Documented for internal use only, do not call these from outside RT::Configuration itself.
Checks that the field being created/updated is not immutable, before calling SUPER::Create
to save changes in a new row, returning id of new row on success and 0, and message on failure.
Checks if the current user has SuperUser before calling SUPER::_Set
, and then propagates this config change to all server processes.
Checks "CurrentUserCanSee" before calling SUPER::_Value
.