From cafb4d62f4cc135c19e2428a44678a511e1eacbe Mon Sep 17 00:00:00 2001 From: Fabrixxm Date: Fri, 9 Nov 2012 02:43:22 -0500 Subject: [PATCH] a little bit of phpdoc --- boot.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/boot.php b/boot.php index 4bdf25d410..661ebf779c 100644 --- a/boot.php +++ b/boot.php @@ -989,6 +989,13 @@ if(! function_exists('remote_user')) { // a page is loaded. Usually used for errors or alerts. if(! function_exists('notice')) { + /** + * Show an error message to user. + * + * This function save text in session, to be shown to the user at next page load + * + * @param string $s - Text of notice + */ function notice($s) { $a = get_app(); if(! x($_SESSION,'sysmsg')) $_SESSION['sysmsg'] = array(); @@ -997,6 +1004,13 @@ if(! function_exists('notice')) { } } if(! function_exists('info')) { + /** + * Show an info message to user. + * + * This function save text in session, to be shown to the user at next page load + * + * @param string $s - Text of notice + */ function info($s) { $a = get_app(); if(! x($_SESSION,'sysmsg_info')) $_SESSION['sysmsg_info'] = array();