From 9c96b905ff3327ad5264b794048b6c71bbc5e4ee Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 15 Jul 2008 01:29:23 +0000 Subject: - image rating on picture page done through ajax (tested safari/ie 6&7/ff) git-svn-id: http://piwigo.org/svn/trunk@2435 68402e56-0260-453c-a942-63ccdbb3a9ee --- ws.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'ws.php') diff --git a/ws.php b/ws.php index 003e1df54..4c37eeb6d 100644 --- a/ws.php +++ b/ws.php @@ -43,7 +43,7 @@ function ws_addDefaultMethods( $arr ) $service->addMethod('pwg.getVersion', 'ws_getVersion', null, 'retrieves the PWG version'); - $service->addMethod('pwg.caddie.add', 'ws_caddie_add', + $service->addMethod('pwg.caddie.add', 'ws_caddie_add', array( 'image_id'=> array( 'flags'=>WS_PARAM_FORCE_ARRAY ), ), @@ -94,13 +94,20 @@ function ws_addDefaultMethods( $arr ) array( 'image_id' => array(), 'comments_page' => array('default'=>0 ), - 'comments_per_page' => array( - 'default' => $conf['nb_comment_page'], + 'comments_per_page' => array( + 'default' => $conf['nb_comment_page'], 'maxValue' => 2*$conf['nb_comment_page'], ), ), 'retrieves information about the given photo' ); + $service->addMethod('pwg.images.rate', 'ws_images_rate', + array( + 'image_id' => array(), + 'rate' => array(), + ), + 'rate the image' ); + $service->addMethod('pwg.images.search', 'ws_images_search', array( 'query'=>array(), -- cgit v1.2.3