line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Monitis::Layout; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
4
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
33
|
|
5
|
|
|
|
|
|
|
require Carp; |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
5
|
use base 'Monitis'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
699
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub add_page { |
10
|
0
|
|
|
0
|
1
|
|
my ($self, @params) = @_; |
11
|
|
|
|
|
|
|
|
12
|
0
|
|
|
|
|
|
my @mandatory = qw/title/; |
13
|
0
|
|
|
|
|
|
my @optional = qw/columnCount/; |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
my $params = $self->prepare_params(\@params, \@mandatory, \@optional); |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
return $self->api_post('addPage' => $params); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub add_module_to_page { |
21
|
0
|
|
|
0
|
1
|
|
my ($self, @params) = @_; |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
my @mandatory = qw/moduleName pageId column row/; |
24
|
0
|
|
|
|
|
|
my @optional = qw/dataModuleId height/; |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
my $params = $self->prepare_params(\@params, \@mandatory, \@optional); |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
|
|
|
return $self->api_post('addPageModule' => $params); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub delete_page { |
32
|
0
|
|
|
0
|
1
|
|
my ($self, @params) = @_; |
33
|
|
|
|
|
|
|
|
34
|
0
|
|
|
|
|
|
my @mandatory = qw/pageId/; |
35
|
0
|
|
|
|
|
|
my @optional = qw//; |
36
|
|
|
|
|
|
|
|
37
|
0
|
|
|
|
|
|
my $params = $self->prepare_params(\@params, \@mandatory, \@optional); |
38
|
|
|
|
|
|
|
|
39
|
0
|
|
|
|
|
|
return $self->api_post('deletePage' => $params); |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub delete_page_module { |
43
|
0
|
|
|
0
|
1
|
|
my ($self, @params) = @_; |
44
|
|
|
|
|
|
|
|
45
|
0
|
|
|
|
|
|
my @mandatory = qw/pageModuleId/; |
46
|
0
|
|
|
|
|
|
my @optional = qw//; |
47
|
|
|
|
|
|
|
|
48
|
0
|
|
|
|
|
|
my $params = $self->prepare_params(\@params, \@mandatory, \@optional); |
49
|
|
|
|
|
|
|
|
50
|
0
|
|
|
|
|
|
return $self->api_post('deletePageModule' => $params); |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
sub get_pages { |
54
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
55
|
|
|
|
|
|
|
|
56
|
0
|
|
|
|
|
|
return $self->api_get('pages'); |
57
|
|
|
|
|
|
|
} |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
sub get_page_modules { |
60
|
0
|
|
|
0
|
1
|
|
my ($self, @params) = @_; |
61
|
|
|
|
|
|
|
|
62
|
0
|
|
|
|
|
|
my @mandatory = qw/pageName/; |
63
|
0
|
|
|
|
|
|
my @optional = qw//; |
64
|
|
|
|
|
|
|
|
65
|
0
|
|
|
|
|
|
my $params = $self->prepare_params(\@params, \@mandatory, \@optional); |
66
|
|
|
|
|
|
|
|
67
|
0
|
|
|
|
|
|
return $self->api_get('pageModules' => $params); |
68
|
|
|
|
|
|
|
} |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
__END__ |