From 21a57530081ea26e2b52c5e7e0292809e9461cdb Mon Sep 17 00:00:00 2001 From: Ben Keen Date: Thu, 19 Oct 2017 19:36:35 -0700 Subject: [PATCH] getSettings added to Modules --- global/code/Core.class.php | 2 +- global/code/Module.abstract.class.php | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/global/code/Core.class.php b/global/code/Core.class.php index feb4f668..4dd93351 100644 --- a/global/code/Core.class.php +++ b/global/code/Core.class.php @@ -262,7 +262,7 @@ class Core { /** * The release date: YYYYMMDD */ - private static $releaseDate = "20171017"; + private static $releaseDate = "20171019"; /** * The minimum required PHP version needed to run Form Tools. diff --git a/global/code/Module.abstract.class.php b/global/code/Module.abstract.class.php index 27617f26..469dba22 100644 --- a/global/code/Module.abstract.class.php +++ b/global/code/Module.abstract.class.php @@ -226,6 +226,16 @@ public final function getCSSFiles() return $files; } + /** + * Returns all or specific settings for the module. + * @param mixed $settings array of settings or single setting string, or nothing (returns all) + * @return array + */ + public final function getSettings ($settings = "") + { + return Settings::get($settings, $this->moduleFolder); + } + /** * Returns the language strings * @return array