GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NET::TRAC::TICKETSEARCH (3)

.ds Aq ’

NAME

Net::Trac::TicketSearch - A ticket search (custom query) in Trac

CONTENTS

SYNOPSIS



    my $search = Net::Trac::TicketSearch->new( connection => $trac );
   
    $search->query(
        owner       => hiro,
        status      => { not => [qw(new reopened)] },
        summary     => { contains => yatta! },
        reporter    => [qw( foo@example.com bar@example.com )]
    );
   
    print $_->id, "\n" for @{$search->results};



DESCRIPTION

This class allows you to run ticket searches on a remote Trac instance.

ACCESSORS

    connection

    limit [NUMBER]

Get/set the maximum number of results to fetch. Default is 500. This may also be limited by the Trac instance itself.

    results

Returns an arrayref of Net::Trac::Tickets for the current query.

    url

Returns the relative URL for the current query (note the format will be CSV).

METHODS

    query [PARAMHASH]

Performs a ticket search with the given search conditions. Specify a hash of column = value> pairs for which to search. Values may be a simple scalar, a hashref, or an arrayref. Specifying a hashref allows you to select a different operator for comparison (see below for a list). An arrayref allows multiple values to be <B>orB>’d for the same column. Unfortunately Trac has no way of <B>andB>ing multiple values for the same column.

Valid operators are is (default), not, contains, lacks, startswith, and endswith.

Returns undef on error and the results otherwise.

LICENSE

Copyright 2008-2009 Best Practical Solutions.

This package is licensed under the same terms as Perl 5.8.8.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NET::TRAC::TICKETSEARCH (3) 2009-05-27

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.