@@ -35,6 +35,9 @@ discard block |
||
35 | 35 | return $location; |
36 | 36 | } |
37 | 37 | |
38 | + /** |
|
39 | + * @param string $hash |
|
40 | + */ |
|
38 | 41 | public function addDevice($name, $hash, $user) { |
39 | 42 | $sql = "INSERT INTO `*PREFIX*maps_location_track_users` (user_id,name,hash,created) VALUES(?,?,?,?)"; |
40 | 43 | $query = $this -> db -> prepareQuery($sql); |
@@ -46,6 +49,11 @@ discard block |
||
46 | 49 | return $this -> db -> getInsertId('`*PREFIX*maps_locations`'); |
47 | 50 | } |
48 | 51 | |
52 | + /** |
|
53 | + * @param integer|null $from |
|
54 | + * @param integer $till |
|
55 | + * @param integer $limit |
|
56 | + */ |
|
49 | 57 | public function loadHistory($deviceId,$from,$till,$limit) |
50 | 58 | { |
51 | 59 | $between = ($from) ? ' AND l.timestamp BETWEEN ? AND ? ' : ''; |