Xataface 2.0
Xataface Application Framework
Dataface/FormTool/autocomplete.php
Go to the documentation of this file.
00001 <?php
00002 
00006 class Dataface_FormTool_autocomplete {
00007         function &buildWidget(&$record, &$field, &$form, $formFieldName, $new=false){
00008                 $widget =& $field['widget'];
00009                 $options =& Dataface_FormTool::getVocabulary($record, $field);
00010                 $el =& $form->addElement('autocomplete', $formFieldName, $widget['label'], array('class'=>$widget['class'], 'id'=>$field['name']) );
00011                 $el->setOptions($options);
00012                 return $el;
00013         }
00014 }
 All Data Structures Namespaces Files Functions Variables Enumerations