Completed
Push — minmax-version ( 3e61e1...1dd864 )
by
unknown
08:24
created
db/locationmanager.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -35,6 +35,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 ? ' : '';
Please login to merge, or discard this patch.