line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package ProjectData; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
@ISA = qw(XPlanner::Project); |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
package XPlanner::Project; |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
1143
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
9
|
1
|
|
|
1
|
|
6
|
use base qw(XPlanner::Object); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
191
|
|
10
|
|
|
|
|
|
|
|
11
|
0
|
|
|
0
|
|
|
sub _proxy_class { "ProjectData" } |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 NAME |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
XPlanner::Project - projects in XPlanner |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 SYNOPSIS |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
use XPlanner; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
my $xp->login(...); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
my $project = $xp->projects->{"Project Name"}; |
26
|
|
|
|
|
|
|
$project->delete; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
my $iterations = $project->iterations; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 DESCRIPTION |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
An object representing a project within XPlanner. |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head2 Methods |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head3 iterations |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
my $iterations = $project->iterations; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Lists all iterations of this project keyed by name. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=cut |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
sub iterations { |
47
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
48
|
|
|
|
|
|
|
|
49
|
0
|
|
|
|
|
|
return $self->_map_from_soap('name', 'getIterations', |
50
|
|
|
|
|
|
|
'XPlanner::Iteration'); |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head3 delete |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
$project->delete; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Deletes this project from XPlanner. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=cut |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
sub delete { |
63
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
64
|
0
|
|
|
|
|
|
my $proxy = $self->{_proxy}; |
65
|
|
|
|
|
|
|
|
66
|
0
|
|
|
|
|
|
$proxy->removeProject($self->{id}); |
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=cut |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
1; |