Developer
User Docs ↗ Star uson GitHub
You are viewing documentation for RT 4.2.5, which is end-of-life and no longer supported. The current release is 6.0.4 (view the current version of this page).
RT supports upgrading from all older versions. See the README for instructions or contact us for assistance.

NAME

  RT::Scrips - a collection of RT Scrip objects

SYNOPSIS

  use RT::Scrips;

DESCRIPTION

METHODS

LimitToQueue

Takes a queue id (numerical) as its only argument. Makes sure that Scopes it pulls out apply to this queue (or another that you've selected with another call to this method

LimitToGlobal

Makes sure that Scopes it pulls out apply to all queues (or another that you've selected with another call to this method or LimitToQueue

LimitByTemplate

Takes a RT::Template object and limits scrips to those that use the template.

Next

Returns the next scrip that this user can see.

Apply

Run through the relevant scrips. Scrips will run in order based on description. (Most common use case is to prepend a number to the description, forcing the scrips to run in ascending alphanumerical order.)

Commit

Commit all of this object's prepared scrips

Prepare

Only prepare the scrips, returning an array of the scrips we're interested in in order of preparation, not execution

Prepared

Returns an arrayref of the scrips this object has prepared

_SetupSourceObjects { TicketObj , Ticket, Transaction, TransactionObj }

Setup a ticket and transaction for this Scrip collection to work with as it runs through the relevant scrips. (Also to figure out which scrips apply)

Returns: nothing

_FindScrips

Find only the apropriate scrips for whatever we're doing now. Order them by their description. (Most common use case is to prepend a number to the description, forcing the scrips to display and run in ascending alphanumerical order.)

Still need help?Get answers from the team behind Request Tracker.

← Back to index