From b7ba980519fae5d6499d50f311940b5a5d1fc6ce Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 12 Jul 2024 16:32:28 -0400 Subject: [PATCH] playground data --- www-api/app/Controllers/WrenchPlayGround.php | 52 ++++++++++++++++++-- 1 file changed, 47 insertions(+), 5 deletions(-) diff --git a/www-api/app/Controllers/WrenchPlayGround.php b/www-api/app/Controllers/WrenchPlayGround.php index 5b24acee..15022373 100644 --- a/www-api/app/Controllers/WrenchPlayGround.php +++ b/www-api/app/Controllers/WrenchPlayGround.php @@ -135,18 +135,33 @@ class WrenchPlayGround extends BaseController ]; $out["featured"][] =[ - "name" => "Featured educational from us", + "name" => "Your interest", "banner" => "If any banner is needed ", "item_list" => $this->apiFeaturedData() ]; + $out["collections"][] =[ + "name" => " There is name Collections", + "banner" => "If any banner is needed ", + "item_list" => $this->apiCollectionData() + ]; + + $out["shared"][] =[ + "name" => " There is name Shared", + "banner" => "If any banner is needed ", + "item_list" => $this->apiSharedData() + ]; + $out["result_list"][] =[ - "name" => " There is name 200", + "name" => " There is name 3333", + "banner" => "If any banner is needed ", + "item_list" => $this->apiData() + ]; + $out["result_list"][] =[ + "name" => " There is name 3333", "banner" => "If any banner is needed ", "item_list" => $this->apiData() ]; - - $out["result_list"][] =[ "name" => " There is name 3333", "banner" => "If any banner is needed ", @@ -182,9 +197,36 @@ class WrenchPlayGround extends BaseController return $data; } + private function apiSharedData() { + + $total = 6; + for ($i = 0; $i < $total; $i++) { + $key = sprintf("%05d", $i); + $data["item"][] = array( + "banner" => "I have no idea", + "title" => "This Shared dummy text ".$key, + "description" => "Random gibberish text to use in web pages, site templates and in typography demos. Get rid of Lorem Ipsum forever. A tool for web designers who want to save time. ".$key, + ); + } + return $data; + } + private function apiCollectionData() { + + $total = 6; + for ($i = 0; $i < $total; $i++) { + $key = sprintf("%05d", $i); + $data["item"][] = array( + "banner" => "I have no idea", + "title" => "This Collection dummy text ".$key, + "description" => "Random gibberish text to use in web pages, site templates and in typography demos. Get rid of Lorem Ipsum forever. A tool for web designers who want to save time. ".$key, + ); + } + return $data; + } + private function apiData() { - $total = rand(4,10); + $total = rand(1,3); for ($i = 0; $i < $total; $i++) { $key = sprintf("%05d", $i); $data["item"][] = array(