Habari\FormControlAutocomplete::set_ajax PHP Метод

set_ajax() публичный Метод

The callback needs to accept at least the search term as the POSTed parameter "q"
public set_ajax ( string $url, boolean $ishtml = false ) : FormControlAutocomplete
$url string The URL to submit the AJAX request to
$ishtml boolean If true, the display response returned via AJAX is to be rendered as HTML (unescaped)
Результат FormControlAutocomplete $this
    public function set_ajax($url, $ishtml = false)
    {
        $this->set_settings(array('ajax_url' => $url, 'ajax_ishtml' => $ishtml), false);
        return $this;
    }