aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2008-09-22 21:47:03 +0000
committerplegall <plg@piwigo.org>2008-09-22 21:47:03 +0000
commitaa41a468e53655e186ea667631466bff65cc42fc (patch)
treef94ac80207a3c5721b61d02efdc484926ea3258d /ws.php
parentd2d9f7a2d263a06168a26aec8582febcf3387416 (diff)
improvement: WebService method pwg.images.add can set fill #images table
columns. rank is directly related to a category and several categories can be linked at once. Basic technical metadata {filesize, width, height} are automaticaly filled. git-svn-id: http://piwigo.org/svn/trunk@2569 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'ws.php')
-rw-r--r--ws.php24
1 files changed, 16 insertions, 8 deletions
diff --git a/ws.php b/ws.php
index 63f0d260d..6aa7b3f64 100644
--- a/ws.php
+++ b/ws.php
@@ -176,15 +176,23 @@ function ws_addDefaultMethods( $arr )
'pwg.images.add',
'ws_images_add',
array(
- 'name',
- 'category_id',
- 'file_content',
- 'file_sum',
- 'thumbnail_content',
- 'thumbnail_sum',
- 'rank',
+ 'file_content' => array(),
+ 'file_sum' => array(),
+ 'thumbnail_content' => array(),
+ 'thumbnail_sum' => 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'
+ 'POST method 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.'
);
$service->addMethod(