Merge pull request #1153 from hairmare/feat/preview-mode-preference

feat(mvc): add preview mode setting
This commit is contained in:
Kyle Robbertze 2021-01-19 15:19:57 +02:00 committed by GitHub
commit 757e4929a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 42 additions and 0 deletions

View file

@ -1591,4 +1591,23 @@ class Application_Model_Preference
public static function SetAllowedCorsUrls($value) {
self::setValue('allowed_cors_urls', $value);
}
/**
* Getter for feature preview mode.
*
* @return bool
*/
public static function GetFeaturePreviewMode() {
return self::getValue('feature_preview_mode') === '1';
}
/**
* Setter for feature preview mode.
*
* @param bool $value
* @return void
*/
public static function SetFeaturePreviewMode($value) {
return self::setValue('feature_preview_mode', $value);
}
}