| | |
| | | * Hint: The auto increment (ID) filed of the table has not be be definied separately. |
| | | * |
| | | */ |
| | | |
| | | |
| | | global $app; |
| | | $app->load('tform_base'); |
| | | class remoting_lib extends tform_base { |
| | |
| | | function loadFormDef($file, $module = '') { |
| | | global $app,$conf; |
| | | |
| | | include($file); |
| | | include $file; |
| | | |
| | | $this->formDef = $form; |
| | | unset($this->formDef['tabs']); |
| | |
| | | return $this->_decode($record, '', true); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Get the key => value array of a form filled from a datasource definitiom |
| | | * dummy parameter is only there for compatibility with params of base class |
| | |
| | | * @param record = Dataset as array |
| | | * @return key => value array for the value field of a form |
| | | */ |
| | | |
| | | function getDatasourceData($field, $record, $dummy = '') { |
| | | return $this->_getDatasourceData($field, $record, true); |
| | | } |
| | | |
| | | |
| | | /** |
| | | /** |
| | |
| | | return $new_record; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Create SQL statement |
| | | * dummy parameter is only there for compatibility with params of base class |