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=null)
12 db_export($conn, $filename, $zip='no', $comment='', $no_default=false)
13 save_to_file($path, $zip, $fileData)
17 update_company_prefs( $params, $pref = TB_PREF )
19 update_company_prefs($params)
21 $pref parameter has been removed. All calls should be done after switch to selected company database with
22 set_global_connection($company).
25 get_company_pref($prefs = null, $tbpref = null)
27 get_company_pref($prefs = null)
29 $tbpref parameter has been removed. All calls should be done after switch to selected company database with
30 set_global_connection($company).
33 get_company_prefs($tbpref = TB_PREF)
37 $tbpref parameter has been removed. All calls should be done after switch to selected company database with
38 set_global_connection($company).
41 db_backup($conn, $ext='no', $comm='', $tbpref = TB_PREF)
43 db_backup($conn, $ext='no', $comm='', $path=null)
45 $tbpref parameter has been removed. Calls should be done after switch to selected company database with
46 set_global_connection($company).
47 $path parameter has been added: path to storage directory for generated backup file. If not set defaults to BACKUP_PATH.
50 db_export($conn, $filename, $zip='no', $comment='', $tbpref = TB_PREF, $no_default=false)
52 db_export($conn, $filename, $zip='no', $comment='')
54 $tbpref parameter has been removed. Calls should be done after switch to selected company database with
55 set_global_connection($company). Also removed obsolete $no_default parameter.
56 $filename now have to contain full path to target directory.
59 save_to_file($backupfile, $zip, $fileData)
61 save_to_file($path, $zip, $fileData)
63 $path parameter have to contain full path to file, no assumptions to target folder is done inside function.