summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/inc/locationinfo.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2017-06-13 18:32:23 +0200
committerSimon Rettberg2017-06-13 18:32:23 +0200
commit0085d9309252fc1eec276b6eb05f271a140bee5d (patch)
tree01b36229b0b6e1a7477274ba8b62231c1b82ccbb /modules-available/locationinfo/inc/locationinfo.inc.php
parent[locationinfo] Location edit part done so far (diff)
downloadslx-admin-0085d9309252fc1eec276b6eb05f271a140bee5d.tar.gz
slx-admin-0085d9309252fc1eec276b6eb05f271a140bee5d.tar.xz
slx-admin-0085d9309252fc1eec276b6eb05f271a140bee5d.zip
[locationinfo] slxadmin part done, todo: frontend+api
Diffstat (limited to 'modules-available/locationinfo/inc/locationinfo.inc.php')
-rw-r--r--modules-available/locationinfo/inc/locationinfo.inc.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/modules-available/locationinfo/inc/locationinfo.inc.php b/modules-available/locationinfo/inc/locationinfo.inc.php
index 6b13ad9a..fa97a0c6 100644
--- a/modules-available/locationinfo/inc/locationinfo.inc.php
+++ b/modules-available/locationinfo/inc/locationinfo.inc.php
@@ -60,4 +60,27 @@ class LocationInfo
}
}
+ /**
+ * Creates and returns a default config for room that didn't saved a config yet.
+ *
+ * @return array Return a default config.
+ */
+ public static function defaultPanelConfig()
+ {
+ return array(
+ 'language' => 'en',
+ 'mode' => 1,
+ 'vertical' => false,
+ 'eco' => false,
+ 'scaledaysauto' => true,
+ 'daystoshow' => 7,
+ 'rotation' => 0,
+ 'scale' => 50,
+ 'switchtime' => 20,
+ 'calupdate' => 30,
+ 'roomupdate' => 15,
+ 'configupdate' => 180,
+ );
+ }
+
}