From e03da006b99550e9720d36c9399a4532288515af Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Wed, 10 Jan 2024 21:25:47 -0500 Subject: [PATCH] family type --- www-api/app/Controllers/WrenchApi.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/www-api/app/Controllers/WrenchApi.php b/www-api/app/Controllers/WrenchApi.php index 2b1630d7..e508253c 100644 --- a/www-api/app/Controllers/WrenchApi.php +++ b/www-api/app/Controllers/WrenchApi.php @@ -646,9 +646,17 @@ class WrenchApi extends BaseController $final_out["server_tag"] = $server_tag; $final_out["language"] = "en"; $final_out["ip_loc"] = $ip_loc; + $final_out["family_types"] = this.familyTypes(); //return json_encode( ( new \App\Models\ResultFormatter() )->processOutJson($in, $out)); return json_encode( $final_out ); } + private function familyTypes(){ + return [ + array("ty"=>"Parent", "id"=>"PARENT", "tag"=>"fam_type_parent"), + array("ty"=>"Relatives", "id"=>"RELATIVES", "tag"=>"fam_type_relatives"), + array("ty"=>"Others", "id"=>"Others", "tag"=>"fam_type_others") + ]; + } }