package Catalyst::TraitFor::Controller::jQuery::jqGrid::Search;
use 5.008;
use Moose::Role;
use JSON;
our $VERSION = '0.02';
my %qOp = (
'eq' => { pre => '', post => '', op => '=', },
{} unless $params->{_search} eq 'true';
if ( $params->{filters} ) {
return _complex_search( JSON->new->decode( $params->{filters} ) );
}
elsif ( $params->{searchField} ) {
# Simple sear
used to page
through data obtained from a back-end database. Ajax calls to the back-end
retrieve JSON data. See L<http://www.trirand.com/blog/>
This module provides a helper function to translate th