dummy notfification data
This commit is contained in:
@@ -78,7 +78,8 @@ class WrenchNotifications extends BaseController
|
||||
switch ($endpoints){
|
||||
|
||||
case 'mynotifications':
|
||||
|
||||
$call_backend = false;
|
||||
$local_out = $this->dummyData();
|
||||
break;
|
||||
|
||||
}
|
||||
@@ -102,5 +103,22 @@ class WrenchNotifications extends BaseController
|
||||
return $this->response->setJson($response);
|
||||
}
|
||||
|
||||
private function dummyData(){
|
||||
|
||||
$ic =['alert.svg','message.svg','phone.svg','sms.svg'];
|
||||
|
||||
$total = rand(5,25);
|
||||
for ($i = 0; $i < $total; $i++) {
|
||||
$key = sprintf("%05d", $i);
|
||||
$data["result_list"][] = array(
|
||||
"icon" => $ic[rand(0,3)],
|
||||
"title" => "This is faq title dummy text ".$key,
|
||||
"date" => "10-10-2025 12:30PM",
|
||||
);
|
||||
}
|
||||
|
||||
return $data;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user