[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/phpgwapi/inc/ -> class.db_backup.inc.php (sommaire)

(pas de description)

Poids: 497 lignes (15 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

db_backup:: (8 méthodes):
  db_backup()
  fopen_backup()
  restore()
  csv_split()
  escape_data()
  backup()
  schema_backup()
  write_array()


Classe: db_backup  - X-Ref

DB independent backup and restore of eGW's DB

db_backup()   X-Ref
Constructor


fopen_backup($name=false,$reading=false)   X-Ref
Opens the backup-file using the highest availible compression

param: $name=false string/boolean filename to use, or false for the default one
param: $reading=false opening for reading ('rb') or writing ('wb')
return: string/resource error-msg of file-handle

restore($f,$convert_to_system_charset=false)   X-Ref
Backup all data in the form of a (compressed) csv file

param: resource $f file opened with fopen for reading
param: boolean $convert_to_system_charset=false convert the restored data to the selected system-charset

csv_split($line,$keys=False)   X-Ref
Split one line of a csv file into an array and does all unescaping


escape_data(&$data,$col,$defs)   X-Ref


backup($f)   X-Ref
Backup all data in the form of a (compressed) csv file

param: f resource file opened with fopen for writing

schema_backup($f=False)   X-Ref
Backup all schemas in the form of a setup/tables_current.inc.php file

param: f resource/boolean

write_array($arr,$depth,$parent='')   X-Ref




Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7