Procedural File: backupfunc.php
Source Location: /lodel/scripts/backupfunc.php
Functions
void importFromZip(
string $archive, array $accepteddirs, [array $acceptedexts = array ()], [string $sqlfile = ''], [bool $xml = false]
)
|
|
Importation d'un ME ou de données depuis son archive ZIP
Parameters:
|
string |
$archive: |
le chemin vers le fichier ZIP |
|
array |
$accepteddirs: |
la liste des répertoires acceptés dans l'archive ZIP |
|
array |
$acceptedexts: |
la liste des types de fichiers acceptés |
|
string |
$sqlfile: |
le nom du fichier SQL à traiter. Vide par défaut |
|
bool |
$xml: |
si on utilise l'import XML |
void lodelprefix(
string $table
)
|
|
Enlève le préfixe actuel et ajoute le préfixe par défaut dans une table MySQL
Cette fonction est utilisée dans les fonctions PMA
Parameters:
|
string |
$table: |
le nom de la table |
string mysql_dump(
string $db, string $tables, string $output, [string $fh = 0], [ $create = true], [ $drop = true], [ $contents = true], [ $select = '*'], [ $where = '']
)
|
|
Dump the database using phpMyAdmin functions (should be encaplused into an Object, this have far too much arguments! or use an assoc for the options!!)
Parameters:
|
string |
$db: |
database |
|
string |
$tables: |
output filename |
|
string |
$output: |
drop the tables |
|
string |
$fh: |
the file handle for the outputfile. If not set, a file is open and close. |
|
|
$create: |
|
|
|
$drop: |
|
|
|
$contents: |
|
|
|
$select: |
|
|
|
$where: |
|
API Tags:
| Return: | dump |
| Access: | public |
void operation(
$operation, $archivetmp, $archivefilename, &$context
)
|
|
Operation. Propose various way to retrieve/store a file
Parameters:
|
|
$operation: |
|
|
|
$archivetmp: |
|
|
|
$archivefilename: |
|
|
|
&$context: |
|
parse_mysql_dump [line 155]
void parse_mysql_dump(
string $url, [ $ignoreerrors = false], boolean $ignoreerrors.
)
|
|
Parse un dump MySQL et execute les requêtes.
Parameters:
|
string |
$url: |
le fichier SQL |
|
boolean |
$ignoreerrors.: |
false par défaut |
|
|
$ignoreerrors: |
|
PMA_convert_charset [line 234]
string PMA_convert_charset(
string $what
)
|
|
A do nothing function Used by phpMyAdmin functions.
Conversion is not needed here.
Parameters:
API Tags:
| Return: | unmodified text |
| Access: | public |
PMA_convert_display_charset [line 250]
string PMA_convert_display_charset(
string $text
)
|
|
A do nothing function Used by phpMyAdmin functions.
Conversion is not needed here.
Parameters:
API Tags:
| Return: | unmodified text |
| Access: | public |
PMA_exportOutputHandler [line 205]
bool PMA_exportOutputHandler(
string $line
)
|
|
Output handler.
Parameters:
|
string |
$line: |
the insert statement |
API Tags:
| Return: | Whether output suceeded |
|
|