Xataface  2.0alpha2
Xataface Application Framework
 All Data Structures Namespaces Files Functions Variables Groups Pages
hidden.php
Go to the documentation of this file.
1 <?php
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 }