diff --git a/e107_handlers/user_select_class.php b/e107_handlers/user_select_class.php index 4ab918730..06cf8b890 100644 --- a/e107_handlers/user_select_class.php +++ b/e107_handlers/user_select_class.php @@ -2,16 +2,14 @@ /* * e107 website system * - * Copyright (C) 2008-2009 e107 Inc (e107.org) + * Copyright (C) 2008-2011 e107 Inc (e107.org) * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * + * User lookup handler * - * - * $Source: /cvs_backup/e107_0.8/e107_handlers/user_select_class.php,v $ - * $Revision$ - * $Date$ - * $Author$ + * $URL$ + * $Id$ */ if (!defined("e_THEME")) { @@ -23,10 +21,11 @@ if (!defined("e_THEME")) { include_lan(e_LANGUAGEDIR.e_LANGUAGE."/lan_user_select.php"); -class user_select { - - function user_list($class, $form_name) { - global $pref, $sql, $tp; +class user_select +{ + function user_list($class, $form_name) + { + global $sql, $tp; if($class === FALSE) { $class = e_UC_MEMBER;} switch ($class) { @@ -57,32 +56,64 @@ class user_select { return $text; } - function class_list($class, $form_name) { - global $pref, $sql; + + /** + * Display selection dropdown of all user classes + * + * @param int $class - if its e_UC_MEMBER, all classes are shown. Otherwise only the class matching the value is shown. + */ + function class_list($class, $form_name) + { + global $sql; $text = "