Public Member Functions | Static Public Attributes

FormControlAutocomplete Class Reference

Inheritance diagram for FormControlAutocomplete:
Collaboration diagram for FormControlAutocomplete:

List of all members.

Public Member Functions

 _extend ()
 pre_out ()
 set_ajax ($url, $ishtml=false)
 get (Theme $theme)

Static Public Attributes

static $outpre

Detailed Description

A hidden field control based on FormControl for output via a FormUI.

Definition at line 8 of file formcontrolautocomplete.php.


Member Function Documentation

FormControlAutocomplete::_extend (  ) 

Called upon construct. Sets control properties

Reimplemented from FormControl.

Definition at line 15 of file formcontrolautocomplete.php.

FormControlAutocomplete::get ( Theme theme  ) 

Produce the control for display

Parameters:
Theme $theme The theme that will be used to render the template
Returns:
string The output of the template

Reimplemented from FormControl.

Definition at line 110 of file formcontrolautocomplete.php.

FormControlAutocomplete::pre_out (  ) 

Return the HTML/script required for this control. Do it only once.

Returns:
string The HTML/javascript required for this control.

Reimplemented from FormControl.

Definition at line 31 of file formcontrolautocomplete.php.

FormControlAutocomplete::set_ajax ( url,
ishtml = false 
)

Set the URL to use for ajax callbacks. The callback needs to accept at least the search term as the POSTed parameter "q"

Parameters:
string $url The URL to submit the AJAX request to
bool $ishtml If true, the display response returned via AJAX is to be rendered as HTML (unescaped)
Returns:
FormControlAutocomplete $this

Definition at line 98 of file formcontrolautocomplete.php.


The documentation for this class was generated from the following file: