function xmlhttprequest_os_build_get_with_prefix()
{
    $f_os_build = gpc_get_string('os_build');
    $t_unique_entries = profile_get_field_all_for_user('os_build');
    $t_matching_entries = projax_array_filter_by_prefix($t_unique_entries, $f_os_build);
    echo projax_array_serialize_for_autocomplete($t_matching_entries);
}
Example #2
0
function print_os_build_option_list($p_os_build, $p_user_id = null)
{
    $t_os_build_array = profile_get_field_all_for_user('os_build', $p_user_id);
    foreach ($t_os_build_array as $t_os_build_unescaped) {
        $t_os_build = string_attribute($t_os_build_unescaped);
        echo '<option value="' . $t_os_build . '"';
        check_selected($p_os_build, $t_os_build_unescaped);
        echo '>' . $t_os_build . '</option>';
    }
}
Example #3
0
/**
 * Echos a serialized list of OS Versions starting with the prefix specified in the $_POST
 * @return null
 * @access public
 */
function xmlhttprequest_os_build_get_with_prefix()
{
    $f_os_build = gpc_get_string('os_build');
    $t_unique_entries = profile_get_field_all_for_user('os_build');
    $t_matching_entries = xmlhttprequest_filter_by_prefix($t_unique_entries, $f_os_build);
    echo json_encode($t_matching_entries);
}
Example #4
0
function print_os_build_option_list($p_os_build, $p_user_id = null)
{
    $t_os_build_array = profile_get_field_all_for_user('os_build', $p_user_id);
    foreach ($t_os_build_array as $t_os_build) {
        echo "<option value=\"{$t_os_build}\"";
        check_selected($p_os_build, $t_os_build);
        echo ">{$t_os_build}</option>";
    }
}