TwistPHP Documentation

setFieldOrder

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

setFieldOrderSet the order of any given field by its name, this will adjust all other field accordingly

Parameters

Name Type Description
$strColumnNamestringn/a
$intOrderintegern/a

Return Values

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

Example

<?php
//Set the variables for the example
$strColumnName 'foo';
$intOrder 124;

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