job format
This commit is contained in:
@@ -175,6 +175,7 @@ function processOutJson($in, $out) {
|
|||||||
'job_country' => $out["job_country_${key}"],
|
'job_country' => $out["job_country_${key}"],
|
||||||
'currency' => 'Naira',
|
'currency' => 'Naira',
|
||||||
'currency_code' => 'NGN',
|
'currency_code' => 'NGN',
|
||||||
|
'category' => dummyGetCategory()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -192,19 +193,17 @@ function processOutJson($in, $out) {
|
|||||||
for ($i = 0; $i < $total; $i++) {
|
for ($i = 0; $i < $total; $i++) {
|
||||||
$key = sprintf("%05d", $i);
|
$key = sprintf("%05d", $i);
|
||||||
$res["result_list"][] = array(
|
$res["result_list"][] = array(
|
||||||
"title" => $out["title_${key}"],
|
"title" => $out["title_${key}"],
|
||||||
"description" => $out["description_${key}"],
|
"description" => $out["description_${key}"],
|
||||||
"id" => $out["id_${key}"],
|
"id" => $out["id_${key}"],
|
||||||
"job_description" => $out["job_description_${key}"],
|
"job_description" => $out["job_description_${key}"],
|
||||||
"price" => $out["price_${key}"],
|
"price" => $out["price_${key}"],
|
||||||
"timeline_days" => $out["timeline_days_${key}"],
|
"timeline_days" => $out["timeline_days_${key}"],
|
||||||
|
"contract_id" => $out["contract_id_${key}"],
|
||||||
"contract_id" => $out["contract_id_${key}"],
|
"job_id" => $out["job_id_${key}"],
|
||||||
"job_id" => $out["job_id_${key}"],
|
"contract" => $out["contract_${key}"],
|
||||||
"contract" => $out["contract_${key}"],
|
"status_description" => $out["status_description_${key}"],
|
||||||
"status_description" => $out["status_description_${key}"],
|
"delivery_date" => $out["delivery_date_${key}"]
|
||||||
|
|
||||||
"delivery_date" => $out["delivery_date_${key}"]
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -303,6 +302,25 @@ function processOutJson($in, $out) {
|
|||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function dummyGetCategory(){
|
||||||
|
$i= rand(1,4);
|
||||||
|
$res=array();
|
||||||
|
switch ($i) {
|
||||||
|
case 1:
|
||||||
|
$res= array('CT1', 'CT2');
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
$res= array( 'CT3', 'CT4');
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
$res= array('CT1', 'CT4',);
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
$res= array( 'CT4');
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return $res;
|
||||||
|
}
|
||||||
function dummyCategory(){
|
function dummyCategory(){
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
|
|||||||
Reference in New Issue
Block a user