line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Syndic8; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
24820
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
40
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
45
|
|
5
|
|
|
|
|
|
|
require RPC::XML; |
6
|
|
|
|
|
|
|
require RPC::XML::Client; |
7
|
1
|
|
|
1
|
|
570
|
use Net::Syndic8::RPCXML; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use Net::Syndic8::FeedsCollection; |
9
|
|
|
|
|
|
|
use Net::Syndic8::Base; |
10
|
|
|
|
|
|
|
our @ISA = qw(Net::Syndic8::Base); |
11
|
|
|
|
|
|
|
our $VERSION = '0.04'; |
12
|
|
|
|
|
|
|
attributes (qw/Gate FeedsColl/); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub _init { my $self=shift;$self->Init(@_);return 1} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub Init { |
17
|
|
|
|
|
|
|
my ($self)=@_; |
18
|
|
|
|
|
|
|
$self->Gate(new Net::Syndic8::RPCXML:: ('http://www.syndic8.com/xmlrpc.php')); |
19
|
|
|
|
|
|
|
$self->FeedsColl( |
20
|
|
|
|
|
|
|
new Net::Syndic8::FeedsCollection ( |
21
|
|
|
|
|
|
|
cache=>{}, |
22
|
|
|
|
|
|
|
gate=>$self->Gate() |
23
|
|
|
|
|
|
|
)); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub FindSites { |
27
|
|
|
|
|
|
|
my $self=shift; |
28
|
|
|
|
|
|
|
return $self->FeedsColl()->FindSites(@_); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
sub FindFeeds { |
31
|
|
|
|
|
|
|
my $self=shift; |
32
|
|
|
|
|
|
|
return $self->FeedsColl()->FindFeeds(@_); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
# Preloaded methods go here. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
__END__ |