Parameters
$key - The element key.
$throwError - Indicates if an error should be thrown if the key is not found.
Returns
The object with the matching key value.
Syntax
PHP |
protected function RetrieveItem($key, bool $throwError = true)
|
Get the item by Key value.
Example
PHP |
include_once "LJCRoot.php";
$prefix = RelativePrefix();
include_once "$prefix/LJCPHPCommon/LJCCollectionLib.php";
// Add to class that extends LJCCollectionBase
// Retrieves the item by Key value.
public function Retrieve($key)
{
$retValue = $this->RetrieveItem($key, $throwError);
return $retValue;
}
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.