Interface pheme\settings\models\SettingInterface

Implemented bypheme\settings\models\Setting, pheme\settings\models\SettingSearch

Interface SettingInterface

Method Details

activateSetting() public abstract method

Activates a setting

public abstract boolean activateSetting ( $section, $key )
$section
$key
return boolean

True on success, false on error

deactivateSetting() public abstract method

Deactivates a setting

public abstract boolean deactivateSetting ( $section, $key )
$section
$key
return boolean

True on success, false on error

deleteAllSettings() public abstract method

Deletes all settings! Be careful!

public abstract boolean deleteAllSettings ( )
return boolean

True on success, false on error

deleteSetting() public abstract method

Deletes a settings

public abstract boolean deleteSetting ( $section, $key )
$section
$key
return boolean

True on success, false on error

getSettings() public abstract method

Gets a combined map of all the settings.

public abstract array getSettings ( )
setSetting() public abstract method

Saves a setting

public abstract bool setSetting ( $section, $key, $value, $type )
$section
$key
$value
$type
throws \yii\base\InvalidConfigException