feat(mvc): add preview mode setting
This commit is contained in:
parent
104e9053e1
commit
c2bfee60f1
6 changed files with 42 additions and 0 deletions
|
@ -1653,4 +1653,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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue