RT::User
Create takes a hash of values and creates a row in the database:
varchar(200) 'Name'. varchar(40) 'Password'. blob 'Comments'. blob 'Signature'. varchar(120) 'EmailAddress'. blob 'FreeformContactInfo'. varchar(200) 'Organization'. varchar(120) 'RealName'. varchar(16) 'NickName'. varchar(16) 'Lang'. varchar(16) 'EmailEncoding'. varchar(16) 'WebEncoding'. varchar(100) 'ExternalContactInfoId'. varchar(30) 'ContactInfoSystem'. varchar(100) 'ExternalAuthId'. varchar(30) 'AuthSystem'. varchar(16) 'Gecos'. varchar(30) 'HomePhone'. varchar(30) 'WorkPhone'. varchar(30) 'MobilePhone'. varchar(30) 'PagerPhone'. varchar(200) 'Address1'. varchar(200) 'Address2'. varchar(100) 'City'. varchar(100) 'State'. varchar(16) 'Zip'. varchar(50) 'Country'. varchar(50) 'Timezone'. text 'PGPKey'.
Returns the current value of id. (In the database, id is stored as int(11).)
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(200).)
Set Password to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Password will be stored as a varchar(40).)
Set Comments to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Comments will be stored as a blob.)
Set Signature to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Signature will be stored as a blob.)
Set EmailAddress to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, EmailAddress will be stored as a varchar(120).)
Set FreeformContactInfo to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, FreeformContactInfo will be stored as a blob.)
Set Organization to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Organization will be stored as a varchar(200).)
Set RealName to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, RealName will be stored as a varchar(120).)
Set NickName to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, NickName will be stored as a varchar(16).)
Set Lang to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Lang will be stored as a varchar(16).)
Set EmailEncoding to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, EmailEncoding will be stored as a varchar(16).)
Set WebEncoding to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, WebEncoding will be stored as a varchar(16).)
Set ExternalContactInfoId to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, ExternalContactInfoId will be stored as a varchar(100).)
Set ContactInfoSystem to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, ContactInfoSystem will be stored as a varchar(30).)
Set ExternalAuthId to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, ExternalAuthId will be stored as a varchar(100).)
Set AuthSystem to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, AuthSystem will be stored as a varchar(30).)
Set Gecos to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Gecos will be stored as a varchar(16).)
Set HomePhone to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, HomePhone will be stored as a varchar(30).)
Set WorkPhone to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, WorkPhone will be stored as a varchar(30).)
Set MobilePhone to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, MobilePhone will be stored as a varchar(30).)
Set PagerPhone to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, PagerPhone will be stored as a varchar(30).)
Set Address1 to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Address1 will be stored as a varchar(200).)
Set Address2 to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Address2 will be stored as a varchar(200).)
Set City to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, City will be stored as a varchar(100).)
Set State to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, State will be stored as a varchar(100).)
Set Zip to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Zip will be stored as a varchar(16).)
Set Country to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Country will be stored as a varchar(50).)
Set Timezone to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Timezone will be stored as a varchar(50).)
Set PGPKey to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, PGPKey will be stored as a text.)
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.)
This class allows "overlay" methods to be placed into the following files _Overlay is for a System overlay by the original author, _Vendor is for 3rd-party vendor add-ons, while _Local is for site-local customizations.
These overlay files can contain new subs or subs to replace existing subs in this module.
If you'll be working with perl 5.6.0 or greater, each of these files should begin with the line
no warnings qw(redefine);
so that perl does not kick and scream when you redefine a subroutine or variable in your overlay.
RT::User_Overlay, RT::User_Vendor, RT::User_Local