diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 65a8f817f61..ae103839c90 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -7926,10 +7926,11 @@ function roundUpToNextMultiple($n, $x = 5) * @param string $html optional : label of badge with html * @param string $type type of badge : Primary Secondary Success Danger Warning Info Light Dark status0 status1 status2 status3 status4 status5 status6 status7 status8 status9 * @param string $mode default '' , pill, dot + * @param string $url the url for link * @param array $params various params for future : recommended rather than adding more fuction arguments - * @return string + * @return string html badge */ -function dol_get_badge($label, $html = '', $type = 'primary', $mode = '', $url = '', $params=array()) +function dol_get_badge($label, $html = '', $type = 'primary', $mode = '', $url = '', $params = array()) { $attr=array( @@ -7982,7 +7983,9 @@ function dol_get_badge($label, $html = '', $type = 'primary', $mode = '', $url = * @param string $html optional : label of badge with html * @param string $type type of badge : Primary Secondary Success Danger Warning Info Light Dark status0 status1 status2 status3 status4 status5 status6 status7 status8 status9 * @param string $mode default '' , pill, dot - * @param array $params various params for future : recommended rather than adding more function arguments + * @param string $url the url for link + * @param array $params various params for future : recommended rather than adding more function arguments * + * @return void print html bagde */ function dol_print_badge($label, $html = '', $type = 'primary', $mode = '', $url = '', $params = array()) { @@ -7993,10 +7996,10 @@ function dol_print_badge($label, $html = '', $type = 'primary', $mode = '', $url * @param string $statusLabel label of badge no html : use in alt attribute for accessibility * @param string $html optional : label of badge with html * @param string $statusType status0 status1 status2 status3 status4 status5 status6 status7 status8 status9 : image name or badge name - * @param int $displayMode for retrocompatibility 0=label only, 1=label + Picto, 2=Picto, 3=Picto + label - * @param string $url + * @param int $displayMode for retrocompatibility 0=label only, 1=label + Picto, 2=Picto, 3=Picto + label + * @param string $url the url for link * @param array $params various params for future : recommended rather than adding more function arguments - * @return string + * @return string html status */ function dol_get_status($statusLabel = '', $html = '', $statusType = 'status0', $displayMode = 0, $url = '', $params = array()) { @@ -8053,7 +8056,7 @@ function dol_get_status($statusLabel = '', $html = '', $statusType = 'status0', $mode = 'pill'; if($displayMode == 2)$mode = 'dot'; - $return = dol_get_badge($statusLabel, $html,$statusType,$mode); + $return = dol_get_badge($statusLabel, $html, $statusType, $mode); } return $return; @@ -8061,14 +8064,15 @@ function dol_get_status($statusLabel = '', $html = '', $statusType = 'status0', /** - * @param string $statusLabel label of badge no html : use in alt attribute for accessibility - * @param string $html optional : label of badge with html + * @param string $statusLabel label of badge no html : use in alt attribute for accessibility + * @param string $html optional : label of badge with html * @param string $statusType status0 status1 status2 status3 status4 status5 status6 status7 status8 status9 : image name or badge name - * @param int $displayMode for retrocompatibility 0=label only, 1=label + Picto, 2=Picto, 3=Picto + label - * @param string $url - * @param array $params various params for future : recommended rather than adding more function arguments + * @param int $displayMode for retrocompatibility 0=label only, 1=label + Picto, 2=Picto, 3=Picto + label + * @param string $url the url for link + * @param array $params various params for future : recommended rather than adding more function arguments + * @return void print html status */ -function dol_print_status($statusLabel='', $html='', $statusType='status0', $displayMode=0, $url='', $params=array()) +function dol_print_status($statusLabel='', $html='', $statusType='status0', $displayMode=0, $url='', $params = array()) { print dol_get_status($statusLabel, $html, $statusType, $displayMode, $url, $params); } @@ -8077,13 +8081,13 @@ function dol_print_status($statusLabel='', $html='', $statusType='status0', $dis * @param string $label label of button no html : use in alt attribute for accessibility $html is not empty * @param string $html optional : content with html * @param string $actionType default, delete, danger - * @param string $url + * @param string $url the url for link * @param string $id attribute id of button * @param int $userRight user action right * @param array $params various params for future : recommended rather than adding more function arguments - * @return string + * @return string html button */ -function dol_get_buttonAction($label, $html = '', $actionType = 'default', $url = '', $id = '', $userRight = 1, $params=array()) +function dol_get_buttonAction($label, $html = '', $actionType = 'default', $url = '', $id = '', $userRight = 1, $params = array()) { @@ -8145,12 +8149,13 @@ function dol_get_buttonAction($label, $html = '', $actionType = 'default', $url * @param string $label label of button no html : use in alt attribute for accessibility $html is not empty * @param string $html optional : content with html * @param string $actionType default, delete, danger - * @param string $url + * @param string $url the url for link * @param string $id attribute id of button * @param int $userRight user action right * @param array $params various params for future : recommended rather than adding more function arguments + * @return void print html button */ -function dol_print_buttonAction($label, $html = '', $actionType = 'default', $url = '', $id = '', $userRight = 1, $params=array()) +function dol_print_buttonAction($label, $html = '', $actionType = 'default', $url = '', $id = '', $userRight = 1, $params = array()) { print dol_get_buttonAction($label, $html, $actionType, $url, $id, $userRight, $params); }