/ 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
 include_once "LJCRoot.php";
 $prefix = RelativePrefix();
  include_once "$prefix/LJCPHPCommon/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.