The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Search::QS::Options - Options query search like limits, start and sort

VERSION

version 0.04

SYNOPSIS

  use Search::QS::Options;

  my $opt = new Search::QS::Options;
  # parse query_string
  $opt->parse_qs($qs);
  # reconvert object to query_string
  print $opt->to_qs;

DESCRIPTION

This object incapsulate the options of a query.

METHODS

start()

A Search::QS::Options::Start to set/get the first record to show

limit()

A Search::QS::Options::Limit to set/get the max number of elements to show

sort()

An array (Set::Array) of Search::QS::Options::Sort with sort informations

parse($perl_struct)

$perl_struct is an HASHREF which represents a query string like the one returned by "url_params_mixed" in URI::Encode. It parses the struct and extract filter informations

to_qs()

Return a query string of the internal rappresentation of the object

reset()

Initialize the object with default values

SEE ALSO

Seach::QS::Options::Sort, Seach::QS::Options::Start, Seach::QS::Options::Limit

AUTHOR

Emiliano Bruni <info@ebruni.it>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Emiliano Bruni.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.