forked from Wavyzz/dolibarr
Doc doxygen
This commit is contained in:
@@ -771,14 +771,16 @@ function dolibarr_print_phone($phone,$country="FR")
|
||||
|
||||
/**
|
||||
\brief Tronque une chaine <20> une taille donn<6E>e en ajoutant les points de suspension si cela d<>passe
|
||||
\param string Chaine <20> tronquer
|
||||
\param size Longueur max de la chaine. Si 0, pas de limite.
|
||||
\return string Chaine tronqu<71>e
|
||||
\param string String to truncate
|
||||
\param size Max string size. 0 for no limit.
|
||||
\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')
|
||||
{
|
||||
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
|
||||
if ($trunc == 'right')
|
||||
@@ -788,7 +790,7 @@ function dolibarr_trunc($string,$size=40,$trunc='right')
|
||||
else
|
||||
return $string;
|
||||
}
|
||||
if ($trunc == 'center')
|
||||
if ($trunc == 'middle')
|
||||
{
|
||||
// \TODO A developper.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user