mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
Issue #1193 : Tag Manager redesign
* Create the new design of tag manager * Replace all actions by ajax actions * Add delete, rename, duplicate and merge tag's functions in the Piwigo API * Modification of group manager to match both designs
This commit is contained in:
@@ -640,12 +640,69 @@ function ws_addDefaultMethods( $arr )
|
||||
$service->addMethod( // TODO: create multiple tags
|
||||
'pwg.tags.add',
|
||||
'ws_tags_add',
|
||||
array('name'),
|
||||
array(
|
||||
'name' => array(),
|
||||
'pwg_token' => array(),
|
||||
),
|
||||
'Adds a new tag.',
|
||||
$ws_functions_root . 'pwg.tags.php',
|
||||
array('admin_only'=>true)
|
||||
);
|
||||
|
||||
$service->addMethod(
|
||||
'pwg.tags.delete',
|
||||
'ws_tags_delete',
|
||||
array(
|
||||
'tag_id' => array('type'=>WS_TYPE_ID,
|
||||
'flags'=>WS_PARAM_FORCE_ARRAY),
|
||||
'pwg_token' => array(),
|
||||
),
|
||||
'Delete tag(s) by ID.',
|
||||
$ws_functions_root . 'pwg.tags.php',
|
||||
array('admin_only'=>true)
|
||||
);
|
||||
|
||||
$service->addMethod(
|
||||
'pwg.tags.rename',
|
||||
'ws_tags_rename',
|
||||
array(
|
||||
'tag_id' => array('type'=>WS_TYPE_ID),
|
||||
'new_name' => array(),
|
||||
'pwg_token' => array(),
|
||||
),
|
||||
'Rename tag',
|
||||
$ws_functions_root . 'pwg.tags.php',
|
||||
array('admin_only'=>true)
|
||||
);
|
||||
|
||||
$service->addMethod(
|
||||
'pwg.tags.duplicate',
|
||||
'ws_tags_duplicate',
|
||||
array(
|
||||
'tag_id' => array('type'=>WS_TYPE_ID),
|
||||
'copy_name' => array(),
|
||||
'pwg_token' => array(),
|
||||
),
|
||||
'Create a copy of a tag',
|
||||
$ws_functions_root . 'pwg.tags.php',
|
||||
array('admin_only'=>true, 'post_only'=>true)
|
||||
);
|
||||
|
||||
$service->addMethod(
|
||||
'pwg.tags.merge',
|
||||
'ws_tags_merge',
|
||||
array(
|
||||
'destination_tag_id' => array('type'=>WS_TYPE_ID,
|
||||
'info'=>'Is not necessarily part of groups to merge'),
|
||||
'merge_tag_id' => array('flags'=>WS_PARAM_FORCE_ARRAY,
|
||||
'type'=>WS_TYPE_ID),
|
||||
'pwg_token' => array(),
|
||||
),
|
||||
'Merge tags in one other group',
|
||||
$ws_functions_root . 'pwg.tags.php',
|
||||
array('admin_only'=>true, 'post_only'=>true)
|
||||
);
|
||||
|
||||
$service->addMethod(
|
||||
'pwg.images.exist',
|
||||
'ws_images_exist',
|
||||
|
||||
Reference in New Issue
Block a user