/ LJCPHPCodeDoc / LJCDBAccessLib / LJCJoins / AddObject


Parameters
$item - The item to add to the collection.
$key - The optional key value.

Syntax

PHP
public function AddObject(LJCJoin $item, $key = null) : ?LJCJoin

Adds an object and key value.

Example

PHP
 $webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
 require_once "$webCommonPath/LJCDBAccessLib.php";
 
 $joins = new LJCJoins();
 $join = new LJCJoin("TableName");
 $joins->AddObject($join);

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