RT 6.0.0 Documentation

RT::Condition

NAME

  RT::Condition - generic baseclass for scrip condition;

SYNOPSIS

    use RT::Condition;
    my $foo = RT::Condition->new( 
                TransactionObj => $tr,
                Object => $obj,
                TicketObj => $ti,
                AssetObj => $as,
                ArticleObj => $ar,
                ScripObj => $scr, 
                Argument => $arg, 
                Type => $type);

    if ($foo->IsApplicable) {
           # do something
    }

DESCRIPTION

METHODS

Argument

Return the optional argument associated with this ScripCondition

Object

Return the ticket/asset/article object we're talking about

TicketObj

Return the ticket object we're talking about

AssetObj

Return the ticket/asset/article object we're talking about

ArticleObj

Return the ticket/asset/article object we're talking about

ScripObj

Return the Scrip object we're talking about

TransactionObj

Return the transaction object we're talking about

Type

SupportsLookupType LOOKUPTYPE

Return true if the condition supports the given lookup type, false otherwise.

Return a list of all supported lookup types if called with no arguments.

For back compatibility, only RT::Queue-RT::Ticket is supported by default.

← Back to index