kopia lustrzana https://github.com/magicbug/Cloudlog
Basic API and Authentication extensions.
rodzic
8a793391ad
commit
aa5622ab29
|
@ -281,6 +281,14 @@ class Logbook_model extends CI_Model {
|
|||
return $query;
|
||||
}
|
||||
|
||||
function api_search_query($query) {
|
||||
$time_start = microtime(true);
|
||||
$results = @$this->db->query($query);
|
||||
$time_end = microtime(true);
|
||||
$time = round($time_end - $time_start, 4);
|
||||
|
||||
return array('query' => $query, 'results' => $results, 'time' => $time);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Ładowanie…
Reference in New Issue