Class humhub\modules\content\components\ContentContainerSettingsManager

Inheritancehumhub\modules\content\components\ContentContainerSettingsManager » humhub\libs\BaseSettingsManager » yii\base\Component
Available since version1.1

ContentContainerSettingManager

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$_loaded array|null Of loaded settings humhub\libs\BaseSettingsManager

Public Methods

Hide inherited methods

MethodDescriptionDefined By
delete() Deletes setting humhub\libs\BaseSettingsManager
deleteAll() Deletes all stored settings humhub\libs\BaseSettingsManager
get() Returns value of setting humhub\libs\BaseSettingsManager
getInherit() Returns the setting value of this container for the given setting $name. humhub\modules\content\components\ContentContainerSettingsManager
getSerialized() Receives a value which was saved as serialized value. humhub\libs\BaseSettingsManager
getSerializedInherit() Returns the setting value of this container for the given setting $name. humhub\modules\content\components\ContentContainerSettingsManager
getUncached() Returns the value of setting without any caching humhub\libs\BaseSettingsManager
init() humhub\libs\BaseSettingsManager
isDatabaseInstalled() Checks if settings table exists or application is not installed yet humhub\libs\BaseSettingsManager
reload() Reloads all values from database humhub\libs\BaseSettingsManager
set() Sets a settings value humhub\libs\BaseSettingsManager
setSerialized() Can be used to set object/arrays as a serialized values. humhub\libs\BaseSettingsManager

Property Details

$contentContainer public property

The content container this settings manager belongs to

$modelClass public property

Settings model class name

public string $modelClass 'humhub\modules\content\models\ContentContainerSetting'

Method Details

createRecord() protected method

Returns settings active record instance

protected void createRecord ( )
find() protected method

Returns ActiveQuery to find settings

protected \yii\db\ActiveQuery find ( )
getCacheKey() protected method

Returns settings managers cache key

protected string getCacheKey ( )
return string

The cache key

getInherit() public method (available since version 1.2)

Returns the setting value of this container for the given setting $name.

If there is not container specific setting, this function will search for a global setting or return default or null if there is also no global setting.

public boolean getInherit ( $name, $default null )
$name string
$default string
getSerializedInherit() public method (available since version 1.2)

Returns the setting value of this container for the given setting $name.

If there is not container specific setting, this function will search for a global setting or return default or null if there is also no global setting.

public boolean getSerializedInherit ( $name, $default null )
$name string
$default string