RT::Link(3)

NAME
  RT::Link - an RT Link object

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.

  Load
  Load an RT::Link object from the database.  Takes one parameter or three.
  One parameter is the id of an entry in the links table.  Three parameters are a tuple of (base, linktype, target);

  TargetObj

  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

  _IsLocal URI
When handed a URI returns the local ticket id if it\'s local. otherwise returns undef.

  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.

  CanonicalizeURI
Takes a single argument: some form of ticket identifier. Returns its canonicalized URI.

Bug: ticket aliases can't have :// in them. URIs must have :// in them.