Class humhub\modules\content\components\behaviors\SettingsBehavior

Inheritancehumhub\modules\content\components\behaviors\SettingsBehavior » yii\base\Behavior
Available since version0.6
Deprecated since version since version 1.1

Settings is a helper for deprecated methods getSetting/setSetting of Space/User Model

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getSetting() Get an content container setting value humhub\modules\content\components\behaviors\SettingsBehavior
setSetting() Set an content container setting value humhub\modules\content\components\behaviors\SettingsBehavior

Method Details

getSetting() public method
Deprecated since version 1.1

Get an content container setting value

public String getSetting ( $name, $moduleId 'core', $default '' )
$name String

Of setting

$moduleId String

Of setting

$default String

Value when no setting exists

setSetting() public method
Deprecated since version 1.1

Set an content container setting value

public void setSetting ( $name, $value, $moduleId "" )
$name String
$value String
$moduleId String