5.7.114. Bugzilla::Whine::Query

5.7.114.1. NAME

Bugzilla::Whine::Query - A query object used by Bugzilla::Whine.

5.7.114.2. SYNOPSIS

use Bugzilla::Whine::Query;

my $query = new Bugzilla::Whine::Query($id);

my $event_id          = $query->eventid;
my $id                = $query->id;
my $query_name        = $query->name;
my $sortkey           = $query->sortkey;
my $one_email_per_bug = $query->one_email_per_bug;
my $title             = $query->title;

5.7.114.3. DESCRIPTION

This module exists to represent a query for a Bugzilla::Whine event. Each event, which are groups of schedules and queries based on how the user configured the event, may have zero or more queries associated with it. Additionally, the queries are selected from the user’s saved searches, or Bugzilla::Search::Saved object with a matching nameattribute for the user.

This is an implementation of Bugzilla::Object, and so has all the same methods available as Bugzilla::Object, in addition to what is documented below.

5.7.114.4. METHODS

Constructors

  • new

Does not accept a bare name argument. Instead, accepts only an id.

See also: “new” in Bugzilla::Object.

Accessors

These return data about the object, without modifying the object.

  • event_id
The Bugzilla::Whine event object id for this object.
  • name
The Bugzilla::Search::Saved query object name for this object.
  • sortkey
The relational sorting key as compared with other Bugzilla::Whine::Query objects.
  • one_email_per_bug
Returns a numeric 1(true) or 0(false) to represent whether this Bugzilla::Whine::Query object is supposed to be mailed as a list of bugs or one email per bug.
  • title
The title of this object as it appears in the user forms and emails.

5.7.114.5. Methods in need of POD

  • eventid

This documentation undoubtedly has bugs; if you find some, please file them here.