RT 5.0.7 Documentation

RT::ObjectCustomRole

NAME

RT::ObjectCustomRole - record representing addition of a custom role to an object

DESCRIPTION

This record is created if you want to add a custom role to an object.

Inherits methods from RT::Record::AddAndSort.

For most operations it's better to use methods in RT::CustomRole.

METHODS

Table

Returns table name for records of this class.

ObjectCollectionClass

Returns class name of collection of records this custom role can be added to by consulting the custom role's LookupType.

CustomRoleObj

Returns the RT::CustomRole object with the id returned by "CustomRole"

Object

Returns the object which this ObjectCustomRole is added to

Add

Adds the custom role to the object and creates (or re-enables) that object's role group.

Delete

Removes the custom role from the object and disables that object's role group.

id

Returns the current value of id. (In the database, id is stored as int(11).)

CustomRole

Returns the current value of CustomRole. (In the database, CustomRole is stored as int(11).)

SetCustomRole VALUE

Set CustomRole to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, CustomRole will be stored as a int(11).)

ObjectId

Returns the current value of ObjectId. (In the database, ObjectId is stored as int(11).)

SetObjectId VALUE

Set ObjectId to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, ObjectId will be stored as a int(11).)

SortOrder

Returns the current value of SortOrder. (In the database, SortOrder is stored as int(11).)

SetSortOrder VALUE

Set SortOrder to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, SortOrder will be stored as a int(11).)

Creator

Returns the current value of Creator. (In the database, Creator is stored as int(11).)

Created

Returns the current value of Created. (In the database, Created is stored as datetime.)

LastUpdatedBy

Returns the current value of LastUpdatedBy. (In the database, LastUpdatedBy is stored as int(11).)

LastUpdated

Returns the current value of LastUpdated. (In the database, LastUpdated is stored as datetime.)

← Back to index