aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-12-23 10:22:51 +0000
committerplegall <plg@piwigo.org>2010-12-23 10:22:51 +0000
commit16371ed5fd9f0df6e8c3d6d349845bc2ec057081 (patch)
tree72de44930e073221bae0f0145f3c6c3b9ef46f5c /ws.php
parent732eb6bfba05cd1969fb5898e5bc50c978b2ff0b (diff)
feature 2083 added: implement method pwg.images.addSimple in core
makes admin/include/function_upload.inc.php not dependant from include/ws_functions.inc.php (moves functions file_path_for_type and ready_for_upload_message) cleaner method to initialize the upload settings git-svn-id: http://piwigo.org/svn/trunk@8249 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'ws.php')
-rw-r--r--ws.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/ws.php b/ws.php
index 1287a3c12..33006d413 100644
--- a/ws.php
+++ b/ws.php
@@ -221,6 +221,23 @@ function ws_addDefaultMethods( $arr )
);
$service->addMethod(
+ 'pwg.images.addSimple',
+ 'ws_images_addSimple',
+ array(
+ 'category' => array('default' => null),
+ 'name' => array('default' => null),
+ 'author' => array('default' => null),
+ 'comment' => array('default' => null),
+ 'level' => array(
+ 'default' => 0,
+ 'maxValue' => $conf['available_permission_levels']
+ ),
+ 'tags' => array('default' => null),
+ ),
+ 'POST method only.<br>Use the <b>image</b> field for uploading file.<br>Set the form encoding to "form-data"<br><b>category</b> is the numeric identifier of the destination category.'
+ );
+
+ $service->addMethod(
'pwg.categories.getAdminList',
'ws_categories_getAdminList',
array(),