1 Changes in framework API introduced in FrontAccounting 2.4
2 ----------------------------------------------------------
3 The list does not contain changes made in user interface files.
7 update_company_prefs($params)
8 get_company_pref($prefs = null)
11 db_backup($conn, $ext='no', $comm='', $path='')
12 db_export($conn, $filename, $zip='no', $comment='', $no_default=false)
13 save_to_file($path, $zip, $fileData)
15 get_tax_type_default_rate($type_id) => get_tax_type_rate($type_id)
18 get_tax_type_default_rate($type_id)
20 get_tax_type_rate($type_id)
22 Misleading function name changed.
25 update_company_prefs( $params, $pref = TB_PREF )
27 update_company_prefs($params)
29 $pref parameter has been removed. All calls should be done after switch to selected company database with
30 set_global_connection($company).
33 get_company_pref($prefs = null, $tbpref = null)
35 get_company_pref($prefs = null)
37 $tbpref parameter has been removed. All calls should be done after switch to selected company database with
38 set_global_connection($company).
41 get_company_prefs($tbpref = TB_PREF)
45 $tbpref parameter has been removed. All calls should be done after switch to selected company database with
46 set_global_connection($company).
49 db_backup($conn, $ext='no', $comm='', $tbpref = TB_PREF)
51 db_backup($conn, $ext='no', $comm='', $path='')
53 $tbpref parameter has been removed. Calls should be done after switch to selected company database with
54 set_global_connection($company).
55 $path parameter has been added: path to storage directory for generated backup file. If not set defaults to BACKUP_PATH.
58 db_export($conn, $filename, $zip='no', $comment='', $tbpref = TB_PREF, $no_default=false)
60 db_export($conn, $filename, $zip='no', $comment='')
62 $tbpref parameter has been removed. Calls should be done after switch to selected company database with
63 set_global_connection($company). Also removed obsolete $no_default parameter.
64 $filename now have to contain full path to target directory.
67 save_to_file($backupfile, $zip, $fileData)
69 save_to_file($path, $zip, $fileData)
71 $path parameter have to contain full path to file, no assumptions to target folder is done inside function.