line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package XML::Atom::Ext::OpenSearch::Query; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
6343
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
44
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
5
|
use base qw( XML::Atom::Base ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
690
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
XML::Atom::Ext::OpenSearch::Query - OpenSearch query element |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 SYNOPSIS |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
my $query = XML::Atom::Ext:OpenSearch::Query->new; |
15
|
|
|
|
|
|
|
$query->title( 'foo' ); |
16
|
|
|
|
|
|
|
$feed->add_Query( $query ); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 DESCRIPTION |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
This elements represents query that was or can be performed by the client. It |
21
|
|
|
|
|
|
|
can be used to echo the request, or even provide an example query. Review |
22
|
|
|
|
|
|
|
the specification (http://www.opensearch.org/Specifications/OpenSearch/1.1#OpenSearch_Query_element) |
23
|
|
|
|
|
|
|
for more information. |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 METHODS |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head2 role( $role ) |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head2 title( $title ) |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head2 totalResults( $total ) |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head2 searchTerms( $terms ) |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head2 count( $count ) |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head2 startIndex( $index ) |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head2 startPage( $page ) |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head2 language( $language ) |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head2 outputEncoding( $encoding ) |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head2 inputEncoding( $encoding ) |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=cut |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
BEGIN { |
50
|
|
|
|
|
|
|
__PACKAGE__->mk_attr_accessors( |
51
|
|
|
|
|
|
|
qw( |
52
|
|
|
|
|
|
|
role title totalResults searchTerms count startIndex |
53
|
|
|
|
|
|
|
startPage language outputEncoding inputEncoding |
54
|
|
|
|
|
|
|
) |
55
|
|
|
|
|
|
|
); |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head2 element_name( ) |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Returns 'Query'. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=cut |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
sub element_name { |
65
|
|
|
|
|
|
|
return 'Query'; |
66
|
|
|
|
|
|
|
} |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head2 element_ns( ) |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Returns the opensearch namespace, C. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=cut |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
sub element_ns { |
75
|
|
|
|
|
|
|
return XML::Atom::Ext::OpenSearch->element_ns; |
76
|
|
|
|
|
|
|
} |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 AUTHOR |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Brian Cassidy Ebricas@cpan.orgE |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
Copyright 2007-2011 by Brian Cassidy |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
87
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head1 SEE ALSO |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=over 4 |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=item * L |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=back |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=cut |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
1; |