public function configureOptions() { $list = new User_List(); $list->setOrder("asc"); $list->setOrderKey("username"); $users = $list->load(); $options = array(); if (is_array($users) and count($users) > 0) { foreach ($users as $user) { if ($user->getHasCredentials()) { $value = $user->getUsername(); $first = $user->getFirstname(); $last = $user->getLastname(); if (!empty($first) or !empty($last)) { $value .= " (" . $first . " " . $last . ")"; } $options[] = array("value" => $user->getId(), "key" => $value); } } } $this->setOptions($options); }