line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package XML::Atom::Syndication::Source; |
2
|
3
|
|
|
3
|
|
826
|
use strict; |
|
3
|
|
|
|
|
2
|
|
|
3
|
|
|
|
|
121
|
|
3
|
|
|
|
|
|
|
|
4
|
3
|
|
|
3
|
|
12
|
use base qw( XML::Atom::Syndication::Thing ); |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
585
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
XML::Atom::Syndication::Source->mk_accessors('element', 'icon', 'logo'); |
7
|
|
|
|
|
|
|
XML::Atom::Syndication::Source->mk_accessors( |
8
|
|
|
|
|
|
|
'XML::Atom::Syndication::Generator', |
9
|
|
|
|
|
|
|
'generator'); |
10
|
|
|
|
|
|
|
XML::Atom::Syndication::Source->mk_accessors('XML::Atom::Syndication::Text', |
11
|
|
|
|
|
|
|
'subtitle'); |
12
|
|
|
|
|
|
|
|
13
|
3
|
|
|
3
|
1
|
7
|
sub element_name { 'source' } |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
# This is the init method in XML::Atom::Syndication::Object. Could do |
16
|
|
|
|
|
|
|
# better. |
17
|
|
|
|
|
|
|
sub init { |
18
|
10
|
|
|
10
|
0
|
13
|
my $atom = shift; |
19
|
10
|
50
|
|
|
|
33
|
my %param = @_ == 1 ? (Elem => $_[0]) : @_; |
20
|
10
|
|
|
|
|
34
|
$atom->set_ns(\%param); |
21
|
10
|
100
|
|
|
|
25
|
unless ($atom->{elem} = $param{Elem}) { |
22
|
3
|
|
|
|
|
513
|
require XML::Elemental::Element; |
23
|
3
|
|
|
|
|
331
|
$atom->{elem} = XML::Elemental::Element->new; |
24
|
3
|
|
|
|
|
29
|
$atom->{elem}->name('{' . $atom->ns . '}' . $atom->element_name); |
25
|
|
|
|
|
|
|
} |
26
|
10
|
|
|
|
|
35
|
$atom; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |