Files
dev-chiefworks f76abffdcd first commit
2022-05-31 16:21:53 -04:00

57 lines
1.3 KiB
PHP

<?php if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
class Quote_model extends CI_Model
{
private $id;
private $transport_provider_id;
private $automation_id;
private $cost_raw;
private $cost;
private $created;
private $completed;
private $member_id;
private $location_start_id;
private $location_end_id;
private $quote_group_id;
private $travel_date;
public function __constructor()
{
parrent::__constructor();
}
public function Quote()
{
$result = [
'id' => 1,
'transport_provider_id' => 3,
'automation_id' => 5,
'cost_raw' => 70,
'cost' => 100,
'created' => '04-10-2019 10:44:22',
'completed' => '04-10-2019 12:45:00',
'member_id' => 12,
'location_start_id' => 6,
'location_end_id' => 10,
'quote_group_id' => 25,
'travel_date' => '04-10-2019 05:45:00',
];
return $result;
}
public function getQuotes()
{
$response = array();
// TODO: Get address items from sqeAPI
for ($i = 0; $i < 30; $i++) {
$response[] = $this->Quote();
}
return $response;
}
}