TwistPHP Documentation

copy

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

copyCopy an excising table structure into a new object, the new table will not exists until you commit the returned object.

Parameters

Name Type Description
$strNewTablestringn/a
[$strNewDatabase = null]stringn/a

Return Values

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

Example

<?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);