From 159104286fb815b48699e57a84f8bba008f956a7 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Tue, 27 Feb 2024 08:22:09 -0500 Subject: [PATCH] clean tresources --- www-api/app/Controllers/WrenchResources.php | 127 +------------------- 1 file changed, 2 insertions(+), 125 deletions(-) diff --git a/www-api/app/Controllers/WrenchResources.php b/www-api/app/Controllers/WrenchResources.php index f7703ef3..6ad44f40 100644 --- a/www-api/app/Controllers/WrenchResources.php +++ b/www-api/app/Controllers/WrenchResources.php @@ -61,13 +61,10 @@ class WrenchResources extends BaseController $res1['marketdata'] = $this->MarketData(); $res1['productdata'] = $this->ProductData(); $res1['collectiondata'] = $this->CollectionData(); - $res1['blogdata'] = $this->getBlogData(); return $this->response->setJson($res1); } - private function getBlogData(){ - return ( new \App\Models\BlogDataModel() )->blogData(100); - } + public function index() { @@ -144,19 +141,13 @@ class WrenchResources extends BaseController } $in = $raw_array; - $in["loc"] = $_SERVER["REMOTE_ADDR"]; - - log_message('critical', "WrenchResources Path GATE 005"); - // $res1['tab_categories'] = json_encode( $this->getFamilyResourceCategory($in)); + $res1['tab_categories'] = json_encode( $this->getFamilyResourceCategory($in)); log_message('critical', "WrenchResources Path GATE 11"); - $res1['ask_categories'] = $this->AskCategoryData(); - $res1['upload_types'] = $this->uploadTypes(); $res1['marketdata'] = $this->MarketData(); $res1['productdata'] = $this->ProductData(); $res1['collectiondata'] = $this->CollectionData(); - $res1['blogdata'] = $this->getBlogData(); return $this->response->setJson($res1); } private function getFamilyResourceCategory($in){ @@ -170,120 +161,6 @@ class WrenchResources extends BaseController return []; } } - private function AskCategoryData(){ - - - $arrayVar = [ - "data" => [ - [ - "id" => "0", - "name" => "Possible Topics on ", - "question_key" => "ASK01", - ], - [ - "id" => "1", - "name" => "Summary description of", - "question_key" => "ASK02", - ], - ] - ]; - return $arrayVar; - } - - private function uploadTypes(){ - - //JPG, PNG, GIP, SVG, MP4, MP3, WEBM, OGG, GLB, GLTF - $arrayVar = [ - "data" => [ - [ - "id" => "JPG", - "name" => "JPG", - "max_size_mb" => "5", - ], - [ - "id" => "PNG", - "name" => "PNG", - "max_size_mb" => "4", - ], - [ - "id" => "GIP", - "name" => "GIP", - "max_size_mb" => "4", - ], - [ - "id" => "BMP", - "name" => "BMP", - "max_size_mb" => "4", - ], - [ - "id" => "PDF", - "name" => "PDF", - "max_size_mb" => "4", - ], - [ - "id" => "MP4", - "name" => "MP4", - "max_size_mb" => "10", - ], - - ] - ]; - - return $arrayVar; - - } - private function CategoryData(){ - - - $arrayVar = [ - "data" => [ - [ - "id" => "0", - "name" => "blog", - "content" => "Blog", - "enabled" => 1 - ], - [ - "id" => "1", - "name" => "onsale", - "content" => "Questions?", - "enabled" => 1 - ], - [ - "id" => "2", - "name" => "owned", - "content" => "Interesting", - "enabled" => 0 - ], - [ - "id" => "3", - "name" => "created", - "content" => "My Items", - "enabled" => 1 - ], - - ] - ]; -/* - * [ - "id" => "4", - "name" => "hidden", - "content" => "Hidden", - ], - [ - "id" => "5", - "name" => "collection", - "content" => "Collection", - ], - [ - "id" => "6", - "name" => "activity", - "content" => "Activity", - ], - */ - return $arrayVar; - } - private function CollectionData(){ $arrayVar = [