aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2008-10-11 20:37:54 +0000
committerplegall <plg@piwigo.org>2008-10-11 20:37:54 +0000
commit933b820e0799e413ab680eba1753cec506108b1e (patch)
tree88bb7cbfefa9f3707d5d3a88bc0cefbc76d8c9d9 /ws.php
parent6e9b50b27b6ae781604cdfbac2c62060cd93aac5 (diff)
feature 892 added: pwg.images.setInfo added so that once we have discovered
the photo was already in the database (thanks to pwg.images.exist), we can only set the photo metadata. git-svn-id: http://piwigo.org/svn/branches/2.0@2722 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'ws.php')
-rw-r--r--ws.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/ws.php b/ws.php
index f36053312..b23909cae 100644
--- a/ws.php
+++ b/ws.php
@@ -238,6 +238,27 @@ function ws_addDefaultMethods( $arr )
),
'check existence of a photo list'
);
+
+ $service->addMethod(
+ 'pwg.images.setInfo',
+ 'ws_images_setInfo',
+ array(
+ 'image_id' => array(),
+
+ 'name' => array('default' => null),
+ 'author' => array('default' => null),
+ 'date_creation' => array('default' => null),
+ 'comment' => array('default' => null),
+ 'categories' => array('default' => null),
+ 'tag_ids' => array('default' => null),
+ 'level' => array(
+ 'default' => 0,
+ 'maxValue' => $conf['available_permission_levels']
+ ),
+ ),
+ 'POST method only. Admin only
+<br/><b>categories</b> is a string list "category_id[,rank];category_id[,rank]" The rank is optional and is equivalent to "auto" if not given.'
+ );
}
add_event_handler('ws_add_methods', 'ws_addDefaultMethods');