Xataface 2.0
Xataface Application Framework
Dataface/FormTool/hidden.php
Go to the documentation of this file.
00001 <?php
00005 class Dataface_FormTool_hidden {
00006         function &buildWidget(&$record, &$field, &$form, $formFieldName, $new=false){
00007                 $factory =& Dataface_FormTool::factory();
00008                 $el =& $factory->addElement('hidden', $field['name']);
00009                 if ( PEAR::isError($el) ) {
00010                 
00011                         throw new Exception("Failed to get element for field $field[name] of table ".$record->_table->tablename."\n"
00012                                 ."The error returned was ".$el->getMessage(), E_USER_ERROR);
00013 
00014                 }
00015                 $el->setFieldDef($field);
00016                 return $el;
00017         }
00018 }
 All Data Structures Namespaces Files Functions Variables Enumerations