From c3614fd12c2296a7410d6bd26f35f988a4dd49f1 Mon Sep 17 00:00:00 2001 From: rvelices Date: Mon, 19 Feb 2007 16:25:47 +0000 Subject: web service: added method to query search elements picture: small correction on my last commit monthly calendar nice view: always use getimagesize instead of guessing the size query search: improved results (filename is searched separately) and sometimes less sql queries than before git-svn-id: http://piwigo.org/svn/trunk@1837 68402e56-0260-453c-a942-63ccdbb3a9ee --- ws.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'ws.php') diff --git a/ws.php b/ws.php index a196d49e0..740f5b03e 100644 --- a/ws.php +++ b/ws.php @@ -81,6 +81,27 @@ function ws_addDefaultMethods( $arr ) array('image_id'), 'retrieves information about the given photo' ); + $service->addMethod('pwg.images.search', 'ws_images_search', + array( + 'query'=>array(), + 'per_page' => array('default'=>100, 'maxValue'=>$conf['ws_max_images_per_page']), + 'page' => array('default'=>0), + 'order' => array('default'=>null), + 'f_min_rate' => array( 'default'=> null ), + 'f_max_rate' => array( 'default'=> null ), + 'f_min_hit' => array( 'default'=> null ), + 'f_max_hit' => array( 'default'=> null ), + 'f_min_date_available' => array( 'default'=> null ), + 'f_max_date_available' => array( 'default'=> null ), + 'f_min_date_created' => array( 'default'=> null ), + 'f_max_date_created' => array( 'default'=> null ), + 'f_min_ratio' => array( 'default'=> null ), + 'f_max_ratio' => array( 'default'=> null ), + 'f_with_thumbnail' => array( 'default'=> false ), + ), + 'Returns elements for the corresponding query search.' + ); + $service->addMethod('pwg.session.getStatus', 'ws_session_getStatus', null, '' ); $service->addMethod('pwg.session.login', 'ws_session_login', array('username', 'password'), -- cgit v1.2.3