diff options
author | Simon Rettberg | 2017-06-13 18:32:23 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-06-13 18:32:23 +0200 |
commit | 0085d9309252fc1eec276b6eb05f271a140bee5d (patch) | |
tree | 01b36229b0b6e1a7477274ba8b62231c1b82ccbb /modules-available/locationinfo/inc | |
parent | [locationinfo] Location edit part done so far (diff) | |
download | slx-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')
-rw-r--r-- | modules-available/locationinfo/inc/locationinfo.inc.php | 23 |
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, + ); + } + } |