/ LJCPHPCodeDoc / LJCGenTextSectionLib / LJCSections / CreateColumnData


Parameters
$dbColumns - The table columns definition.
$tableName - The Table name.
$className - The Class name.

Returns

The sections array.

Syntax

PHP
public static function CreateColumnData(LJCDbColumns $dbColumns
, string $tableName, string $className = null) : LJCSections

Creates the data from a table definition.

Example

PHP
 $webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
 require_once "$webCommonPath/LJCDBAccessLib.php";
 require_once "$webCommonPath/LJCGenTextSectionLib.php";
 
 $dbAccess = new LJCDbAccess($connectionValues);
 
 $tableName = "TableName";
 $dbColumns = $dbAccess->LoadTableSchema($database, $tableName);
 
 // $sections is an LJCSections object.
 $sections = LJCSections::CreateColumnData($dbColumns, $tableName
   , "ClassName");

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.