From dcf57e43e461f1a2bca65ba4befd74a20163d788 Mon Sep 17 00:00:00 2001 From: hkosaka Date: Mon, 6 Feb 2012 05:53:39 +0000 Subject: [PATCH] 2012-02-06 Hirofumi Kosaka * include/functions_api.php: Merged from 4.0. Add a missing description of get_alert_template() in its leading comment. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5488 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_api.php | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 851391854c..7b1ec7ce28 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-02-06 Hirofumi Kosaka + + * include/functions_api.php: Merged from 4.0. Add a missing + description of get_alert_template() in its leading comment. + 2012-02-03 Miguel de Dios * pandoradb.sql, extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql: change the diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index 59d3336772..db387725ad 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -2209,6 +2209,19 @@ function set_delete_alert_template($id_template, $thrash1, $other, $thrash3) { } } +/** + * Get an alert tamplate, and print the result like a csv. + * + * @param string $id_template Id of the template to get. + * @param $thrash1 Don't use. + * @param array $other Don't use + * + * example: + * + * api.php?op=get&op2=alert_template&id=25 + * + * @param $thrash3 Don't use + */ function get_alert_template($id_template, $thrash1, $other, $thrash3) { $filter_templates = false;