aboutsummaryrefslogtreecommitdiffstats
path: root/travis/phpunit-postgres-travis.xml
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-06-26 10:19:58 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-06-26 10:19:58 +0200
commit7d7b536874aa7eae7a6c5451d1ed8ee1dc62a1df (patch)
tree5d2b659b0df8239f8684cd6cbebc83374f02c117 /travis/phpunit-postgres-travis.xml
parent84bbd4490e853f9dd971f9da56210c3801cb8205 (diff)
parentef6af2682b42eb764b24b13a700192fff88d5736 (diff)
downloadforums-7d7b536874aa7eae7a6c5451d1ed8ee1dc62a1df.tar
forums-7d7b536874aa7eae7a6c5451d1ed8ee1dc62a1df.tar.gz
forums-7d7b536874aa7eae7a6c5451d1ed8ee1dc62a1df.tar.bz2
forums-7d7b536874aa7eae7a6c5451d1ed8ee1dc62a1df.tar.xz
forums-7d7b536874aa7eae7a6c5451d1ed8ee1dc62a1df.zip
Merge pull request #3728 from Crizz0/ticket/13966
[ticket/13966] Adds the missing phpbb_dispatcher to includes/mcp/mcp_…
Diffstat (limited to 'travis/phpunit-postgres-travis.xml')
0 files changed, 0 insertions, 0 deletions
/span>Constants; use Bugzilla::Error; use Bugzilla::User; use Bugzilla::Util; use Bugzilla::Whine::Schedule; use Bugzilla::Whine::Query; ############# # Constants # ############# use constant DB_TABLE => 'whine_events'; use constant DB_COLUMNS => qw( id owner_userid subject body mailifnobugs ); use constant LIST_ORDER => 'id'; #################### # Simple Accessors # #################### sub subject { return $_[0]->{'subject'}; } sub body { return $_[0]->{'body'}; } sub mail_if_no_bugs { return $_[0]->{'mailifnobugs'}; } sub user { my ($self) = @_; return $self->{user} if defined $self->{user}; $self->{user} = new Bugzilla::User($self->{'owner_userid'}); return $self->{user}; } 1; __END__ =head1 NAME Bugzilla::Whine - A Whine event =head1 SYNOPSIS use Bugzilla::Whine; my $event = new Bugzilla::Whine($event_id); my $subject = $event->subject; my $body = $event->body; my $mailifnobugs = $event->mail_if_no_bugs; my $user = $event->user; =head1 DESCRIPTION This module exists to represent a whine event that has been saved to the database. This is an implementation of L<Bugzilla::Object>, and so has all the same methods available as L<Bugzilla::Object>, in addition to what is documented below. =head1 METHODS =head2 Constructors =over =item C<new> Does not accept a bare C<name> argument. Instead, accepts only an id. See also: L<Bugzilla::Object/new>. =back =head2 Accessors These return data about the object, without modifying the object. =over =item C<subject> Returns the subject of the whine event. =item C<body> Returns the body of the whine event. =item C<mail_if_no_bugs>