[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 03/13: Documentation + Tag::display
From: |
dwm |
Subject: |
[Noalyss-commit] [noalyss] 03/13: Documentation + Tag::display |
Date: |
Tue, 30 Jul 2024 04:48:01 -0400 (EDT) |
sparkyx pushed a commit to branch unstable
in repository noalyss.
commit e6afcad2fa521004f5e1188f5fcfbec36624e95a
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Thu Jul 25 17:54:33 2024 +0200
Documentation + Tag::display
---
include/class/tag.class.php | 19 ++++++++++++++++---
include/class/tag_action.class.php | 10 +++++-----
2 files changed, 21 insertions(+), 8 deletions(-)
diff --git a/include/class/tag.class.php b/include/class/tag.class.php
index 568b36d90..eeeedd984 100644
--- a/include/class/tag.class.php
+++ b/include/class/tag.class.php
@@ -50,7 +50,7 @@ class Tag
}
/**
- * Show the list of available tag
+ * @brief Show the list of available tag
* @return HTML
*/
function show_list()
@@ -61,7 +61,7 @@ class Tag
}
/**
- * Display a inner window with the detail of a tag
+ * @brief Display a inner window with the detail of a tag
*/
function form_add()
{
@@ -93,7 +93,7 @@ class Tag
$this->data->delete();
}
/***
- * query the active tag and returns the database handler
+ *@brief query the active tags and returns the database handler
*/
function query_active_tag()
{
@@ -104,6 +104,19 @@ class Tag
select tg_id,tg_name ,'G','g' ,1 from tag_group order by 2");
return $ret;
}
+ /**
+ * @brief return the HTML string display the tag
+ * @returns HTML string
+ */
+ function display()
+ {
+ $data=$this->get_data();
+ $ret="";
+ $ret.=sprintf ('<span id="tagdis_%s" class="tagcell
tagcell-color%s">',$data->t_id,$data->t_color);
+ $ret.= h($data->t_tag);
+ $ret.= '</span>';
+ return $ret;
+ }
}
?>
diff --git a/include/class/tag_action.class.php
b/include/class/tag_action.class.php
index cef954309..212a2316e 100644
--- a/include/class/tag_action.class.php
+++ b/include/class/tag_action.class.php
@@ -40,7 +40,7 @@ class Tag_Action extends Tag
}
/**
- * let select a tag to add
+ * @brief let select a tag to add
*/
function select($p_prefix="")
{
@@ -49,7 +49,7 @@ class Tag_Action extends Tag
}
/**
- * Show a button to select tag for Search
+ * @brief Show a button to select tag for Search
* @return HTML
*/
static function select_tag_search($p_prefix)
@@ -61,7 +61,7 @@ class Tag_Action extends Tag
}
/**
- * clear the search cell
+ * @brief clear the search cell
*/
static function add_clear_button($p_prefix)
{
@@ -71,7 +71,7 @@ class Tag_Action extends Tag
}
/**
- * In the screen search add this data to the cell
+ *@brief In the screen search add this data to the cell
*/
function update_search_cell($p_prefix)
{
@@ -85,7 +85,7 @@ class Tag_Action extends Tag
}
/**
- * let select a tag to add to the search
+ * @brief let select a tag to add to the search
*/
function select_search($p_prefix,$title=true)
{
- [Noalyss-commit] [noalyss] branch unstable updated (26a3f802d -> 65dd4e31c), dwm, 2024/07/30
- [Noalyss-commit] [noalyss] 05/13: Documentation, dwm, 2024/07/30
- [Noalyss-commit] [noalyss] 01/13: Task 2370: Annonce Permettre l'insertion d'annonce dans la page de connection, dwm, 2024/07/30
- [Noalyss-commit] [noalyss] 07/13: bug : followup order, dwm, 2024/07/30
- [Noalyss-commit] [noalyss] 04/13: cosmetic : INPUT style, dwm, 2024/07/30
- [Noalyss-commit] [noalyss] 08/13: typo documentation, dwm, 2024/07/30
- [Noalyss-commit] [noalyss] 02/13: TVA_CODE : missing, dwm, 2024/07/30
- [Noalyss-commit] [noalyss] 11/13: Task #2373 : check security, dwm, 2024/07/30
- [Noalyss-commit] [noalyss] 12/13: Tax #2373 : add unit test, dwm, 2024/07/30
- [Noalyss-commit] [noalyss] 10/13: Task #2373 : upgrade sql, dwm, 2024/07/30
- [Noalyss-commit] [noalyss] 03/13: Documentation + Tag::display,
dwm <=
- [Noalyss-commit] [noalyss] 06/13: Ajax call check_vatnumber must no block, dwm, 2024/07/30
- [Noalyss-commit] [noalyss] 13/13: Documentation, dwm, 2024/07/30
- [Noalyss-commit] [noalyss] 09/13: Task #2373: Détail TVA : ajout detail TVA appelable depuis menu par P0TVA (récapitulatif TVA), dwm, 2024/07/30