File path: dist/twist/Core/Models/Database/Table.model.php
Namespace: Twist\Core\Models\Database
copy
— Copy an excising table structure into a new object, the new table will not exists until you commit the returned object.
Name | Description |
---|---|
$strNewTable | n/a |
[$strNewDatabase = null] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$strNewTable = 'foo';
$strNewDatabase = null;
//Call the function copy with the example vars
$resTable = new \Twist\Core\Models\Database\Table();
$resTable -> copy($strNewTable, $strNewDatabase);