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.
RT supports upgrading from all older versions. See the README for instructions or contact us for assistance.
NAME
RT::Base
SYNOPSIS
DESCRIPTION
FUNCTIONS
CurrentUser
If called with an argument, sets the current user to that user object. This will affect ACL decisions, etc. The argument can be either RT::CurrentUser or RT::User object.
Returns the current user object of RT::CurrentUser class.
loc LOC_STRING
l is a method which takes a loc string to this object's CurrentUser->LanguageHandle for localization.
you call it like this:
$self->loc("I have [quant,_1,concrete mixer,concrete mixers].", 6);
In english, this would return: I have 6 concrete mixers.
_ImportOverlays
_ImportOverlays is an internal method used to modify or add functionality to existing RT code. For more on how to use overlays with RT, please see the documentation in RT::StyleGuide.