Skip to content

Commit

Permalink
getSettings added to Modules
Browse files Browse the repository at this point in the history
  • Loading branch information
benkeen committed Oct 20, 2017
1 parent ccfa876 commit 21a5753
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion global/code/Core.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 10 additions & 0 deletions global/code/Module.abstract.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 21a5753

Please sign in to comment.