From 4f1d7e155a56280d098b863e5267823ac5d465e0 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sat, 2 Dec 2023 18:20:27 +0100 Subject: [PATCH] Improve documentation --- include/lib/manage_table_sql.class.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/include/lib/manage_table_sql.class.php b/include/lib/manage_table_sql.class.php index ae181b58c..98951e7e8 100644 --- a/include/lib/manage_table_sql.class.php +++ b/include/lib/manage_table_sql.class.php @@ -75,6 +75,26 @@ * @endcode * + * The afterSaveFct is the function called after saving, the param is the HTML Element + @code PHP +// to redirect : we take the pk_id and redirect to another location + + $obj=$this->get_object_name(); + $url=DRIVINGSCHOOL_URL; + $script=<<