TwistPHP Documentation

collation

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

collationSet the Collation for the database table, calling this method will also set the charset of the Table accordingly

Parameters

Name Type Description
$strCollationstringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strCollation 'foo';

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