Update HRP geo file
This commit is contained in:
10
inc/feed.php
10
inc/feed.php
@@ -1,5 +1,12 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Feed Class
|
||||
* Also takes care of spot (device) & messages
|
||||
*
|
||||
* To add a new feed, create a new records in the feed table:
|
||||
* INSERT INTO feeds (ref_feed_id, id_spot, id_project) VALUES ('<feed_id>', '<related_spot_id>', '<related_project_id>');
|
||||
*/
|
||||
class Feed extends PhpObject {
|
||||
|
||||
//Spot feed
|
||||
@@ -20,7 +27,6 @@ class Feed extends PhpObject {
|
||||
|
||||
private $iFeedId;
|
||||
private $sRefFeedId;
|
||||
|
||||
private $iLastUpdate;
|
||||
|
||||
public function __construct(Db &$oDb, $iFeedId) {
|
||||
@@ -65,7 +71,7 @@ class Feed extends PhpObject {
|
||||
|
||||
if(!empty($asMsgs))
|
||||
{
|
||||
//Update Spot Info
|
||||
//Update Spot Info from the first message
|
||||
$asFirstMsg = array_values($asMsgs)[0];
|
||||
$asSpotInfo = array(
|
||||
'ref_spot_id' => $asFirstMsg['messengerId'],
|
||||
|
||||
Reference in New Issue
Block a user