| 1 | package Net::Lyskom::Conference; | ||||||||||
| 2 | 1 | ▶ | use base qw{Net::Lyskom::Object}; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 1 | ▶ | use Net::Lyskom::Util qw{:all}; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | ▶ | use Net::Lyskom::Time; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use Net::Lyskom::AuxItem; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | =head1 NAME | ||||||||||
| 11 | |||||||||||
| 12 | Net::Lyskom::Conference - object that holds information on a conference | ||||||||||
| 13 | |||||||||||
| 14 | =head1 SYNOPSIS | ||||||||||
| 15 | |||||||||||
| 16 | print "This conference is called ",$obj->name; | ||||||||||
| 17 | |||||||||||
| 18 | |||||||||||
| 19 | =head1 DESCRIPTION | ||||||||||
| 20 | |||||||||||
| 21 | All methods are read-only and take no arguments. Unless noted otherwise, | ||||||||||
| 22 | they return simple scalars. | ||||||||||
| 23 | |||||||||||
| 24 | =head2 Methods | ||||||||||
| 25 | |||||||||||
| 26 | =over | ||||||||||
| 27 | |||||||||||
| 28 | =item ->name() | ||||||||||
| 29 | |||||||||||
| 30 | =item ->creation_time() | ||||||||||
| 31 | |||||||||||
| 32 | Returns a L<Net::Lyskom::Time> object; | ||||||||||
| 33 | |||||||||||
| 34 | =item ->last_written() | ||||||||||
| 35 | |||||||||||
| 36 | Returns a L<Net::Lyskom::Time> object; | ||||||||||
| 37 | |||||||||||
| 38 | =item ->creator() | ||||||||||
| 39 | |||||||||||
| 40 | =item ->presentation() | ||||||||||
| 41 | |||||||||||
| 42 | =item ->supervisor() | ||||||||||
| 43 | |||||||||||
| 44 | =item ->permitted_submitters() | ||||||||||
| 45 | |||||||||||
| 46 | =item ->super_conf() | ||||||||||
| 47 | |||||||||||
| 48 | =item ->msg_of_day() | ||||||||||
| 49 | |||||||||||
| 50 | =item ->nice() | ||||||||||
| 51 | |||||||||||
| 52 | =item ->keep_commented() | ||||||||||
| 53 | |||||||||||
| 54 | =item ->no_of_members() | ||||||||||
| 55 | |||||||||||
| 56 | =item ->first_local_no() | ||||||||||
| 57 | |||||||||||
| 58 | =item ->no_of_texts() | ||||||||||
| 59 | |||||||||||
| 60 | =item ->expire() | ||||||||||
| 61 | |||||||||||
| 62 | =item ->aux_items() | ||||||||||
| 63 | |||||||||||
| 64 | Returns a list of L<Net::Lyskom::AuxItem> objects. | ||||||||||
| 65 | |||||||||||
| 66 | =item ->rd_prot() | ||||||||||
| 67 | |||||||||||
| 68 | =item ->original() | ||||||||||
| 69 | |||||||||||
| 70 | =item ->secret() | ||||||||||
| 71 | |||||||||||
| 72 | =item ->letterbox() | ||||||||||
| 73 | |||||||||||
| 74 | =item ->allow_anonymous() | ||||||||||
| 75 | |||||||||||
| 76 | =item ->forbid_secret() | ||||||||||
| 77 | |||||||||||
| 78 | =item ->highest_local_no() | ||||||||||
| 79 | |||||||||||
| 80 | =back | ||||||||||
| 81 | |||||||||||
| 82 | =cut | ||||||||||
| 83 | |||||||||||
| 84 | # Accessors | ||||||||||
| 85 | |||||||||||
| 86 | 1 | ▶ | sub name {my $s = shift; return $s->{name}} | ||||||||
|
Subroutine
name: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 87 | 0 | ▶ | sub creation_time {my $s = shift; return $s->{creation_time}} | ||||||||
|
Subroutine
creation_time: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 88 | 0 | ▶ | sub last_written {my $s = shift; return $s->{last_written}} | ||||||||
|
Subroutine
last_written: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 89 | 0 | ▶ | sub creator {my $s = shift; return $s->{creator}} | ||||||||
|
Subroutine
creator: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 90 | 0 | ▶ | sub presentation {my $s = shift; return $s->{presentation}} | ||||||||
|
Subroutine
presentation: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 91 | 0 | ▶ | sub supervisor {my $s = shift; return $s->{supervisor}} | ||||||||
|
Subroutine
supervisor: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 92 | 0 | ▶ | sub permitted_submitters {my $s = shift; return $s->{permitted_submitters}} | ||||||||
|
Subroutine
permitted_submitters: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 93 | 0 | ▶ | sub super_conf {my $s = shift; return $s->{super_conf}} | ||||||||
|
Subroutine
super_conf: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 94 | 0 | ▶ | sub msg_of_day {my $s = shift; return $s->{msg_of_day}} | ||||||||
|
Subroutine
msg_of_day: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 95 | 0 | ▶ | sub nice {my $s = shift; return $s->{nice}} | ||||||||
|
Subroutine
nice: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 96 | 0 | ▶ | sub keep_commented {my $s = shift; return $s->{keep_commented}} | ||||||||
|
Subroutine
keep_commented: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 97 | 0 | ▶ | sub no_of_members {my $s = shift; return $s->{no_of_members}} | ||||||||
|
Subroutine
no_of_members: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 98 | 0 | ▶ | sub first_local_no {my $s = shift; return $s->{first_local_no}} | ||||||||
|
Subroutine
first_local_no: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 99 | 0 | ▶ | sub no_of_texts {my $s = shift; return $s->{no_of_texts}} | ||||||||
|
Subroutine
no_of_texts: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 100 | 0 | ▶ | sub expire {my $s = shift; return $s->{expire}} | ||||||||
|
Subroutine
expire: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 101 | 0 | ▶ | sub aux_items {my $s = shift; return @{$s->{aux_items}}} | ||||||||
|
Subroutine
aux_items: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 102 | |||||||||||
| 103 | 0 | ▶ | sub rd_prot {my $s = shift; return $s->{rd_prot}} | ||||||||
|
Subroutine
rd_prot: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 104 | 0 | ▶ | sub original {my $s = shift; return $s->{original}} | ||||||||
|
Subroutine
original: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 105 | 0 | ▶ | sub secret {my $s = shift; return $s->{secret}} | ||||||||
|
Subroutine
secret: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 106 | 0 | ▶ | sub letterbox {my $s = shift; return $s->{letterbox}} | ||||||||
|
Subroutine
letterbox: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 107 | 0 | ▶ | sub allow_anonymous {my $s = shift; return $s->{allow_anonymous}} | ||||||||
|
Subroutine
allow_anonymous: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 108 | 0 | ▶ | sub forbid_secret {my $s = shift; return $s->{forbid_secret}} | ||||||||
|
Subroutine
forbid_secret: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 109 | 0 | ▶ | sub highest_local_no {my $s = shift; return $s->{highest_local_no}} | ||||||||
|
Subroutine
highest_local_no: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 110 | |||||||||||
| 111 | 1 | ▶ | sub new_from_stream { | ||||||||
|
Subroutine
new_from_stream: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 112 | 1 | my $s = {}; | |||||||||
| 113 | 1 | my $class = shift; | |||||||||
| 114 | |||||||||||
| 115 | 1 | ▶ | $class = ref($class) if ref($class); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 116 | 1 | bless $s,$class; | |||||||||
| 117 | |||||||||||
| 118 | 1 | $s->{name} = shift @{$_[0]}; | |||||||||
| 119 | 1 | my $type = shift @{$_[0]}; | |||||||||
| 120 | 1 | $s->{creation_time} = Net::Lyskom::Time->new_from_stream($_[0]); | |||||||||
| 121 | 1 | $s->{last_written} = Net::Lyskom::Time->new_from_stream($_[0]); | |||||||||
| 122 | 1 | $s->{creator} = shift @{$_[0]}; | |||||||||
| 123 | 1 | $s->{presentation} = shift @{$_[0]}; | |||||||||
| 124 | 1 | $s->{supervisor} = shift @{$_[0]}; | |||||||||
| 125 | 1 | $s->{permitted_submitters} = shift @{$_[0]}; | |||||||||
| 126 | 1 | $s->{super_conf} = shift @{$_[0]}; | |||||||||
| 127 | 1 | $s->{msg_of_day} = shift @{$_[0]}; | |||||||||
| 128 | 1 | $s->{nice} = shift @{$_[0]}; | |||||||||
| 129 | 1 | $s->{keep_commented} = shift @{$_[0]}; | |||||||||
| 130 | 1 | $s->{no_of_members} = shift @{$_[0]}; | |||||||||
| 131 | 1 | $s->{first_local_no} = shift @{$_[0]}; | |||||||||
| 132 | 1 | $s->{no_of_texts} = shift @{$_[0]}; | |||||||||
| 133 | 1 | $s->{expire} = shift @{$_[0]}; | |||||||||
| 134 | 1 | ▶ | $s->{aux_items} = [parse_array_stream(sub{Net::Lyskom::AuxItem->new_from_stream(@_)},$_[0])]; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 135 | |||||||||||
| 136 | 1 | my ($rd_prot, | |||||||||
| 137 | $original, | ||||||||||
| 138 | $secret, | ||||||||||
| 139 | $letterbox, | ||||||||||
| 140 | $allow_anonymous, | ||||||||||
| 141 | $forbid_secret, | ||||||||||
| 142 | undef, | ||||||||||
| 143 | undef) = $type =~ /./g; | ||||||||||
| 144 | 1 | $s->{rd_prot} = $rd_prot == 1; | |||||||||
| 145 | 1 | $s->{original} = $original == 1; | |||||||||
| 146 | 1 | $s->{secret} = $secret == 1; | |||||||||
| 147 | 1 | $s->{letterbox} = $letterbox == 1; | |||||||||
| 148 | 1 | $s->{allow_anonymous} = $allow_anonymous == 1; | |||||||||
| 149 | 1 | $s->{forbid_secret} = $forbid_secret == 1; | |||||||||
| 150 | |||||||||||
| 151 | 1 | return $s; | |||||||||
| 152 | } | ||||||||||
| 153 | |||||||||||
| 154 | 0 | ▶ | sub new_from_ustream { | ||||||||
|
Subroutine
new_from_ustream: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 155 | 0 | my $s = {}; | |||||||||
| 156 | 0 | my $class = shift; | |||||||||
| 157 | |||||||||||
| 158 | 0 | ▶ | $class = ref($class) if ref($class); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 159 | 0 | bless $s,$class; | |||||||||
| 160 | |||||||||||
| 161 | 0 | $s->{name} = shift @{$_[0]}; | |||||||||
| 162 | 0 | my $type = shift @{$_[0]}; | |||||||||
| 163 | 0 | $s->{highest_local_no} = shift @{$_[0]}; | |||||||||
| 164 | 0 | $s->{nice} = shift @{$_[0]}; | |||||||||
| 165 | |||||||||||
| 166 | 0 | my ($rd_prot, | |||||||||
| 167 | $original, | ||||||||||
| 168 | $secret, | ||||||||||
| 169 | $letterbox, | ||||||||||
| 170 | $allow_anonymous, | ||||||||||
| 171 | $forbid_secret ) = $type =~ /./g; | ||||||||||
| 172 | 0 | $s->{rd_prot} = $rd_prot == 1; | |||||||||
| 173 | 0 | $s->{original} = $original == 1; | |||||||||
| 174 | 0 | $s->{secret} = $secret == 1; | |||||||||
| 175 | 0 | $s->{letterbox} = $letterbox == 1; | |||||||||
| 176 | 0 | $s->{allow_anonymous} = $allow_anonymous == 1; | |||||||||
| 177 | 0 | $s->{forbid_secret} = $forbid_secret == 1; | |||||||||
| 178 | |||||||||||
| 179 | 0 | return $s; | |||||||||
| 180 | } | ||||||||||
| 181 | |||||||||||
| 182 | 1 | 1; | |||||||||