PHP Класс MySQLDump

Here is an inline example: $connection = @mysql_connect($dbhost,$dbuser,$dbpsw); $dumper = new MySQLDump($dbname,'filename.sql',false,false); $dumper->doDump(); Special thanks to: - Andrea Ingaglio helping in development of all class code - Dylan Pugh for precious advices halfing the size of the output file and for helping in debug
Автор: Daniele Viganò - CreativeFactory.it ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$tables array

Открытые методы

Метод Описание
__construct ( mysqli $connection, $charset = 'utf8' ) Connects to database.
dumpTable ( $handle, $table ) : void Dumps table to logical file.
save ( $file ) : void Saves dump to the file.
write ( $handle = NULL ) : void Writes dump to logical file.

Приватные методы

Метод Описание
delimite ( $s )

Описание методов

__construct() публичный Метод

Connects to database.
public __construct ( mysqli $connection, $charset = 'utf8' )
$connection mysqli

dumpTable() публичный Метод

Dumps table to logical file.
public dumpTable ( $handle, $table ) : void
Результат void

save() публичный Метод

Saves dump to the file.
public save ( $file ) : void
Результат void

write() публичный Метод

Writes dump to logical file.
public write ( $handle = NULL ) : void
Результат void

Описание свойств

$tables публичное свойство

public array $tables
Результат array