Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

AutoCompleteField Class Reference
[Basic Fields]

Inheritance diagram for AutoCompleteField:

TextField AbstractField Field List of all members.

Detailed Description

del.icio.us based autocomplete field

This field uses the del.icio.us library to create a rockin AJAX autocomplete field. for more information see http://wiki.script.aculo.us/scriptaculous/show/Ajax.Autocompleter

Since:
2.2
Author:
Zach Smith

Definition at line 13 of file autocomplete-field.inc.php.

Public Member Functions

 __construct ($name, Form &$parentForm, array $attribs=array())
 Constructor.
 drawInput ()
 Draw the field.

Public Attributes

 $lookupUrl = null
 $minChars = 1
 $indicator = true
 $indicatorUrl = '/lib/img/ajax/loading-blue.gif'
 $updateElement = null
 $afterUpdateElement = null


Member Function Documentation

AutoCompleteField::__construct name,
Form &$  parentForm,
array $  attribs = array()
 

Constructor.

Parameters:
$name Field name
$parentForm Form object that the field belongs to.
$attribs Array of extra attributes. Any non special key values will simply be output in the HTML of the field. Special keys include:
  • value Sets a default value for the field
  • required If true then the field is "required" (will not validate with an empty value)
  • errorMessage Message to display if an error is encountered during validation.
  • regExp Regular expression to use for validation. The special values of number & float can be used. Inheirited fields may define additional special keys as needed.

Reimplemented from AbstractField.

Definition at line 22 of file autocomplete-field.inc.php.

AutoCompleteField::drawInput  ) 
 

Draw the field.

Reimplemented from TextField.

Definition at line 37 of file autocomplete-field.inc.php.


Member Data Documentation

AutoCompleteField::$afterUpdateElement = null
 

Definition at line 20 of file autocomplete-field.inc.php.

AutoCompleteField::$indicator = true
 

Definition at line 17 of file autocomplete-field.inc.php.

AutoCompleteField::$indicatorUrl = '/lib/img/ajax/loading-blue.gif'
 

Definition at line 18 of file autocomplete-field.inc.php.

AutoCompleteField::$lookupUrl = null
 

Definition at line 15 of file autocomplete-field.inc.php.

AutoCompleteField::$minChars = 1
 

Definition at line 16 of file autocomplete-field.inc.php.

AutoCompleteField::$updateElement = null
 

Definition at line 19 of file autocomplete-field.inc.php.


The documentation for this class was generated from the following file:
Generated on Fri Oct 27 12:26:40 2006 for BaseJumper by doxygen 1.3.9.1