From 3ab3cf984eff917421cdd36f1fdc73be51d69a8a Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sun, 15 Oct 2017 00:54:27 +0200 Subject: [PATCH] Fix Doxygen issue : @example must be in a function otherwise the detailed section of Doxygen disappear --- include/lib/http_input.class.php | 1 + include/lib/manage_table_sql.class.php | 20 +++++++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/include/lib/http_input.class.php b/include/lib/http_input.class.php index f2b71b673..db04220aa 100644 --- a/include/lib/http_input.class.php +++ b/include/lib/http_input.class.php @@ -38,6 +38,7 @@ class HttpInput * @param $p_name name of the variable * @param $p_type type of the variable (number,string,date,array) * @throws Exception if the variable doesn't exist or type incorrect + * @todo Add regex:pattern */ function check_type($p_name, $p_type) { diff --git a/include/lib/manage_table_sql.class.php b/include/lib/manage_table_sql.class.php index b428d8ee7..4ba114216 100644 --- a/include/lib/manage_table_sql.class.php +++ b/include/lib/manage_table_sql.class.php @@ -18,17 +18,17 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // Copyright Author Dany De Bontridder danydb@aevalys.eu -///@file -///@brief Definition Manage_Table_SQL +/*!\file + * \brief Definition Manage_Table_SQL + * + */ -/** - * @brief Purpose is to propose a librairy to display a table content +/*!\brief Purpose is to propose a librairy to display a table content * and allow to update and delete row , handle also the ajax call * thanks the script managetable.js - * * Code for ajax , here we see the ajax_input for creating a dg box - @code + \code $objet->set_pk($p_id); $objet->set_object_name($objet_name); @@ -55,9 +55,9 @@ echo $xml->save_XML(); @endcode * @see ManageTable.js + * */ -///@example test_manage_table_sql.php -/// For ajax @example ajax_manage_table_sql.php + class Manage_Table_SQL { @@ -85,6 +85,8 @@ class Manage_Table_SQL * @brief Constructor : set the label to the column name, * the order of the column , set the properties and the * permission for updating or deleting row + * @example test_manage_table_sql.php + * @example ajax_manage_table_sql.php */ function __construct(Data_SQL $p_table) @@ -694,7 +696,7 @@ function check() $js=sprintf("%s.delete('%s','%s');", $this->object_name, $p_row[$this->table->primary_key], $this->object_name ); - echo HtmlInput::image_click("delete.gif", $js, _("Effacer")); + echo HtmlInput::image_click("trash-24.gif", $js, _("Effacer")); echo ""; } }