Loads a class, either by name or by id
Create takes a hash of values and creates a row in the database:
varchar(255) 'Name'.
varchar(255) 'Description'.
int(11) 'SortOrder'.
Returns collection of Queues this Class is applied to. Doesn't takes into account if object is applied globally.
Returns collection of Queues this Class is not applied to.
Doesn't takes into account if object is applied globally.
Takes object id and returns corresponding RT::ObjectClass record if this Class is applied to the object. Use 0 to check if Class is applied globally.
Apply this Class to a single object, to start with we support Queues
Takes an object
Remove this class from a single queue object
Returns true if the current user can see the class, using SeeClass.
Returns true if the current user can create a new class, using AdminClass.
Returns true if the current user can modify the class, using AdminClass.
Returns the current value of id. (In the database, id is stored as int(11).)
Returns the current value of Name. (In the database, Name is stored as varchar(255).)
Set Name to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Name will be stored as a varchar(255).)
Returns the current value of Description. (In the database, Description is stored as varchar(255).)
Set Description to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Description will be stored as a varchar(255).)
Returns the current value of SortOrder. (In the database, SortOrder is stored as int(11).)
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).)
Returns the current value of Disabled. (In the database, Disabled is stored as int(2).)
Set Disabled to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Disabled will be stored as a int(2).)
Returns the current value of Creator. (In the database, Creator is stored as int(11).)
Returns the current value of Created. (In the database, Created is stored as datetime.)
Returns the current value of LastUpdatedBy. (In the database, LastUpdatedBy is stored as int(11).)
Returns the current value of LastUpdated. (In the database, LastUpdated is stored as datetime.)
← Back to index