| 1 | package Net::Lyskom::Info; | ||||||||||
| 2 | 1 | ▶ | use base qw{Net::Lyskom::Object}; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 1 | ▶ | use Net::Lyskom::AuxItem; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use Net::Lyskom::Util qw{:all}; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | =head1 NAME | ||||||||||
| 11 | |||||||||||
| 12 | Net::Lyskom::Info - server information object. | ||||||||||
| 13 | |||||||||||
| 14 | =head1 SYNOPSIS | ||||||||||
| 15 | |||||||||||
| 16 | print "Conference presentations can be found in conference number ",$obj->conf_pres_conf; | ||||||||||
| 17 | |||||||||||
| 18 | =head1 DESCRIPTION | ||||||||||
| 19 | |||||||||||
| 20 | =over | ||||||||||
| 21 | |||||||||||
| 22 | =item ->version() | ||||||||||
| 23 | |||||||||||
| 24 | Server version- | ||||||||||
| 25 | |||||||||||
| 26 | =item ->conf_pres_conf() | ||||||||||
| 27 | |||||||||||
| 28 | Conference with conference presentations. | ||||||||||
| 29 | |||||||||||
| 30 | =item ->pers_pres_conf() | ||||||||||
| 31 | |||||||||||
| 32 | Conference with person presentations. | ||||||||||
| 33 | |||||||||||
| 34 | =item ->motd_conf() | ||||||||||
| 35 | |||||||||||
| 36 | Message of the Day conference. | ||||||||||
| 37 | |||||||||||
| 38 | =item ->kom_news_conf() | ||||||||||
| 39 | |||||||||||
| 40 | Conference where news about the server is posted. | ||||||||||
| 41 | |||||||||||
| 42 | =item ->motd_of_lyskom() | ||||||||||
| 43 | |||||||||||
| 44 | Text with MOTD for the server. | ||||||||||
| 45 | |||||||||||
| 46 | =item ->aux_item_list() | ||||||||||
| 47 | |||||||||||
| 48 | Returns a list of L<Net::Lyskom::AuxInfo> objects. | ||||||||||
| 49 | |||||||||||
| 50 | =back | ||||||||||
| 51 | |||||||||||
| 52 | =cut | ||||||||||
| 53 | |||||||||||
| 54 | 0 | ▶ | sub new_from_stream { | ||||||||
|
Subroutine
new_from_stream: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 55 | 0 | my $s = {}; | |||||||||
| 56 | 0 | my $class = shift; | |||||||||
| 57 | 0 | my $ref = shift; | |||||||||
| 58 | |||||||||||
| 59 | 0 | ▶ | $class = ref($class) if ref($class); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 60 | 0 | bless $s, $class; | |||||||||
| 61 | |||||||||||
| 62 | 0 | $s->{version} = shift @{$ref}; | |||||||||
| 63 | 0 | $s->{conf_pres_conf} = shift @{$ref}; | |||||||||
| 64 | 0 | $s->{pers_pres_conf} = shift @{$ref}; | |||||||||
| 65 | 0 | $s->{motd_conf} = shift @{$ref}; | |||||||||
| 66 | 0 | $s->{kom_news_conf} = @{$ref}; | |||||||||
| 67 | 0 | $s->{motd_of_lyskom} = @{$ref}; | |||||||||
| 68 | 0 | ▶ | $s->{aux_item_list} = [parse_array_stream(sub{Net::Lyskom::AuxInfo->new_from_stream(@_)},$ref)]; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 69 | |||||||||||
| 70 | 0 | return $s; | |||||||||
| 71 | } | ||||||||||
| 72 | |||||||||||
| 73 | 0 | ▶ | sub version {my $s = shift; return $s->{version}} | ||||||||
|
Subroutine
version: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 74 | 0 | ▶ | sub conf_pres_conf {my $s = shift; return $s->{conf_pres_conf}} | ||||||||
|
Subroutine
conf_pres_conf: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 75 | 0 | ▶ | sub pers_pres_conf {my $s = shift; return $s->{pers_pres_conf}} | ||||||||
|
Subroutine
pers_pres_conf: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 76 | 0 | ▶ | sub motd_conf {my $s = shift; return $s->{motd_conf}} | ||||||||
|
Subroutine
motd_conf: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 77 | 0 | ▶ | sub kom_news_conf {my $s = shift; return $s->{kom_news_conf}} | ||||||||
|
Subroutine
kom_news_conf: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 78 | 0 | ▶ | sub motd_of_lyskom {my $s = shift; return $s->{motd_of_lyskom}} | ||||||||
|
Subroutine
motd_of_lyskom: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 79 | 0 | ▶ | sub aux_item_list {my $s = shift; return @{$s->{aux_item_list}}} | ||||||||
|
Subroutine
aux_item_list: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 80 | |||||||||||
| 81 | 1 | 1; | |||||||||