GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  JIFTY::ACTION::RECORD::SEARCH (3)

.ds Aq ’

NAME

Jifty::Action::Record::Search - Automagic search action

CONTENTS

DESCRIPTION

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.

METHODS

    arguments

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 ALSO

Jifty::Action::Record, Jifty::Collection

LICENSE

Jifty is Copyright 2005-2010 Best Practical Solutions, LLC. Jifty is distributed under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 JIFTY::ACTION::RECORD::SEARCH (3) 2010-12-10

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.