RT 5.0.7 Documentation
RT::ObjectCustomFieldValue
-
- LoadByCols
- LoadByTicketContentAndCustomField { Ticket => TICKET, CustomField => CUSTOMFIELD, Content => CONTENT }
- CustomFieldObj
- Content
- Object
- Delete
- _FillInTemplateURL URL
- ValueLinkURL
- ValueIncludeURL
- GetOCFVCacheKey
- id
- CustomField
- SetCustomField VALUE
- ObjectType
- SetObjectType VALUE
- ObjectId
- SetObjectId VALUE
- SortOrder
- SetSortOrder VALUE
- Content
- SetContent VALUE
- LargeContent
- SetLargeContent VALUE
- ContentType
- SetContentType VALUE
- ContentEncoding
- SetContentEncoding VALUE
- Creator
- Created
- LastUpdatedBy
- LastUpdated
- Disabled
- SetDisabled VALUE
- CurrentUserCanSee
LoadByCols
LoadByTicketContentAndCustomField { Ticket => TICKET, CustomField => CUSTOMFIELD, Content => CONTENT }
Loads a custom field value by Ticket, Content and which CustomField it's tied to
CustomFieldObj
Returns the CustomField Object which has the id returned by CustomField.
CAVEAT: the returned object is cached, reload it to get the latest data.
Content
Return this custom field's content. If there's no "regular" content, try "LargeContent"
Object
Returns the object this value applies to.
CAVEAT: the returned object is cached, reload it to get the latest data.
Delete
Disable this value. Used to remove "current" values from records while leaving them in the history.
_FillInTemplateURL URL
Takes a URL containing placeholders and returns the URL as filled in for this ObjectCustomFieldValue. The values for the placeholders will be URI-escaped.
Available placeholders:
- __id__
-
The id of the object in question.
- __CustomField__
-
The value of this custom field for the object in question.
- __WebDomain__, __WebPort__, __WebPath__, __WebBaseURL__ and __WebURL__
-
The value of the config option.
ValueLinkURL
Returns a filled in URL template for this ObjectCustomFieldValue, suitable for constructing a hyperlink in RT's web UI. Returns undef if this custom field doesn't have a LinkValueTo
ValueIncludeURL
Returns a filled in URL template for this ObjectCustomFieldValue, suitable for constructing a hyperlink in RT's webui. Returns undef if this custom field doesn't have a IncludeContentForValue
GetOCFVCacheKey
Get the OCFV cache key for this object
id
Returns the current value of id. (In the database, id is stored as int(11).)
CustomField
Returns the current value of CustomField. (In the database, CustomField is stored as int(11).)
SetCustomField VALUE
Set CustomField to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, CustomField will be stored as a int(11).)
ObjectType
Returns the current value of ObjectType. (In the database, ObjectType is stored as varchar(255).)
SetObjectType VALUE
Set ObjectType to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, ObjectType will be stored as a varchar(255).)
ObjectId
Returns the current value of ObjectId. (In the database, ObjectId is stored as int(19).)
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(19).)
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).)
Content
Returns the current value of Content. (In the database, Content is stored as varchar(255).)
SetContent VALUE
Set Content to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Content will be stored as a varchar(255).)
LargeContent
Returns the current value of LargeContent. (In the database, LargeContent is stored as longblob.)
SetLargeContent VALUE
Set LargeContent to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, LargeContent will be stored as a longblob.)
ContentType
Returns the current value of ContentType. (In the database, ContentType is stored as varchar(80).)
SetContentType VALUE
Set ContentType to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, ContentType will be stored as a varchar(80).)
ContentEncoding
Returns the current value of ContentEncoding. (In the database, ContentEncoding is stored as varchar(80).)
SetContentEncoding VALUE
Set ContentEncoding to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, ContentEncoding will be stored as a varchar(80).)
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.)
Disabled
Returns the current value of Disabled. (In the database, Disabled is stored as smallint(6).)
SetDisabled VALUE
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 smallint(6).)
CurrentUserCanSee
Returns true if user has "SeeCustomField" on the associated CustomField object, otherwise false.
← Back to index