Doc doxygen

This commit is contained in:
Laurent Destailleur 2007-09-20 07:57:39 +00:00
parent 8e13eefa29
commit 24412a055d

View File

@ -771,14 +771,16 @@ function dolibarr_print_phone($phone,$country="FR")
/** /**
\brief Tronque une chaine à une taille donnée en ajoutant les points de suspension si cela dépasse \brief Tronque une chaine à une taille donnée en ajoutant les points de suspension si cela dépasse
\param string Chaine à tronquer \param string String to truncate
\param size Longueur max de la chaine. Si 0, pas de limite. \param size Max string size. 0 for no limit.
\return string Chaine tronquée \param trunc Where to trunc: right, left, middle
\return string Truncated string
\remarks USE_SHORT_TITLE=0 can disable all truncings
*/ */
function dolibarr_trunc($string,$size=40,$trunc='right') function dolibarr_trunc($string,$size=40,$trunc='right')
{ {
if ($size==0) return $string; if ($size==0) return $string;
if ((!defined('USE_SHORT_TITLE')) || defined('USE_SHORT_TITLE') && USE_SHORT_TITLE) if (! defined('USE_SHORT_TITLE') || (defined('USE_SHORT_TITLE') && USE_SHORT_TITLE))
{ {
// We go always here // We go always here
if ($trunc == 'right') if ($trunc == 'right')
@ -788,7 +790,7 @@ function dolibarr_trunc($string,$size=40,$trunc='right')
else else
return $string; return $string;
} }
if ($trunc == 'center') if ($trunc == 'middle')
{ {
// \TODO A developper. // \TODO A developper.