TwistPHP Documentation

exportSQL

File path: dist/twist/Core/Helpers/Database.helper.php
Namespace: Twist\Core\Helpers
Extends: Base

exportSQLExport/dump the contents of a database to an SQL file

Parameters

Name Type Description
$dirSQLFilestringn/a
[$strDatabaseName = null]stringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$dirSQLFile '/home/user/public_html/twist';
$strDatabaseName null;

//Call the function exportSQL with the example vars
Twist::Database() -> exportSQL($dirSQLFile$strDatabaseName);