Class yeesoft\settings\models\BaseSettingsModel

Inheritanceyeesoft\settings\models\BaseSettingsModel » yii\base\Model
Subclassesyeesoft\settings\models\GeneralSettings, yeesoft\settings\models\ReadingSettings

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
getAttributesDetails() Generate list of attributes details object yeesoft\settings\models\BaseSettingsModel
getMultilingualFieldName() Converts title_en-US to title_en_us yeesoft\settings\models\BaseSettingsModel
initAttributeValues() Init values of attributes yeesoft\settings\models\BaseSettingsModel

Method Details

__construct() public method

public void __construct ( $config = [] )
$config
__set() public method

public void __set ( $name, $value )
$name
$value
attributes() public method

public void attributes ( )
getAttributesDetails() protected method

Generate list of attributes details object

protected void getAttributesDetails ( )
getDescription() public method

Get setting field description

public void getDescription ( $key )
$key string
getGroup() public method

Get settings group

public void getGroup ( )
getMultilingualFieldName() protected method

Converts title_en-US to title_en_us

protected string getMultilingualFieldName ( $attribute )
$attribute string
initAttributeValues() protected method

Init values of attributes

protected void initAttributeValues ( )
isMultilingual() public method

Whether has model multilingual behavior

public boolean isMultilingual ( )
safeAttributes() public method

public void safeAttributes ( )
save() public method

Save settings to database

public void save ( )