Prado\Web\UI\JuiControls\TJuiAutoComplete::raiseCallbackEvent PHP Метод

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

If {@link setAutoPostBack AutoPostBack} is enabled it will raise {@link onTextChanged OnTextChanged} event event and then the {@link onCallback OnCallback} event. The {@link onSuggest OnSuggest} event is raise if the request is to find sugggestions, the {@link onTextChanged OnTextChanged} and {@link onCallback OnCallback} events are NOT raised. This method is mainly used by framework and control developers.
public raiseCallbackEvent ( $param )
    public function raiseCallbackEvent($param)
    {
        $token = $param->getCallbackParameter();
        if (is_array($token) && count($token) == 2) {
            if ($token[1] === '__TJuiAutoComplete_onSuggest__') {
                $parameter = new TJuiAutoCompleteEventParameter($this->getResponse(), $token[0]);
                $this->onSuggest($parameter);
            } else {
                if ($token[1] === '__TJuiAutoComplete_onSuggestionSelected__') {
                    $parameter = new TJuiAutoCompleteEventParameter($this->getResponse(), null, $token[0]);
                    $this->onSuggestionSelected($parameter);
                }
            }
        } else {
            if ($this->getAutoPostBack()) {
                parent::raiseCallbackEvent($param);
            }
        }
    }