playground data
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user