use RT::Search::Generic; my $tickets = RT::Tickets->new($CurrentUser); my $foo = RT::Search::Generic->new(Argument => $arg, TicketsObj => $tickets); $foo->Prepare(); while ( my $ticket = $foo->Next ) { # Do something with each ticket we've found }
Return the optional argument associated with this Search
Return the Tickets object passed into this search