From 0b450a1440a1c3069cb7b09383a931ff052c1fd6 Mon Sep 17 00:00:00 2001 From: "DESKTOP-GBA0BK8\\Admin" Date: Sat, 15 Apr 2023 22:30:52 -0400 Subject: [PATCH] Formatter Model --- www-api/app/Controllers/WrenchApi.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/www-api/app/Controllers/WrenchApi.php b/www-api/app/Controllers/WrenchApi.php index a16aa85c..aefc3d0a 100644 --- a/www-api/app/Controllers/WrenchApi.php +++ b/www-api/app/Controllers/WrenchApi.php @@ -280,6 +280,21 @@ class WrenchApi extends BaseController } //-- move to another module end + $in["pid"] = 100; + $out = array(); + if ( $call_backend == true){ + // $ret = $wrenchboard->wrenchboard_api($in, $out); + $out['internal_return'] = 0; // $ret; // this is reserved array parameter - to be captured and received before you use the out array() + } + else + { + $out = $local_out; + } + + + //ResultFormatter + $res000 = json_encode( ( new \App\Models\ResultFormatter() )->processOutJson($in, $out)); + $res1 = $this->dummyData($raw_array); return $this->response->setJson($res1);