TwistPHP Documentation

copyTo

File path: dist/twist/Core/Models/Database/TableStructure.model.php
Namespace: Twist\Core\Models\Database
Extends:

copyToSet a new table/database, this is only to be used when cloning/copying a database

Parameters

Name Type Description
$strTablestringn/a
[$strDatabase = null]stringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strTable 'foo';
$strDatabase null;

//Call the function copyTo with the example vars
$resTableStructure = new \Twist\Core\Models\Database\TableStructure();
$resTableStructure -> copyTo($strTable$strDatabase);