Documentation + Tag::display
This commit is contained in:
parent
06712b2b6b
commit
e6afcad2fa
2 changed files with 21 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue