line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catalyst::Model::LDAP::Search; |
2
|
|
|
|
|
|
|
# ABSTRACT: Convenience methods for Net::LDAP::Search |
3
|
|
|
|
|
|
|
|
4
|
5
|
|
|
5
|
|
33
|
use strict; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
167
|
|
5
|
5
|
|
|
5
|
|
26
|
use warnings; |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
136
|
|
6
|
5
|
|
|
5
|
|
24
|
use base qw/Net::LDAP::Search/; |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
1373
|
|
7
|
5
|
|
|
5
|
|
30472
|
use Module::Runtime qw/ require_module /; |
|
5
|
|
|
|
|
5272
|
|
|
5
|
|
|
|
|
39
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub init { |
11
|
0
|
|
|
0
|
1
|
|
my ( $self, $class ) = @_; |
12
|
|
|
|
|
|
|
|
13
|
0
|
|
|
|
|
|
require_module($class); |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
foreach my $entry ( @{ $self->{entries} } ) { |
|
0
|
|
|
|
|
|
|
16
|
0
|
|
|
|
|
|
bless $entry, $class; |
17
|
0
|
|
|
|
|
|
$entry->_ldap_client( $self->parent ); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=pod |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=encoding UTF-8 |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 NAME |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
Catalyst::Model::LDAP::Search - Convenience methods for Net::LDAP::Search |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 VERSION |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
version 0.20 |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 DESCRIPTION |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Subclass of L<Net::LDAP::Search>, with an additional method to rebless |
41
|
|
|
|
|
|
|
the entries. See L<Catalyst::Model::LDAP::Entry> for more |
42
|
|
|
|
|
|
|
information. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 METHODS |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head2 init |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Reblesses search results as objects of the specified class. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 SEE ALSO |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=over 4 |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=item * L<Catalyst::Model::LDAP> |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=item * L<Catalyst::Model::LDAP::Entry> |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=back |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 AUTHORS |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=over 4 |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=item * Marcus Ramberg |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=back |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 LICENSE |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
71
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 AUTHOR |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
Gavin Henry <ghenry@surevoip.co.uk> |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
This software is copyright (c) 2017 by Gavin Henry. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
82
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=cut |