This commit is contained in:
Daniel Brendel
2023-10-10 10:25:05 +02:00
parent 88fd94bfaa
commit c31a757c04
3 changed files with 21 additions and 2 deletions

View File

@@ -4,6 +4,24 @@
* This class represents your module
*/
class UtilsModule {
/**
* @param $lang
* @return void
*/
public static function setLanguage($lang)
{
setLanguage($lang);
$_COOKIE['current_language'] = $lang;
}
/**
* @return string
*/
public static function getLanguage()
{
return $_COOKIE['current_language'];
}
/**
* @return array
*/