Flow.php 440 Bytes
<?php

class Flow extends CI_Driver_Library {
    public $ci;
    public function __construct () {
        $this->valid_drivers = [];

        $this->ci = &get_instance();
    }

    public function getLastCheck ($id) {
        $url = $this->ci->config->item('apiBaseUrl') . 'flow/getLastCheck/'.$id;
        $result = file_get_contents($url);
        $json = json_decode($result);
        $ret = $json->data;

        return $ret;
    }
}