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
hidden.php
Go to the documentation of this file.
1
<?php
5
class
Dataface_FormTool_hidden
{
6
function
&
buildWidget
(&$record, &
$field
, &$form, $formFieldName, $new=
false
){
7
$factory =&
Dataface_FormTool::factory
();
8
$el =& $factory->addElement(
'hidden'
,
$field
[
'name'
]);
9
if
(
PEAR::isError
($el) ) {
10
11
throw
new
Exception(
"Failed to get element for field $field[name] of table "
.$record->_table->tablename.
"\n"
12
.
"The error returned was "
.$el->getMessage(), E_USER_ERROR);
13
14
}
15
$el->setFieldDef(
$field
);
16
return
$el;
17
}
18
}
Generated on Fri Mar 22 2013 09:40:33 for Xataface by
1.8.1.2