Order_ordersource.php 1.17 KB
<?php

class Order_ordersource extends CI_Driver
{
    public $CI;

    public function __construct () {
        $this->CI = &get_instance();
    }

    public function all ($id) {
        $url = $this->CI->config->item('apiBaseUrl') . 'order/ordersource/'.$id;
        $result = file_get_contents($url);
        $json = json_decode($result);
        $ret = $json->data;

        return $ret;
    }

    public function dueDiligenceType () {
        $url = $this->CI->config->item('apiBaseUrl') . 'order/ordersource/dueDiligenceType';
        $result = file_get_contents($url);
        $json = json_decode($result);
        $ret = $json->data;

        return $ret;
    }

    public function baseType () {
        $url = $this->CI->config->item('apiBaseUrl') . 'order/ordersource/baseType';
        $result = file_get_contents($url);
        $json = json_decode($result);
        $ret = $json->data;

        return $ret;
    }

    public function confirmType () {
        $url = $this->CI->config->item('apiBaseUrl') . 'order/ordersource/confirmType';
        $result = file_get_contents($url);
        $json = json_decode($result);
        $ret = $json->data;

        return $ret;
    }
}