summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/inc/locationinfo.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2017-07-06 13:12:21 +0200
committerSimon Rettberg2017-07-06 13:12:21 +0200
commit03997075bec3a0fd436c881a748b108acc7a98fd (patch)
tree2f17dc7ccebadad9cf8b60fd856b6603a1078f47 /modules-available/locationinfo/inc/locationinfo.inc.php
parent[runmode] New module for managing special boot modes of clients (diff)
downloadslx-admin-03997075bec3a0fd436c881a748b108acc7a98fd.tar.gz
slx-admin-03997075bec3a0fd436c881a748b108acc7a98fd.tar.xz
slx-admin-03997075bec3a0fd436c881a748b108acc7a98fd.zip
[locationinfo] Support runmode module
Diffstat (limited to 'modules-available/locationinfo/inc/locationinfo.inc.php')
-rw-r--r--modules-available/locationinfo/inc/locationinfo.inc.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules-available/locationinfo/inc/locationinfo.inc.php b/modules-available/locationinfo/inc/locationinfo.inc.php
index 473804cc..36a77d4f 100644
--- a/modules-available/locationinfo/inc/locationinfo.inc.php
+++ b/modules-available/locationinfo/inc/locationinfo.inc.php
@@ -75,4 +75,15 @@ class LocationInfo
);
}
+ /**
+ * @param string $uuid panel uuid
+ * @return bool|string panel name if exists, false otherwise
+ */
+ public static function getPanelName($uuid)
+ {
+ $ret = Database::queryFirst('SELECT panelname FROM locationinfo_panel WHERE paneluuid = :uuid', compact('uuid'));
+ if ($ret === false) return false;
+ return $ret['panelname'];
+ }
+
}