DBG";
$r.=print_r($msg,true);
$r.='';
}
$r.='';
if ($print) { echo $r;}
return $r;
}
}
/**
* @brief returns a string , for the function with a specific style
* @param $msg function name __FUNCTION__ or __CLASS__
* @param $print if true display , otherwise returns a string
* @return string|void
*/
public static function echo_function($msg,$print=true)
{
if (DEBUGNOALYSS > 1) {
$r = '';
$r.="[FUNC: $msg]";
$r.= '';
if ($print) { echo $r;}
return $r;
}
}
/**
* @brief display the file
* @param $msg name of file , usually always __FILE__
* @param $print if true display , otherwise returns a string
* @return string|void
*/
public static function echo_file($msg,$print=true)
{
if (DEBUGNOALYSS > 1) {
$r = '';
$r.="[FILE: $msg]";
$r.= '';
if ($print) { echo $r;}
return $r;
}
}
/**
* @brief display a bar depending of the size of the screen , it helps for CSS to see the media-size
* @return void
*/
static function display_size()
{
echo <<
{$content}