Xataface
2.0alpha2
Xataface Application Framework
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
Dataface
FormTool
autocomplete.php
Go to the documentation of this file.
1
<?php
2
6
class
Dataface_FormTool_autocomplete
{
7
function
&
buildWidget
(&$record, &
$field
, &$form, $formFieldName, $new=
false
){
8
$widget =&
$field
[
'widget'
];
9
$options =&
Dataface_FormTool::getVocabulary
($record,
$field
);
10
$factory = Dataface_QuickForm::factory();
11
$el = $factory->addElement(
'autocomplete'
, $formFieldName, $widget[
'label'
], array(
'class'
=>$widget[
'class'
],
'id'
=>
$field
[
'name'
]) );
12
$el->setOptions($options);
13
return
$el;
14
}
15
}
Generated on Fri Mar 22 2013 09:40:33 for Xataface by
1.8.1.2