SYNOPSIS

  use RT::Link;

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 other similar objects.

METHODS

Create PARAMHASH

Create a new link object. Takes 'Base', 'Target' and 'Type'. Returns undef on failure or a Link Id on success.

LoadByParams

  Load an RT::Link object from the database.  Takes three parameters
  
  Base => undef,
  Target => undef,
  Type =>undef
 
  Base and Target are expected to be integers which refer to Tickets or URIs
  Type is the link type

Load

  Load an RT::Link object from the database.  Takes one parameter, the id of an entry in the links table.

TargetURI

returns an RT::URI object for the "Target" of this link.

TargetObj

BaseURI

returns an RT::URI object for the "Base" of this link.

BaseObj

BaseIsLocal

Returns true if the base of this link is a local ticket

TargetIsLocal

Returns true if the target of this link is a local ticket

BaseAsHREF

Returns an HTTP url to access the base of this link

TargetAsHREF

return an HTTP url to access the target of this link

URI

Takes a URI and returns an http: url to access that object.