Jifty::Action::Record::Search
The class is a base class for Jifty::Actions that serve to provide an interface to general searches through Jifty::Record objects. To use it, subclass it and override the record_class method to return the fully qualified name of the model to do searches over.
record_class
Remove validators from arguments, as well as ``mandatory'' restrictions. Remove any arguments that render as password fields, or refer to collections.
Generate additional search arguments for each field based on the following criteria:
text
char
varchar
Create field_contains and field_lacks arguments
field
date
timestamp
Create field_before, field_after, field_since and field_until arguments.
integer
float
double
decimal
numeric
Generate field_lt, field_gt, field_le and field_ge arguments, as well as a field_dwim field that accepts a prefixed comparison operator in the search value, such as >100 and !100.
>100
!100
Return a collection with the result of the search specified by the given arguments.
We interpret a undef argument as SQL NULL, and ignore empty or non-present arguments.
undef
NULL
Jifty::Action::Record, Jifty::Collection
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty
CPAN shell
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.