diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-02-19 16:25:47 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-02-19 16:25:47 +0000 |
commit | c3614fd12c2296a7410d6bd26f35f988a4dd49f1 (patch) | |
tree | aa9cb100d39f5fedc8f9288012ab6d0628981b1a /ws.php | |
parent | c8bc5c665dff485a3a233e23c6eaa78930f8766f (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 'ws.php')
-rw-r--r-- | ws.php | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -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'), |