RT::Watchers(3)

NAME
  RT::Watchers - Collection of RT Watcher objects

SYNOPSIS
  use RT::Watchers;
  my $watchers = new RT::Watchers($CurrentUser);
  while (my $watcher = $watchers->Next()) {
    print $watcher->Id . "is a watcher";
  }

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

  Limit
  A wrapper around RT::EasySearch::Limit which sets
the default entry aggregator to 'AND'

  LimitToTicket
Takes a single arg which is a ticket id Limits to watchers of that ticket

  LimitToQueue
Takes a single arg, which is a queue id Limits to watchers of that queue.

  LimitToType
Takes a single string as its argument. That string is a watcher type which is one of 'Requestor', 'Cc' or 'AdminCc' Limits to watchers of that type

  LimitToRequestors
Limits to watchers of type 'Requestor'

  LimitToCc
Limits to watchers of type 'Cc'

  LimitToAdminCc
Limits to watchers of type AdminCc

  Emails
# Return a (reference to a) list of emails

  EmailsAsString
# Returns the RT::Watchers->Emails as a comma seperated string