RT 5.0.5 Documentation

RT::Attachments

Go to latest version →

NAME

  RT::Attachments - a collection of RT::Attachment objects

SYNOPSIS

  use RT::Attachments;

DESCRIPTION

This module should never be called directly by client code. it's an internal module which should only be accessed through exported APIs in Ticket, Queue and other similar objects.

METHODS

TransactionAlias

Returns alias for transactions table with applied join condition. Always return the same alias, so if you want to build some complex or recursive joining then you have to create new alias youself.

ContentType (VALUE => 'text/plain', ENTRYAGGREGATOR => 'OR', OPERATOR => '=' )

Limit result set to attachments of ContentType 'TYPE'...

ChildrenOf ID

Limit result set to children of Attachment ID

LimitNotEmpty

Limit result set to attachments with not empty content.

LimitHasFilename

Limit result set to attachments with not empty filename.

LimitByTicket $ticket_id

Limit result set to attachments of a ticket.

ReplaceAttachments ( Search => 'SEARCH', Replacement => 'Replacement', Header => 1, Content => 1 )

Provide a search string to search the attachments table for, by default the Headers and Content columns will both be searched for matches.

← Back to index