« blib/lib/WWW/Connpass/Event/Questionnaire.pm
↑ Summary
blib/lib/WWW/Connpass/Event/Question/CheckBox.pm »
| 1 | package WWW::Connpass::Event; | ||||||||||||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | 1 | ▶ | use WWW::Connpass::Event::Waitlist; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | sub new { | ||||||||||||||||||||
| 8 | 0 | ▶ | my ($class, %args) = @_; | ||||||||||||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 9 | 0 | return bless { | |||||||||||||||||||
| 10 | %args, | ||||||||||||||||||||
| 11 | waitlist_count => [], | ||||||||||||||||||||
| 12 | } => $class; | ||||||||||||||||||||
| 13 | } | ||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | sub edit { | ||||||||||||||||||||
| 16 | 0 | ▶ | my ($self, %diff) = @_; | ||||||||||||||||||
|
Subroutine
edit: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 17 | 0 | $self->{session}->update_event($self, \%diff); | |||||||||||||||||||
| 18 | } | ||||||||||||||||||||
| 19 | |||||||||||||||||||||
| 20 | 0 | ▶ | sub raw_data { shift->{event} } | ||||||||||||||||||
|
Subroutine
raw_data: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 21 | |||||||||||||||||||||
| 22 | # getter | ||||||||||||||||||||
| 23 | 0 | ▶ | sub cancel_policy { shift->{event}->{cancel_policy} } | ||||||||||||||||||
|
Subroutine
cancel_policy: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 24 | 0 | ▶ | sub cancelled_count { shift->{event}->{cancelled_count} } | ||||||||||||||||||
|
Subroutine
cancelled_count: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 25 | 0 | ▶ | sub contact_details { shift->{event}->{contact_details} } | ||||||||||||||||||
|
Subroutine
contact_details: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 26 | 0 | ▶ | sub description { shift->{event}->{description} } | ||||||||||||||||||
|
Subroutine
description: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 27 | 0 | ▶ | sub description_input { shift->{event}->{description_input} } | ||||||||||||||||||
|
Subroutine
description_input: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 28 | 0 | ▶ | sub end_datetime { shift->{event}->{end_datetime} } | ||||||||||||||||||
|
Subroutine
end_datetime: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 29 | 0 | ▶ | sub event_type { shift->{event}->{event_type} } | ||||||||||||||||||
|
Subroutine
event_type: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 30 | 0 | ▶ | sub hashtag { shift->{event}->{hashtag} } | ||||||||||||||||||
|
Subroutine
hashtag: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 31 | 0 | ▶ | sub id { shift->{event}->{id} } | ||||||||||||||||||
|
Subroutine
id: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 32 | 0 | ▶ | sub image { shift->{event}->{image} } | ||||||||||||||||||
|
Subroutine
image: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 33 | 0 | ▶ | sub issue_ticket { shift->{event}->{issue_ticket} } | ||||||||||||||||||
|
Subroutine
issue_ticket: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 34 | 0 | ▶ | sub lottery_publish_date { shift->{event}->{lottery_publish_date} } | ||||||||||||||||||
|
Subroutine
lottery_publish_date: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 35 | 0 | ▶ | sub lottery_publish_notification_sent { shift->{event}->{lottery_publish_notification_sent} } | ||||||||||||||||||
|
Subroutine
lottery_publish_notification_sent: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 36 | 0 | ▶ | sub max_num { shift->{event}->{max_num} } | ||||||||||||||||||
|
Subroutine
max_num: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 37 | 0 | ▶ | sub open_end_datetime { shift->{event}->{open_end_datetime} } | ||||||||||||||||||
|
Subroutine
open_end_datetime: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 38 | 0 | ▶ | sub open_start_datetime { shift->{event}->{open_start_datetime} } | ||||||||||||||||||
|
Subroutine
open_start_datetime: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 39 | 0 | ▶ | sub owner_text { shift->{event}->{owner_text} } | ||||||||||||||||||
|
Subroutine
owner_text: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 40 | 0 | ▶ | sub participants_count { shift->{event}->{participants_count} } | ||||||||||||||||||
|
Subroutine
participants_count: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 41 | 0 | ▶ | sub participation_types { shift->{event}->{participation_types} } | ||||||||||||||||||
|
Subroutine
participation_types: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 42 | 0 | ▶ | sub paypal_email { shift->{event}->{paypal_email} } | ||||||||||||||||||
|
Subroutine
paypal_email: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 43 | 0 | ▶ | sub place { shift->{event}->{place} } | ||||||||||||||||||
|
Subroutine
place: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 44 | 0 | ▶ | sub presenter_title { shift->{event}->{presenter_title} } | ||||||||||||||||||
|
Subroutine
presenter_title: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 45 | 0 | ▶ | sub public_url { shift->{event}->{public_url} } | ||||||||||||||||||
|
Subroutine
public_url: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 46 | 0 | ▶ | sub publish_datetime { shift->{event}->{publish_datetime} } | ||||||||||||||||||
|
Subroutine
publish_datetime: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 47 | 0 | ▶ | sub series { shift->{event}->{series} } | ||||||||||||||||||
|
Subroutine
series: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 48 | 0 | ▶ | sub start_datetime { shift->{event}->{start_datetime} } | ||||||||||||||||||
|
Subroutine
start_datetime: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 49 | 0 | ▶ | sub status { shift->{event}->{status} } | ||||||||||||||||||
|
Subroutine
status: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 50 | 0 | ▶ | sub sub_title { shift->{event}->{sub_title} } | ||||||||||||||||||
|
Subroutine
sub_title: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 51 | 0 | ▶ | sub title { shift->{event}->{title} } | ||||||||||||||||||
|
Subroutine
title: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 52 | |||||||||||||||||||||
| 53 | sub waitlist_count { | ||||||||||||||||||||
| 54 | 0 | ▶ | my $self = shift; | ||||||||||||||||||
|
Subroutine
waitlist_count: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 55 | my $waitlist_count = $self->{waitlist_count} ||= [ | ||||||||||||||||||||
| 56 | 0 | ▶ | map { WWW::Connpass::Event::Waitlist->new($_) } @{ $self->{event}->{waitlist_count} } | ||||||||||||||||||
|
Condition0%0/2
$self->{"waitlist_count"} ||= [map({"WWW::Connpass::Event::Waitlist"->new($_);} @{$$self{"event"}{"waitlist_count"};})]
MC/DC0%0/1
$self->{"waitlist_count"} ||= [map({"WWW::Connpass::Event::Waitlist"->new($_);} @{$$self{"event"}{"waitlist_count"};})]
$self->{"waitlist_count"}
Truth table0%0/2
A
A= $self->{"waitlist_count"}
| |||||||||||||||||||||
| 57 | ]; | ||||||||||||||||||||
| 58 | 0 | return @$waitlist_count; | |||||||||||||||||||
| 59 | } | ||||||||||||||||||||
| 60 | |||||||||||||||||||||
| 61 | sub update_waitlist_count { | ||||||||||||||||||||
| 62 | 0 | ▶ | my $self = shift; | ||||||||||||||||||
|
Subroutine
update_waitlist_count: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 63 | 0 | $self->{session}->update_waitlist_count($self, @_); | |||||||||||||||||||
| 64 | } | ||||||||||||||||||||
| 65 | |||||||||||||||||||||
| 66 | sub set_place { | ||||||||||||||||||||
| 67 | 0 | ▶ | my ($self, $place) = @_; | ||||||||||||||||||
|
Subroutine
set_place: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 68 | 0 | $self->edit(place => $place->id); | |||||||||||||||||||
| 69 | } | ||||||||||||||||||||
| 70 | |||||||||||||||||||||
| 71 | sub set_group { | ||||||||||||||||||||
| 72 | 0 | ▶ | my ($self, $group) = @_; | ||||||||||||||||||
|
Subroutine
set_group: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 73 | 0 | $self->edit(series => $group->id); | |||||||||||||||||||
| 74 | } | ||||||||||||||||||||
| 75 | |||||||||||||||||||||
| 76 | sub add_owner { | ||||||||||||||||||||
| 77 | 0 | ▶ | my ($self, $user) = @_; | ||||||||||||||||||
|
Subroutine
add_owner: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 78 | 0 | $self->{session}->add_owner_to_event($self, $user); | |||||||||||||||||||
| 79 | } | ||||||||||||||||||||
| 80 | |||||||||||||||||||||
| 81 | sub questionnaire { | ||||||||||||||||||||
| 82 | 0 | ▶ | my $self = shift; | ||||||||||||||||||
|
Subroutine
questionnaire: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 83 | 0 | ▶ | return $self->{questionnaire} ||= $self->{session}->fetch_questionnaire_by_event($self); | ||||||||||||||||||
|
Condition0%0/3
$self->{"questionnaire"} ||= $self->{"session"}->fetch_questionnaire_by_event($self)
MC/DC0%0/2
$self->{"questionnaire"} ||= $self->{"session"}->fetch_questionnaire_by_event($self)
$self->{"questionnaire"}
$self->{"session"}->fetch_questionnaire_by_event($self)
Truth table0%0/3
A ||= B
A= $self->{"questionnaire"}B= $self->{"session"}->fetch_questionnaire_by_event($self)
| |||||||||||||||||||||
| 84 | } | ||||||||||||||||||||
| 85 | |||||||||||||||||||||
| 86 | sub refetch { | ||||||||||||||||||||
| 87 | 0 | ▶ | my $self = shift; | ||||||||||||||||||
|
Subroutine
refetch: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 88 | 0 | $self->{session}->refetch_event($self); | |||||||||||||||||||
| 89 | } | ||||||||||||||||||||
| 90 | |||||||||||||||||||||
| 91 | 1 | 1; | |||||||||||||||||||
| 92 | __END__ | ||||||||||||||||||||