/ LJCPHPCodeDoc / LJCDBAccessLib / LJCDbColumns / GetColumns


Parameters
$propertyNames - The collection of property names.

Returns

The definitions for the specified properties.

Syntax

PHP
public function GetColumns(array $propertyNames = null) : self

Get the column definitions that match the property names.

Example

PHP
 $webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
 require_once "$webCommonPath/LJCDBAccessLib.php";
 
 $dbColumns = new LJCDbColumns();
 $dbColumns->Add"FirstName");
 $dbColumns->Add("MiddleName");
 $dbColumns->Add("LastName");
 
 $propertyNames = [];
 $propertyNames[] = "FirstName";
 $propertyNames[] = "LastName";
 $specificColumns = $dbColumns->GetColumns($propertyNames);

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