From 68afc9289d29b675fc8adc76707e940da6f20217 Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Tue, 19 Feb 2019 14:51:40 +0100 Subject: [PATCH] Documentation improvements Former-commit-id: ad2155056dd26014f169e277eec2ac7cd463ea3a --- pandora_console/include/functions_api.php | 42 ++++++++++++++--------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index 8cc6290ca6..e57dd31013 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -6175,17 +6175,29 @@ function api_set_planned_downtimes_deleted($id, $thrash1, $thrash2, $returnType) /** * Create a new planned downtime. + * e.g.: api.php?op=set&op2=planned_downtimes_created&id=pepito&other=testing|08-22-2015|08-31-2015|0|1|1|1|1|1|1|1|17:06:00|19:06:00|1|31|quiet|periodically|weekly&other_mode=url_encode_separator_| * * @param $id name of planned downtime. * @param $thrash1 Don't use. - * @param array $other it's array, $other as param is ;;;;; - * ;;;;;;;; - * ;;;;; in this order - * and separator char (after text ; ) and separator (pass in param othermode as othermode=url_encode_separator_) - * example: - * - * api.php?op=set&op2=planned_downtimes_created&id=pepito&other=testing|08-22-2015|08-31-2015|0|1|1|1|1|1|1|1|17:06:00|19:06:00|1|31|quiet|periodically|weekly&other_mode=url_encode_separator_| - * + * @param array $other Contains the following elements (in order): + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * * @param $thrash3 Don't use. */ @@ -6249,20 +6261,16 @@ function api_set_planned_downtimes_created($id, $thrash1, $other, $thrash3) /** * Add new items to planned Downtime. + * e.g.: api.php?op=set&op2=planned_downtimes_additem&id=123&other=1;2;3;4|Status;Unkown_modules&other_mode=url_encode_separator_| * * @param $id id of planned downtime. * @param $thrash1 Don't use. - * @param array $other it's array, $other as param is ; - * in this order - * and separator char (after text ; ) and separator (pass in param othermode as othermode=url_encode_separator_) - * example: - * - * api.php?op=set&op2=planned_downtimes_additem&id=123&other=1;2;3;4|Status;Unkown_modules&other_mode=url_encode_separator_| - * + * @param array $other + * The first index contains a list of agent Ids. + * The second index contains a list of module names. + * The list separator is the character ';'. * @param $thrash3 Don't use. */ - - function api_set_planned_downtimes_additem($id, $thrash1, $other, $thrash3) { if (defined('METACONSOLE')) {