| 1 | package XML::Atom::Ext::OpenSearch::Query; | ||
| 2 | |||
| 3 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 3 | ▶ | use base qw( XML::Atom::Base ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 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 | 3 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 50 | 3 | __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 | 1 | ▶ | sub element_name { |
|
Subroutine
element_name: called CC=1 SCAR=0.0
Pod
documented
| |||
| 65 | 1 | return 'Query'; | |
| 66 | } | ||
| 67 | |||
| 68 | =head2 element_ns( ) | ||
| 69 | |||
| 70 | Returns the opensearch namespace, C<http://a9.com/-/spec/opensearch/1.1>. | ||
| 71 | |||
| 72 | =cut | ||
| 73 | |||
| 74 | 3 | ▶ | sub element_ns { |
|
Subroutine
element_ns: called CC=1 SCAR=0.0
Pod
documented
| |||
| 75 | 3 | return XML::Atom::Ext::OpenSearch->element_ns; | |
| 76 | } | ||
| 77 | |||
| 78 | =head1 AUTHOR | ||
| 79 | |||
| 80 | Brian Cassidy E<lt>bricas@cpan.orgE<gt> | ||
| 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<XML::Atom::Ext::OpenSearch> | ||
| 94 | |||
| 95 | =back | ||
| 96 | |||
| 97 | =cut | ||
| 98 | |||
| 99 | 3 | 1; | |