/ LJCPHPCodeDoc / LJCDataManagerLib / LJCDataManager / construct


Parameters
$connectionValues - The DB Connection values.
$tableName - The table name.

Syntax

PHP
public function __construct($connectionValues, string $tableName)

Initializes a class instance with the provided values.

Example

PHP
 $webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
 require_once "$webCommonPath/LJCDataManagerLib.php";
 require_once "$webCommonPath/LJCDBAccessLib.php";
 
 $database = "DatabaseName";
 $userID = "UserID";
 $password = "Password":
 $connectionValues = new LJCConnectionValues("localhost", $database, $userID
   , $password);
 
 $tableName = "TableName";
 $manager = new LJCDataManager($connectionValues, $tableName);

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