Query: jifty::action::record::search
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Jifty::Action::Record::Search(3pm) User Contributed Perl Documentation Jifty::Action::Record::Search(3pm)NAMEJifty::Action::Record::Search - Automagic search actionDESCRIPTIONThe 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.METHODSarguments 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" or "varchar" fields Create "field"_contains and "field"_lacks arguments "date", or "timestamp" fields Create "field"_before, "field"_after, "field"_since and "field"_until arguments. "integer", "float", "double", "decimal" or "numeric" fields 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". take_action 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.SEE ALSOJifty::Action::Record, Jifty::CollectionLICENSEJifty is Copyright 2005-2010 Best Practical Solutions, LLC. Jifty is distributed under the same terms as Perl itself. perl v5.14.2 2010-12-10 Jifty::Action::Record::Search(3pm)
Similar Topics in the Unix Linux Community |
---|
Find top N values for field X based on field Y's value |
Separate lines from text file |
Unix Remove repetitive alphabets |
read lines between search pattern |
Search and replace the last field |