[Jifty-commit] r4776 - in Net-Jifty: .

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Thu Dec 27 16:32:03 EST 2007


Author: sartak
Date: Thu Dec 27 16:32:02 2007
New Revision: 4776

Modified:
   Net-Jifty/   (props changed)
   Net-Jifty/Changes
   Net-Jifty/lib/Net/Jifty.pm

Log:
 r49627 at onn:  sartak | 2007-12-27 16:31:47 -0500
 Add support for /=/search/


Modified: Net-Jifty/Changes
==============================================================================
--- Net-Jifty/Changes	(original)
+++ Net-Jifty/Changes	Thu Dec 27 16:32:02 2007
@@ -2,6 +2,7 @@
 
 0.04
         Work around an HTTP::Cookies bug with 'localhost'
+        Add support for /=/search/
 
 0.03    Wed Nov 28 17:03:17
         Fix support for DELETE/PUT (patch by HANENKAMP)

Modified: Net-Jifty/lib/Net/Jifty.pm
==============================================================================
--- Net-Jifty/lib/Net/Jifty.pm	(original)
+++ Net-Jifty/lib/Net/Jifty.pm	Thu Dec 27 16:32:02 2007
@@ -433,6 +433,21 @@
     return $self->get(["model", $model, $key, $value]);
 }
 
+=head2 search MODEL, FIELDS[, OUTCOLUMN]
+
+Searches for all objects of type C<MODEL> that satisfy C<FIELDS>. The optional
+C<OUTCOLUMN> defines the output column, in case you don't want the entire
+records.
+
+=cut
+
+sub search {
+    my $self = shift;
+    my $model = $self->canonicalize_model(shift);
+
+    return $self->get(["search", $model, @_]);
+}
+
 =head2 canonicalize_package TYPE, PACKAGE
 
 Prepends C<APPNAME.TYPE.> to C<PACKAGE> unless it's there already.


More information about the Jifty-commit mailing list