summaryrefslogtreecommitdiff
path: root/FS/FS/svc_CGP_Mixin.pm
blob: 2eee37a310040dbb078f11236e81b61e20d58ec7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
package FS::svc_CGP_Mixin;

use strict;

=head1 NAME

FS::svc_CGP_Mixin - Mixin class for svc_classes which can be related to cgp_rule

=head1 SYNOPSIS

package FS::svc_table;
use base qw( FS::svc_CGP_Mixin FS::svc_Common );

=head1 DESCRIPTION

This is a mixin class for svc_ classes that are exported to Communigate Pro.

It currently contains timezone data for domains and accounts.

=head1 METHODS

=over 4

=item cgp_timezone

Returns an arrayref of Communigate time zones.

=cut

#http://www.communigate.com/pub/client/TimeZones.data 
#http://www.communigate.com/cgatepro/WebMail.html#Settings 

sub cgp_timezone_values {
  #my $self = shift; #i'm used as a class and object method but just return data

  [ '',
    'HostOS',
    '(+0100) Algeria/Congo',
    '(+0200) Egypt/South Africa',
    '(+0300) Saudi Arabia',
    '(+0400) Oman',
    '(+0500) Pakistan',
    '(+0600) Bangladesh',
    '(+0700) Thailand/Vietnam',
    '(+0800) China/Malaysia',
    '(+0900) Japan/Korea',
    '(+1000) Queensland',
    '(+1100) Micronesia',
    '(+1200) Fiji',
    '(+1300) Tonga/Kiribati',
    '(+1400) Christmas Islands',
    '(-0100) Azores/Cape Verde',
    '(-0200) Fernando de Noronha',
    '(-0300) Argentina/Uruguay',
    '(-0400) Venezuela/Guyana',
    '(-0500) Haiti/Peru',
    '(-0600) Central America',
    '(-0700) Arisona', #Arizona?
    '(-0800) Adamstown',
    '(-0900) Marquesas Islands',
    '(-1000) Hawaii/Tahiti',
    '(-1100) Samoa',
    'Asia/Afghanistan',
    'Asia/India',
    'Asia/Iran',
    'Asia/Iraq',
    'Asia/Israel',
    'Asia/Jordan',
    'Asia/Lebanon',
    'Asia/Syria',
    'Australia/Adelaide',
    'Australia/East',
    'Australia/NorthernTerritory',
    'Europe/Central',
    'Europe/Eastern',
    'Europe/Moscow',
    'Europe/Western',
    'GMT (+0000)',
    'Newfoundland',
    'NewZealand/Auckland',
    'NorthAmerica/Alaska',
    'NorthAmerica/Atlantic',
    'NorthAmerica/Central',
    'NorthAmerica/Eastern',
    'NorthAmerica/Mountain',
    'NorthAmerica/Pacific',
    'Russia/Ekaterinburg',
    'Russia/Irkutsk',
    'Russia/Kamchatka',
    'Russia/Krasnoyarsk',
    'Russia/Magadan',
    'Russia/Novosibirsk',
    'Russia/Vladivostok',
    'Russia/Yakutsk',
    'SouthAmerica/Brasil',
    'SouthAmerica/Chile',
    'SouthAmerica/Paraguay',
  ];
}

=item cgp_emptytrash_values

Returns an arrayref of possible EmptyTrash values.

=cut

#http://www.communigate.com/cgatepro/WebMail.html#Trash

sub cgp_emptytrash_values {
  #my $self = shift; #i'm used as a class and object method but just return data

  [ '', #<option value="-1">default(92 days)
    '0 seconds',
    '60 minutes',
    '2 hours',
    '3 hours',
    '6 hours',
    '12 hours',
    '24 hours',
    '2 days',
    '3 days',
    '7 days',
    '10 days',
    '2 weeks',
    '3 weeks',
    '30 days',
    '60 days',
    '90 days',
    '180 days',
    '360 days',
  ];
}

=item cgp_certificatetype_values

Returns an arrayref of possible CertificateType values.

=cut

#http://www.communigate.com/cgatepro/PKI.html

sub cgp_certificatetype_values {

  [ '', #<option value="-1">default(Test)
    'Enabled',
    'Disabled',
    'Test',
  ];

}

=back

=head1 BUGS

=head1 SEE ALSO

=cut

1;