diff options
author | Simon Rettberg | 2017-06-10 16:15:22 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-06-10 16:15:22 +0200 |
commit | a0b42aa257d0a6c56cd4a099aa0a2cea4a8dc2c9 (patch) | |
tree | 3e1655c828e0cb6f069b8c17ddf260237e0f4ce2 /modules-available/locations/inc | |
parent | [inc/Util] Add randomUuid() function (diff) | |
download | slx-admin-a0b42aa257d0a6c56cd4a099aa0a2cea4a8dc2c9.tar.gz slx-admin-a0b42aa257d0a6c56cd4a099aa0a2cea4a8dc2c9.tar.xz slx-admin-a0b42aa257d0a6c56cd4a099aa0a2cea4a8dc2c9.zip |
[locationinfo] Started rewrite for panel-based approach
Diffstat (limited to 'modules-available/locations/inc')
-rw-r--r-- | modules-available/locations/inc/location.inc.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules-available/locations/inc/location.inc.php b/modules-available/locations/inc/location.inc.php index b2b6da4a..aff2dec5 100644 --- a/modules-available/locations/inc/location.inc.php +++ b/modules-available/locations/inc/location.inc.php @@ -27,6 +27,11 @@ class Location return $rows; } + /** + * Return row from location table for $locationId. + * @param $locationId + * @return array|bool row from DB, false if not found + */ public static function get($locationId) { return Database::queryFirst("SELECT * FROM location WHERE locationid = :locationId", compact('locationId')); |