merge r4344 from branch 2.0 to trunk

feature 1051: new API method pwg.images.checkFiles. This method will be useful
before asking for an update on photo files.

Enhancement in code factorization.


git-svn-id: http://piwigo.org/svn/trunk@4347 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2009-11-22 23:58:44 +00:00
parent 7ee33e9c0c
commit 858b43e87a
3 changed files with 160 additions and 20 deletions
+12
View File
@@ -250,6 +250,18 @@ function ws_addDefaultMethods( $arr )
'check existence of a photo list'
);
$service->addMethod(
'pwg.images.checkFiles',
'ws_images_checkFiles',
array(
'image_id' => array(),
'thumbnail_sum' => array('default' => null),
'file_sum' => array('default' => null),
'high_sum' => array('default' => null),
),
'check if you have updated version of your files for a given photo, for each requested file type, the answer can be "missing", "equals" or "differs"'
);
$service->addMethod(
'pwg.images.setInfo',
'ws_images_setInfo',