From: tjhunt Date: Thu, 13 Nov 2008 03:46:04 +0000 (+0000) Subject: Kill test file that is no longer needed. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6a2e5bf3a3832c5d01508c2a4cfe675c24d61c9d;p=moodle.git Kill test file that is no longer needed. --- diff --git a/user/selector/test.php b/user/selector/test.php deleted file mode 100644 index bfb0da066a..0000000000 --- a/user/selector/test.php +++ /dev/null @@ -1,75 +0,0 @@ -dirroot . '/user/selector/lib.php'); - -class test_user_selector extends user_selector_base { - public function __construct($name) { - parent::__construct($name); - } - - public function find_users($search) { - global $DB; - list($wherecondition, $params) = $this->search_sql($search, 'u'); - $sql = 'SELECT ' . $this->required_fields_sql('u') . - ' FROM {user} u' . - ' WHERE ' . $wherecondition . - ' ORDER BY u.lastname, u.firstname'; - $users = $DB->get_recordset_sql($sql, $params); - $groupedusers = array(); - if ($search) { - $groupname = "Users matching '" . $search . "'"; - } else { - $groupname = 'All users'; - } - foreach ($users as $user) { - $groupedusers[$groupname][$user->id] = $user; - } - return $groupedusers; - } - - protected function get_options() { - $options = parent::get_options(); - $options['file'] = 'user/selector/test.php'; - return $options; - } -} - -if ($justdefineclass) { - return; -} - -require_login(); -require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM)); -print_header(); - -$userselector = new test_user_selector('myuserselector'); -//$userselector->set_multiselect(false); - -$users = $userselector->get_selected_users(); -if (!empty($users)) { - print_heading('Users that were selected'); - echo ''; -} - -print_collapsible_region('Blah, blah, blah', '', 'mybox', 'Click me!', 'testbox'); - -echo '
'; -$userselector->display(); -echo '

'; -echo '
'; - -echo ''; - -print_footer(); -?> \ No newline at end of file