summaryrefslogtreecommitdiffstats
path: root/modules-available/locations/inc/locationutil.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2019-07-29 15:01:39 +0200
committerSimon Rettberg2019-07-29 15:01:39 +0200
commitcddd600996de531861f38bd8859c932e48514dd5 (patch)
tree904dff463b0f5116db032ced807196eca3b5dca8 /modules-available/locations/inc/locationutil.inc.php
parent[roomplanner] Fix check for successful DB write (diff)
downloadslx-admin-cddd600996de531861f38bd8859c932e48514dd5.tar.gz
slx-admin-cddd600996de531861f38bd8859c932e48514dd5.tar.xz
slx-admin-cddd600996de531861f38bd8859c932e48514dd5.zip
[locations] Optimize some functions in Location class
* Casts are faster than settype. * Check if assoc location cache is already populated. * getLocationRootChain can use the parents array from that location instead of building the array from scratch.
Diffstat (limited to 'modules-available/locations/inc/locationutil.inc.php')
-rw-r--r--modules-available/locations/inc/locationutil.inc.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules-available/locations/inc/locationutil.inc.php b/modules-available/locations/inc/locationutil.inc.php
new file mode 100644
index 00000000..b3d9bbc7
--- /dev/null
+++ b/modules-available/locations/inc/locationutil.inc.php
@@ -0,0 +1 @@
+<?php