diff --git a/interface/lib/classes/remoting_lib.inc.php b/interface/lib/classes/remoting_lib.inc.php index dda49e623d49ab7be4fcee922f0f5055cd6907d7..f163a870b1bae35153b89384750a6efdd748f5bf 100644 --- a/interface/lib/classes/remoting_lib.inc.php +++ b/interface/lib/classes/remoting_lib.inc.php @@ -63,7 +63,7 @@ Copyright (c) Tri-Plex technology * 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 { @@ -78,7 +78,8 @@ class remoting_lib extends tform_base { //* Load the form definition from file. - special version for remoting - function loadFormDef($file) { + // module parameter is only for compatibility with base class + function loadFormDef($file, $module = '') { global $app,$conf; include($file); @@ -156,23 +157,25 @@ class remoting_lib extends tform_base { /** * Converts the data in the array to human readable format * Datatype conversion e.g. to show the data in lists + * tab parameter is only there for compatibility with params of base class * * @param record * @return record */ - function decode($record) { + function decode($record, $tab = '') { 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 field = array with field definition * @param record = Dataset as array * @return key => value array for the value field of a form */ - function getDatasourceData($field, $record) { + function getDatasourceData($field, $record, $dummy = '') { return $this->_getDatasourceData($field, $record, true); } @@ -180,11 +183,12 @@ class remoting_lib extends tform_base { /** * Rewrite the record data to be stored in the database * and check values with regular expressions. - * + * dummy parameter is only there for compatibility with params of base class + * * @param record = Datensatz als Array * @return record */ - function encode($record,$dbencode = true) { + function encode($record,$dbencode = true, $dummy = '') { $new_record = $this->_encode($record, '', $dbencode, true); if(isset($record['_ispconfig_pw_crypted'])) $new_record['_ispconfig_pw_crypted'] = $record['_ispconfig_pw_crypted']; // this one is not in form definitions! @@ -193,13 +197,14 @@ class remoting_lib extends tform_base { /** * Create SQL statement - * + * dummy parameter is only there for compatibility with params of base class + * * @param record = Datensatz als Array * @param action = INSERT oder UPDATE * @param primary_id * @return record */ - function getSQL($record, $action = 'INSERT', $primary_id = 0, $sql_ext_where = '') { + function getSQL($record, $action = 'INSERT', $primary_id = 0, $sql_ext_where = '', $dummy = '') { global $app; diff --git a/interface/lib/classes/tform.inc.php b/interface/lib/classes/tform.inc.php index cca55401456e32b89254231c63ffeea6393f1dba..806d6b247b9157695fd3cdb467958b0eb4b989f3 100644 --- a/interface/lib/classes/tform.inc.php +++ b/interface/lib/classes/tform.inc.php @@ -57,7 +57,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * Hint: The auto increment (ID) filed of the table has not be be definied separately. * */ - +global $app; $app->load('tform_base'); class tform extends tform_base { /*