forked from Wavyzz/dolibarr
Doxygen
This commit is contained in:
@@ -146,11 +146,13 @@ if (! function_exists('json_decode'))
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enter description here ...
|
* Function to return value of a static property when class
|
||||||
|
* name is dynamically defined (not hard coded).
|
||||||
|
* This is because $myclass::$myvar works from PHP 5.3.0+ only
|
||||||
*
|
*
|
||||||
* @param string $class
|
* @param string $class Class name
|
||||||
* @param string $member
|
* @param string $member Name of property
|
||||||
* @return void
|
* @return string Return value of static property.
|
||||||
*/
|
*/
|
||||||
function getStaticMember($class, $member)
|
function getStaticMember($class, $member)
|
||||||
{
|
{
|
||||||
@@ -3547,9 +3549,9 @@ function picto_required()
|
|||||||
/**
|
/**
|
||||||
* Clean a string from all HTML tags and entities
|
* Clean a string from all HTML tags and entities
|
||||||
*
|
*
|
||||||
* @param StringHtml String to clean
|
* @param string $StringHtml String to clean
|
||||||
* @param removelinefeed Replace also all lines feeds by a space
|
* @param string $removelinefeed Replace also all lines feeds by a space
|
||||||
* @param pagecodeto Encoding of input string
|
* @param string $pagecodeto Encoding of input string
|
||||||
* @return string String cleaned
|
* @return string String cleaned
|
||||||
*/
|
*/
|
||||||
function dol_string_nohtmltag($StringHtml,$removelinefeed=1,$pagecodeto='UTF-8')
|
function dol_string_nohtmltag($StringHtml,$removelinefeed=1,$pagecodeto='UTF-8')
|
||||||
@@ -3574,9 +3576,9 @@ function dol_string_nohtmltag($StringHtml,$removelinefeed=1,$pagecodeto='UTF-8')
|
|||||||
/**
|
/**
|
||||||
* Replace CRLF in string with a HTML BR tag
|
* Replace CRLF in string with a HTML BR tag
|
||||||
*
|
*
|
||||||
* @param stringtoencode String to encode
|
* @param string $stringtoencode String to encode
|
||||||
* @param nl2brmode 0=Adding br before \n, 1=Replacing \n by br
|
* @param string $nl2brmode 0=Adding br before \n, 1=Replacing \n by br
|
||||||
* @param forxml false=Use <br>, true=Use <br />
|
* @param string $forxml false=Use <br>, true=Use <br />
|
||||||
* @return string String encoded
|
* @return string String encoded
|
||||||
*/
|
*/
|
||||||
function dol_nl2br($stringtoencode,$nl2brmode=0,$forxml=false)
|
function dol_nl2br($stringtoencode,$nl2brmode=0,$forxml=false)
|
||||||
@@ -3633,8 +3635,9 @@ function dol_htmlentitiesbr($stringtoencode,$nl2brmode=0,$pagecodefrom='UTF-8')
|
|||||||
/**
|
/**
|
||||||
* This function is called to decode a HTML string (it decodes entities and br tags)
|
* This function is called to decode a HTML string (it decodes entities and br tags)
|
||||||
*
|
*
|
||||||
* @param stringtodecode String to decode
|
* @param string $stringtodecode String to decode
|
||||||
* @param pagecodeto Page code for result
|
* @param string $pagecodeto Page code for result
|
||||||
|
* @param string String decoded
|
||||||
*/
|
*/
|
||||||
function dol_htmlentitiesbr_decode($stringtodecode,$pagecodeto='UTF-8')
|
function dol_htmlentitiesbr_decode($stringtodecode,$pagecodeto='UTF-8')
|
||||||
{
|
{
|
||||||
@@ -3649,7 +3652,8 @@ function dol_htmlentitiesbr_decode($stringtodecode,$pagecodeto='UTF-8')
|
|||||||
/**
|
/**
|
||||||
* This function remove all ending \n and br at end
|
* This function remove all ending \n and br at end
|
||||||
*
|
*
|
||||||
* @param stringtodecode String to decode
|
* @param string $stringtodecode String to decode
|
||||||
|
* @return string String decoded
|
||||||
*/
|
*/
|
||||||
function dol_htmlcleanlastbr($stringtodecode)
|
function dol_htmlcleanlastbr($stringtodecode)
|
||||||
{
|
{
|
||||||
@@ -3660,8 +3664,8 @@ function dol_htmlcleanlastbr($stringtodecode)
|
|||||||
/**
|
/**
|
||||||
* This function is called to decode a string with HTML entities (it decodes entities tags)
|
* This function is called to decode a string with HTML entities (it decodes entities tags)
|
||||||
*
|
*
|
||||||
* @param stringhtml stringhtml
|
* @param string $stringhtml stringhtml
|
||||||
* @param pagecodeto Encoding of input string
|
* @param string $pagecodeto Encoding of input string
|
||||||
* @return string decodestring
|
* @return string decodestring
|
||||||
*/
|
*/
|
||||||
function dol_entity_decode($stringhtml,$pagecodeto='UTF-8')
|
function dol_entity_decode($stringhtml,$pagecodeto='UTF-8')
|
||||||
@@ -3673,9 +3677,9 @@ function dol_entity_decode($stringhtml,$pagecodeto='UTF-8')
|
|||||||
/**
|
/**
|
||||||
* Replace html_entity_decode functions to manage errors
|
* Replace html_entity_decode functions to manage errors
|
||||||
*
|
*
|
||||||
* @param a
|
* @param string $a Operand a
|
||||||
* @param b
|
* @param string $b Operand b
|
||||||
* @param c
|
* @param string $c Operand c
|
||||||
* @return string String decoded
|
* @return string String decoded
|
||||||
*/
|
*/
|
||||||
function dol_html_entity_decode($a,$b,$c)
|
function dol_html_entity_decode($a,$b,$c)
|
||||||
@@ -3688,9 +3692,9 @@ function dol_html_entity_decode($a,$b,$c)
|
|||||||
/**
|
/**
|
||||||
* Replace htmlentities functions to manage errors
|
* Replace htmlentities functions to manage errors
|
||||||
*
|
*
|
||||||
* @param a
|
* @param string $a Operand a
|
||||||
* @param b
|
* @param string $b Operand b
|
||||||
* @param c
|
* @param string $c Operand c
|
||||||
* @return string String encoded
|
* @return string String encoded
|
||||||
*/
|
*/
|
||||||
function dol_htmlentities($a,$b,$c)
|
function dol_htmlentities($a,$b,$c)
|
||||||
@@ -3706,7 +3710,7 @@ function dol_htmlentities($a,$b,$c)
|
|||||||
* If not, it will we considered not HTML encoded even if it is by FPDF.
|
* If not, it will we considered not HTML encoded even if it is by FPDF.
|
||||||
* Example, if string contains euro symbol that has ascii code 128
|
* Example, if string contains euro symbol that has ascii code 128
|
||||||
*
|
*
|
||||||
* @param s String to check
|
* @param string $s String to check
|
||||||
* @return int 0 if bad iso, 1 if good iso
|
* @return int 0 if bad iso, 1 if good iso
|
||||||
*/
|
*/
|
||||||
function dol_string_is_good_iso($s)
|
function dol_string_is_good_iso($s)
|
||||||
@@ -4254,8 +4258,8 @@ function verifCond($strRights)
|
|||||||
* Replace eval function to add more security.
|
* Replace eval function to add more security.
|
||||||
* This function is called by verifCond()
|
* This function is called by verifCond()
|
||||||
*
|
*
|
||||||
* @param string $s
|
* @param string $s String to evaluate
|
||||||
* @return void
|
* @return mixed Result of eval
|
||||||
*/
|
*/
|
||||||
function dol_eval($s)
|
function dol_eval($s)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user