From 03997075bec3a0fd436c881a748b108acc7a98fd Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 6 Jul 2017 13:12:21 +0200 Subject: [locationinfo] Support runmode module --- modules-available/locationinfo/inc/locationinfo.inc.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'modules-available/locationinfo/inc/locationinfo.inc.php') 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']; + } + } -- cgit v1.2.3-55-g7522