X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/15b67fd51a4e9d274205f59a9f50c4ce86b5e176..6c63020409f486043d63c3a324db96a4a162ff67:/SL/Controller/TopQuickSearch/Base.pm?ds=inline diff --git a/SL/Controller/TopQuickSearch/Base.pm b/SL/Controller/TopQuickSearch/Base.pm new file mode 100644 index 000000000..18c3b88e8 --- /dev/null +++ b/SL/Controller/TopQuickSearch/Base.pm @@ -0,0 +1,87 @@ +package SL::Controller::TopQuickSearch::Base; + +use strict; +use parent qw(Rose::Object); + +sub auth { ... } + +sub name { ... } + +sub description_config { ... } + +sub description_field { ... } + +sub query_autocomplete { ... } + +sub select_autocomplete { ... } + +sub do_search { ... } + +1; + +__END__ + +=encoding utf-8 + +=head1 NAME + +SL::Controller::TopQuickSearch::Base - base interface class for quick search plugins + +=head1 DESCRIPTION + +see L + +=head1 INTERFACE + +An implementation must provide these functions. + +=over 4 + +=item C + +Must return a string used for access checks. Empty string or undef will mean +unrestricted access. + +=item C + +Internal name, must be plain ASCII. + +=item C + +Localized name used in the configuration (NYI) + +=item C + +Localized name used in the search field as hint. Should fit into an input of +length 20. + +=item C + +Needs to take C from C<$::form> and must return an arrayref of JSON +serializable matches fit for jquery autocomplete. + +=item C + +Needs to take C from C<$::form> and must return a redirect string to be +used with C pointing to a representation of +the selected object. + +=item C + +Needs to take C from C<$::form> and must return a redirect string to be +used with C pointing to a representation of +the search results. If the search will display only only one match, it should +instead return the same result as if that object was selected directly using +C. + +=back + +=head1 BUGS + +None yet :) + +=head1 AUTHOR + +Sven Schöling Es.schoeling@linet-services.deE + +=cut