blob: a0e997ac762a31941f2431260cf32c9d9bfa2589 (
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
|
package FS::ConfItem;
=head1 NAME
FS::ConfItem - Configuration option meta-data.
=head1 SYNOPSIS
use FS::Conf;
@config_items = $conf->config_items;
foreach $item ( @config_items ) {
$key = $item->key;
$section = $item->section;
$description = $item->description;
}
=head1 DESCRIPTION
=head1 METHODS
=over 4
=item new
=cut
sub new {
my $proto = shift;
my $class = ref($proto) || $proto;
my $self = @_ ? shift : {};
bless ($self, $class);
}
=item key
=item section
=item description
=cut
sub AUTOLOAD {
my $self = shift;
my $field = $AUTOLOAD;
$field =~ s/.*://;
$self->{$field};
}
=back
=head1 BUGS
Terse docs.
=head1 SEE ALSO
L<FS::Conf>
=cut
1;
|