From fde2ccf55eaef7e86021ff1acce26479160a0fa0 Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Thu, 15 Jun 2023 00:48:31 +0200 Subject: [PATCH] Minor update the change log --- CHANGELOG.md | 2 +- .../Engineering/Convert-Online.php | 83 +++++++++++++++++++ 2 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 samples/Calculations/Engineering/Convert-Online.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e2ac65e71..38836217ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com) and this project adheres to [Semantic Versioning](https://semver.org). -## Unreleased - TBD +## 1.29.0 - 2023-06-15 ### Added diff --git a/samples/Calculations/Engineering/Convert-Online.php b/samples/Calculations/Engineering/Convert-Online.php new file mode 100644 index 0000000000..e20e4c79b6 --- /dev/null +++ b/samples/Calculations/Engineering/Convert-Online.php @@ -0,0 +1,83 @@ +isCli()) { + $helper->log('This example should only be run from a Web Browser' . PHP_EOL); + + return; +} + +$categories = ConvertUOM::getConversionCategories(); +$units = []; +foreach ($categories as $category) { + $categoryUnits = ConvertUOM::getConversionCategoryUnitDetails($category)[$category]; + $categoryUnits = array_unique( + array_combine( + array_column($categoryUnits, 'unit'), + array_column($categoryUnits, 'description') + ) + ); + $units[$category] = $categoryUnits; +} + +?> +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+
+
+
+
+ +