PHP Class skeeks\cms\models\CmsComponentSettings

Inheritance: extends Core
Show file Open project: skeeks-cms/cms Class Usage Examples

Public Methods

Method Description
attributeLabels ( ) : array
baseQuery ( Component $component ) : ActiveQuery
baseQuerySites ( Component $component ) : ActiveQuery
baseQueryUsers ( Component $component ) : ActiveQuery
behaviors ( ) : array
createByComponentDefault ( Component $component ) : static
createByComponentSiteCode ( Component $component, string $site_code ) : static
createByComponentUserId ( Component $component, integer $user_id ) : static
fetchByComponentDefault ( Component $component ) : static Получение настроек для компонента
fetchByComponentSite ( Component $component, CmsSite $site ) : static Получение настроек для компонента по коду сайта.
fetchByComponentSiteCode ( Component $component, string $site_code ) : static Получение настроек для компонента по коду сайта.
fetchByComponentUser ( Component $component, $user ) : static Получение настроек для компонента по коду сайта.
fetchByComponentUserId ( Component $component, integer $user_id ) : static Получение настроек для компонента, и пользователя.
getLang ( ) : ActiveQuery
getSite ( ) : ActiveQuery
getUser ( ) : ActiveQuery
rules ( ) : array
setSettingValue ( $settingAttribute, $settingValue )
tableName ( )

Method Details

attributeLabels() public method

public attributeLabels ( ) : array
return array

baseQuery() public static method

public static baseQuery ( Component $component ) : ActiveQuery
$component skeeks\cms\base\Component
return yii\db\ActiveQuery

baseQuerySites() public static method

public static baseQuerySites ( Component $component ) : ActiveQuery
$component skeeks\cms\base\Component
return yii\db\ActiveQuery

baseQueryUsers() public static method

public static baseQueryUsers ( Component $component ) : ActiveQuery
$component skeeks\cms\base\Component
return yii\db\ActiveQuery

behaviors() public method

public behaviors ( ) : array
return array

createByComponentDefault() public static method

public static createByComponentDefault ( Component $component ) : static
$component skeeks\cms\base\Component
return static

createByComponentSiteCode() public static method

public static createByComponentSiteCode ( Component $component, string $site_code ) : static
$component skeeks\cms\base\Component
$site_code string
return static

createByComponentUserId() public static method

public static createByComponentUserId ( Component $component, integer $user_id ) : static
$component skeeks\cms\base\Component
$user_id integer
return static

fetchByComponentDefault() public static method

Получение настроек для компонента
public static fetchByComponentDefault ( Component $component ) : static
$component skeeks\cms\base\Component
return static

fetchByComponentSite() public static method

Получение настроек для компонента по коду сайта.
public static fetchByComponentSite ( Component $component, CmsSite $site ) : static
$component skeeks\cms\base\Component компонент с настройками
$site CmsSite код сайта
return static

fetchByComponentSiteCode() public static method

Получение настроек для компонента по коду сайта.
public static fetchByComponentSiteCode ( Component $component, string $site_code ) : static
$component skeeks\cms\base\Component компонент с настройками
$site_code string код сайта
return static

fetchByComponentUser() public static method

Получение настроек для компонента по коду сайта.
public static fetchByComponentUser ( Component $component, $user ) : static
$component skeeks\cms\base\Component компонент с настройками
return static

fetchByComponentUserId() public static method

Получение настроек для компонента, и пользователя.
public static fetchByComponentUserId ( Component $component, integer $user_id ) : static
$component skeeks\cms\base\Component компонент с настройками
$user_id integer id пользователя
return static

getLang() public method

public getLang ( ) : ActiveQuery
return yii\db\ActiveQuery

getSite() public method

public getSite ( ) : ActiveQuery
return yii\db\ActiveQuery

getUser() public method

public getUser ( ) : ActiveQuery
return yii\db\ActiveQuery

rules() public method

public rules ( ) : array
return array

setSettingValue() public method

public setSettingValue ( $settingAttribute, $settingValue )
$settingAttribute

tableName() public static method

public static tableName ( )