diff --git a/include/lib/dbg.php b/include/lib/dbg.php index 6cf096f11..f65c9cca2 100644 --- a/include/lib/dbg.php +++ b/include/lib/dbg.php @@ -1,10 +1,47 @@ $n_level) { @@ -24,6 +61,12 @@ class Dbg } } + /** + * @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) { @@ -35,6 +78,13 @@ class Dbg 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) { @@ -47,6 +97,10 @@ class Dbg } } + /** + * @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 <<