mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
Qual: Clean old functions deprecated into 3.0 version
Clean no more used date function to prepare removing of adodb.
This commit is contained in:
@@ -745,14 +745,6 @@ function dol_get_fiche_end($notab=0)
|
||||
else return '';
|
||||
}
|
||||
|
||||
|
||||
/* For backward compatibility */
|
||||
function dolibarr_print_date($time,$format='',$to_gmt=false,$outputlangs='',$encodetooutput=false)
|
||||
{
|
||||
return dol_print_date($time,$format,$to_gmt,$outputlangs,$encodetooutput);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return a formated address (part address/zip/town/state) according to country rules
|
||||
*
|
||||
@@ -990,12 +982,6 @@ function dol_getdate($timestamp,$fast=false)
|
||||
return $arrayinfo;
|
||||
}
|
||||
|
||||
/* For backward compatibility */
|
||||
function dolibarr_mktime($hour,$minute,$second,$month,$day,$year,$gm=false,$check=1)
|
||||
{
|
||||
return dol_mktime($hour,$minute,$second,$month,$day,$year,$gm,$check);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a timestamp date built from detailed informations (by default a local PHP server timestamp)
|
||||
* Replace function mktime not available under Windows if year < 1970
|
||||
@@ -1203,12 +1189,6 @@ function dol_print_email($email,$cid=0,$socid=0,$addlink=0,$max=64,$showinvalid=
|
||||
return $newemail;
|
||||
}
|
||||
|
||||
/* For backward compatibility */
|
||||
function dolibarr_print_phone($phone,$country="FR",$cid=0,$socid=0,$addlink=0,$separ=" ")
|
||||
{
|
||||
return dol_print_phone($phone,$country,$cid,$socid,$addlink,$separ);
|
||||
}
|
||||
|
||||
/**
|
||||
* Format phone numbers according to country
|
||||
*
|
||||
@@ -1476,15 +1456,9 @@ function dol_substr($string,$start,$length,$stringencoding='')
|
||||
}
|
||||
|
||||
|
||||
/* For backward compatibility */
|
||||
function dolibarr_trunc($string,$size=40,$trunc='right',$stringencoding='')
|
||||
{
|
||||
return dol_trunc($string,$size,$trunc,$stringencoding);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Show a javascript graph
|
||||
* Show a javascript graph.
|
||||
* Do not use this function anymore. Use DolGraph class instead.
|
||||
*
|
||||
* @param string $htmlid Html id name
|
||||
* @param int $width Width in pixel
|
||||
@@ -1495,6 +1469,7 @@ function dolibarr_trunc($string,$size=40,$trunc='right',$stringencoding='')
|
||||
* @param int $showpercent Show percent (with type='pie' only)
|
||||
* @param string $url Param to add an url to click values
|
||||
* @return void
|
||||
* @deprecated
|
||||
*/
|
||||
function dol_print_graph($htmlid,$width,$height,$data,$showlegend=0,$type='pie',$showpercent=0,$url='')
|
||||
{
|
||||
@@ -2151,12 +2126,6 @@ function info_admin($text,$infoonimgalt=0)
|
||||
}
|
||||
|
||||
|
||||
/* For backward compatibility */
|
||||
function dolibarr_print_error($db='',$error='')
|
||||
{
|
||||
return dol_print_error($db, $error);
|
||||
}
|
||||
|
||||
/**
|
||||
* Affiche message erreur system avec toutes les informations pour faciliter le diagnostic et la remontee des bugs.
|
||||
* On doit appeler cette fonction quand une erreur technique bloquante est rencontree.
|
||||
|
||||
Reference in New Issue
Block a user