Fedora-Bugzilla

 view release on metacpan or  search on metacpan

lib/Fedora/Bugzilla/Bug.pm  view on Meta::CPAN

=over

=item B<uri_count>

Return the number of URIs found.

=item B<grep_uris([CodeRef])>

This operates much the way you'd expect the grep() function to:  given a
coderef, iterate over each uri and see if it matches.  e.g., to find all URIs
that match koji.fedoraproject.org:

    @uris = $bug->grep_uris(sub { /koji.fedoraproject.org/ });

=item B<map_uris([CodeRef])>

As with grep_uris(), take a code ref and map() over all URIs with it.

=back

=head2 Methods

=over 4

=item B<has_uris>

True if we've already generated our list of URIs from the bug.  Note this
should not be used to determine if any URIs are present in the bug; use
uri_count() for that.

=item B<clear_uris>

Clear the list of URIs and force it to be rebuilt the next time we need it.

=back

=head1 OTHER ATTRIBUTES

Generally, these reflect this interface rather than anything on bugzilla.

=over

=item B<bz>

Our parent L<Fedora::Bugzilla> object.

=item B<data>

A hashref of the raw bug data provided by bugzilla.  Note that changes here
are not reflected in bugzilla proper; you must use the accessors and call
update() for that to happen.

=over 

=item I<has_data>

True if the data has been fetched.

=item I<clear_data>

Clears data(); also triggers a cascade clear of the bulk of the object
(except bz() and id()).

=back

=item B<dirty>

Boolean.  Indicates if any attributes have been updated, but not written back
to bugzilla yet.

=item B<xml>

The raw XML representation of this bug, as fetched from the Bugzilla web UI.

=over

=item I<has_xml>

True if the XML representation has been pulled.

=item I<clear_xml>

Clears xml() as well as anything that depends on it (twig, comments, etc).

=back

=item B<twig>

An L<XML::Twig> object built from xml().

=over

=item I<has_twig>

True if the twig has been built out from xml().

=item I<clear_twig>

Discard the twig and force it to be rebuilt the next time we access it.

=back

=back

=head1 DIAGNOSTICS

=for author to fill in:
    List every single error and warning message that the module can
    generate (even the ones that will "never happen"), with a full
    explanation of each problem, one or more likely causes, and any
    suggested remedies.

=over

=item C<< Error message here, perhaps with %s placeholders >>

[Description of error here]

=item C<< Another error message here >>

[Description of error here]



( run in 1.363 second using v1.01-cache-2.11-cpan-63c85eba8c4 )