mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
fixes #966 progression bar for sync metadata
* [Batch Manager] adding progression bar for metadata sync action * [Batch Manager] display the number of synchronized photos in the success message
This commit is contained in:
@@ -510,17 +510,31 @@ function ws_addDefaultMethods( $arr )
|
||||
array('admin_only'=>true, 'post_only'=>true)
|
||||
);
|
||||
|
||||
$service->addMethod(
|
||||
'pwg.images.setMd5sum',
|
||||
'ws_images_setMd5sum',
|
||||
array(
|
||||
'block_size' => array('default'=>1000, 'type'=>WS_TYPE_INT|WS_TYPE_POSITIVE),
|
||||
'pwg_token' => array(),
|
||||
),
|
||||
'Set md5sum column, by blocks. Returns how many md5sums were added and how many are remaining.',
|
||||
$ws_functions_root . 'pwg.images.php',
|
||||
array('admin_only'=>true, 'post_only'=>true)
|
||||
);
|
||||
$service->addMethod(
|
||||
'pwg.images.setMd5sum',
|
||||
'ws_images_setMd5sum',
|
||||
array(
|
||||
'block_size' => array('default'=>1000, 'type'=>WS_TYPE_INT|WS_TYPE_POSITIVE),
|
||||
'pwg_token' => array(),
|
||||
),
|
||||
'Set md5sum column, by blocks. Returns how many md5sums were added and how many are remaining.',
|
||||
$ws_functions_root . 'pwg.images.php',
|
||||
array('admin_only'=>true, 'post_only'=>true)
|
||||
);
|
||||
|
||||
$service->addMethod(
|
||||
'pwg.images.syncMetadata',
|
||||
'ws_images_syncMetadata',
|
||||
array(
|
||||
'image_id' => array('default'=>null,
|
||||
'type'=>WS_TYPE_ID|WS_TYPE_POSITIVE,
|
||||
'flags'=>WS_PARAM_FORCE_ARRAY),
|
||||
'pwg_token' => array(),
|
||||
),
|
||||
'Sync metadatas, by blocks. Returns how many images were synchronized',
|
||||
$ws_functions_root . 'pwg.images.php',
|
||||
array('admin_only'=>true, 'post_only'=>true)
|
||||
);
|
||||
|
||||
$service->addMethod(
|
||||
'pwg.images.deleteOrphans',
|
||||
|
||||
Reference in New Issue
Block a user