RT 6.0.0 Documentation

RT::SavedSearch

Go to latest version →

NAME

RT::SavedSearch - an RT SavedSearch object

SYNOPSIS

  use RT::SavedSearch

DESCRIPTION

An RT SavedSearch object

NAME

RT::SavedSearch - Represents a config setting

METHODS

Create PARAMHASH

Create takes a hash of values and creates a row in the database. Available keys are:

Name
Description
Type
PrincipalId
Content

Returns a tuple of (status, msg) on failure and (id, msg) on success.

ValidateName

Name must be unique for each principal and search type.

Returns either (0, "failure reason") or 1 depending on whether the given name is valid.

Delete

Disable object.

IsVisibleTo PrincipalId

Returns true if it is visible to the principal. This does not deal with ACLs, this only looks at membership.

_Value

Checks "CurrentUserCanSee" before calling SUPER::_Value.

EscapeDescription STRING

Returns STRING with all square brackets except those in [_1] escaped, ready for passing as the first argument to loc().

ShortenerObj

Return the corresponding shortener object

URI

Returns this saved search's URI

URI

Returns this saved search's corresponding collection Class like RT::Tickets

← Back to index