30 lines
695 B
PHP
30 lines
695 B
PHP
<?php
|
|
|
|
class Status extends MY_Controller
|
|
{
|
|
var $db_smartone;
|
|
public function index()
|
|
{
|
|
echo "API";
|
|
}
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->db_smartone = $this->load->database("onedev", true);
|
|
}
|
|
public function lookup()
|
|
{
|
|
$status = array(
|
|
array("id"=>2,"code"=>"FO.Verification","name" => "Baru" ),
|
|
array("id"=>3,"code"=>"FO.Verification.Confirm","name" => "Verified"),
|
|
array("id"=>4,"code"=>"FO.Verification.Reject","name" => "Ditolak")
|
|
);
|
|
$result = array(
|
|
"total" => count($status) ,
|
|
"records" => $status,
|
|
);
|
|
$this->sys_ok($result);
|
|
exit;
|
|
}
|
|
}
|