Developer
User Docs ↗
You are viewing documentation for RT 4.4.2, which is end-of-life and no longer supported. The current release is 6.0.4 (view the current version of this page).
RT supports upgrading from all older versions. See the README for instructions or contact us for assistance.

NAME

RT::CustomRoles - collection of RT::CustomRole records

DESCRIPTION

Collection of RT::CustomRole records. Inherits methods from RT::SearchBuilder.

METHODS

Table

Returns name of the table where records are stored.

RegisterRoles

This declares all (enabled) custom roles to the RT::Record::Role::Roles subsystem, suitable for system startup.

LimitToObjectId

Takes an ObjectId and limits the collection to custom roles applied to said object.

When called multiple times the ObjectId limits are joined with OR.

LimitToSingleValue

Limits the list of custom roles to only those that take a single value.

LimitToMultipleValue

Limits the list of custom roles to only those that take multiple values.

ApplySortOrder

Sort custom roles according to the order provided by the object custom roles.

← Back to index