line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyright (c) 2016 CentralNic Ltd. All rights reserved. This program is |
2
|
|
|
|
|
|
|
# free software; you can redistribute it and/or modify it under the same |
3
|
|
|
|
|
|
|
# terms as Perl itself. |
4
|
|
|
|
|
|
|
# |
5
|
|
|
|
|
|
|
# $Id: Update.pm,v 1.5 2011/12/14 12:02:08 gavin Exp $ |
6
|
|
|
|
|
|
|
package Net::EPP::Frame::Command::Update; |
7
|
1
|
|
|
1
|
|
335
|
use Net::EPP::Frame::Command::Update::Contact; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
19
|
|
8
|
1
|
|
|
1
|
|
347
|
use Net::EPP::Frame::Command::Update::Domain; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
9
|
1
|
|
|
1
|
|
376
|
use Net::EPP::Frame::Command::Update::Host; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
46
|
|
10
|
1
|
|
|
1
|
|
5
|
use base qw(Net::EPP::Frame::Command); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
63
|
|
11
|
1
|
|
|
1
|
|
3
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
204
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=pod |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 NAME |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
Net::EPP::Frame::Command::Update - an instance of L |
18
|
|
|
|
|
|
|
for the EPP CupdateE> command. |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 OBJECT HIERARCHY |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
L |
23
|
|
|
|
|
|
|
+----L |
24
|
|
|
|
|
|
|
+----L |
25
|
|
|
|
|
|
|
+----L |
26
|
|
|
|
|
|
|
+----L |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 METHODS |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub add { |
33
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
34
|
0
|
|
|
|
|
|
foreach my $el ($self->getNode('update')->getChildNodes->shift->getChildNodes) { |
35
|
0
|
|
|
|
|
|
my (undef, $name) = split(/:/, $el->localName, 2); |
36
|
0
|
0
|
|
|
|
|
return $el if ($name eq 'add'); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub rem { |
41
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
42
|
0
|
|
|
|
|
|
foreach my $el ($self->getNode('update')->getChildNodes->shift->getChildNodes) { |
43
|
0
|
|
|
|
|
|
my (undef, $name) = split(/:/, $el->localName, 2); |
44
|
0
|
0
|
|
|
|
|
return $el if ($name eq 'rem'); |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub chg { |
50
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
51
|
0
|
|
|
|
|
|
foreach my $el ($self->getNode('update')->getChildNodes->shift->getChildNodes) { |
52
|
0
|
|
|
|
|
|
my (undef, $name) = split(/:/, $el->localName, 2); |
53
|
0
|
0
|
|
|
|
|
return $el if ($name eq 'chg'); |
54
|
|
|
|
|
|
|
} |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=pod |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
my $el = $frame->add; |
60
|
|
|
|
|
|
|
my $el = $frame->rem; |
61
|
|
|
|
|
|
|
my $el = $frame->chg; |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
These methods return the elements that should be used to contain the changes |
64
|
|
|
|
|
|
|
to be made to the object (ie C, C, C). |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 AUTHOR |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
CentralNic Ltd (http://www.centralnic.com/). |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 COPYRIGHT |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
This module is (c) 2016 CentralNic Ltd. This module is free software; you can |
73
|
|
|
|
|
|
|
redistribute it and/or modify it under the same terms as Perl itself. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 SEE ALSO |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=over |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=item * L |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=back |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=cut |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
1; |