mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
issue #389 partial back-end implementation of multiple formats web upload
This commit is contained in:
17
ws.php
17
ws.php
@@ -253,6 +253,18 @@ function ws_addDefaultMethods( $arr )
|
||||
array('admin_only'=>true, 'post_only'=>true)
|
||||
);
|
||||
|
||||
$service->addMethod(
|
||||
'pwg.images.formats.searchImage',
|
||||
'ws_images_formats_searchImage',
|
||||
array(
|
||||
'category_id' => array('type'=>WS_TYPE_ID, 'default'=>null),
|
||||
'filename_list' => array(),
|
||||
),
|
||||
'Search for image ids matching the provided filenames. <b>filename_list</b> must be a JSON encoded associative array of unique_id:filename.<br><br>The method returns a list of unique_id:image_id.',
|
||||
$ws_functions_root . 'pwg.images.php',
|
||||
array('admin_only'=>true, 'post_only'=>true)
|
||||
);
|
||||
|
||||
$service->addMethod(
|
||||
'pwg.images.setRank',
|
||||
'ws_images_setRank',
|
||||
@@ -452,6 +464,11 @@ function ws_addDefaultMethods( $arr )
|
||||
'maxValue' => max($conf['available_permission_levels']),
|
||||
'type' => WS_TYPE_INT|WS_TYPE_POSITIVE
|
||||
),
|
||||
'format_of' => array(
|
||||
'default' => null,
|
||||
'type' => WS_TYPE_ID,
|
||||
'info' => 'id of the extended image (name/category/level are not used if format_of is provided)',
|
||||
),
|
||||
'pwg_token' => array(),
|
||||
),
|
||||
'Add an image.
|
||||
|
||||
Reference in New Issue
Block a user