aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-02-19 16:25:47 +0000
committerrvelices <rv-github@modusoptimus.com>2007-02-19 16:25:47 +0000
commitc3614fd12c2296a7410d6bd26f35f988a4dd49f1 (patch)
treeaa9cb100d39f5fedc8f9288012ab6d0628981b1a /ws.php
parentc8bc5c665dff485a3a233e23c6eaa78930f8766f (diff)
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
Diffstat (limited to '')
-rw-r--r--ws.php21
1 files changed, 21 insertions, 0 deletions
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'),