Return the the requested option of the autocomplete
Parameters:

  • string $option: - the requested option or event.

API Tags:
Access: public

Return the result for the autocomplete as PHP object. Determines automatically the placeholders (?) used into the SQL command

API Tags:
Access: public

Main method which do everthing for the autocomplete. Should be called after all settings are done. Note that in one file we can have more than one autocomplete definitions. Construct the autocomplete and perform Query operations.
Parameters:

  • string $element: The DOM element on which audocomplete should be applied
  • $target: - if set the value selection from autocomplete will be set to this element
  • boolean $script: - if set to false the script tag: <script type='text/javascript'> will not be included.
  • boolean $echo: if set to false the result is not echoed but returned
  • boolean $runme: - internal variable used into the jqGrid class

API Tags:
Access: public

Set a JavaScript event for the autocomplete. For all the possible events refer the documentation
Parameters:

  • string $event the event name see events:
  • string $code Javascript code:

API Tags:
Access: public


Set the limit of the requested data in case of SQL command
Parameters:

  • mixed $num: - if set as number determines the number of the requestd itemd from the query. If set to false loads all the data from the query.

API Tags:
Access: public


Set the desired option for autocomplete. For a full list of the option refer the documentation
Parameters:
string $option option name see options:
mixed $value:

API Tags:
Access: public

Set the source need for autocomlete to send a data. Can be a string or array. If the option is string then this is the url from where to obtain the data.
Parameters:
mixed $source string or array to be set:

API Tags:
Access: public