/ LJCPHPCodeDoc / LJCDBAccessLib / LJCJoinOns / AddObject


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

Syntax

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

Adds an object and key value.

Example

PHP
 $webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
 require_once "$webCommonPath/LJCDBAccessLib.php";
 
 $joinOns = new LJCJoinOns();
 $joinOn = new LJCJoinOn("FromColumnName", "ToColumnName");
 $joinOns->AddObject($joinOn);

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