File path: dist/twist/Core/Models/Database/TableStructure.model.php
Namespace: Twist\Core\Models\Database
Type: Model
TableStructure
— Simply create tables in an object orientated way with no need to write a mysql query
<?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);
Method | Access | Returns |
---|---|---|
__construct | construct | void |
__destruct | public | void |
copyTo | public | void |
collation | public | void |
charset | public | void |
engine | public | void |
comment | public | void |
autoIncrement | public | void |
primaryKey | public | void |
addUniqueKey | public | void |
addIndex | public | void |
addField | public | void |
setFieldOrder | public | void |
commit | public | void |
sql | public | void |
generatePrimaryKey | protected | void |
generateUniqueKey | protected | void |
generateIndexes | protected | void |
generateFieldList | protected | void |