From 7469195814de5e95d4ba317747973f9d052f9a9b Mon Sep 17 00:00:00 2001 From: Bryan Fuertes Date: Wed, 20 Jul 2011 16:10:36 -0500 Subject: [PATCH] Minor - Added documentation --- main/inc/lib/display.lib.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/main/inc/lib/display.lib.php b/main/inc/lib/display.lib.php index eb44a05f14..bb13a361f7 100755 --- a/main/inc/lib/display.lib.php +++ b/main/inc/lib/display.lib.php @@ -403,10 +403,10 @@ class Display { /** * Returns an encrypted mailto hyperlink * - * @param - $email (string) - e-mail - * @param - $text (string) - clickable text - * @param - $style_class (string) - optional, class from stylesheet - * @return - encrypted mailto hyperlink + * @param string e-mail + * @param string clickable text + * @param string optional, class from stylesheet + * @return string encrypted mailto hyperlink */ public static function encrypted_mailto_link ($email, $clickable_text = null, $style_class = '') { if (is_null($clickable_text)) { @@ -501,6 +501,13 @@ class Display { return $result; } + /** + * Get the options withing a select box within the given values + * @param int Min value + * @param int Max value + * @param int Default value + * @return string HTML select options + */ public static function get_numeric_options($min, $max, $selected_num = 0) { $result = ''; for ($i = $min; $i <= $max; $i ++) {