PHP Class skeeks\cms\models\CmsComponentSettings

Inheritance: extends Core
Afficher le fichier Open project: skeeks-cms/cms Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public attributeLabels ( ) : array
Résultat array

baseQuery() public static méthode

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

baseQuerySites() public static méthode

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

baseQueryUsers() public static méthode

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

behaviors() public méthode

public behaviors ( ) : array
Résultat array

createByComponentDefault() public static méthode

public static createByComponentDefault ( Component $component ) : static
$component skeeks\cms\base\Component
Résultat static

createByComponentSiteCode() public static méthode

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

createByComponentUserId() public static méthode

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

fetchByComponentDefault() public static méthode

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

fetchByComponentSite() public static méthode

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

fetchByComponentSiteCode() public static méthode

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

fetchByComponentUser() public static méthode

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

fetchByComponentUserId() public static méthode

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

getLang() public méthode

public getLang ( ) : ActiveQuery
Résultat yii\db\ActiveQuery

getSite() public méthode

public getSite ( ) : ActiveQuery
Résultat yii\db\ActiveQuery

getUser() public méthode

public getUser ( ) : ActiveQuery
Résultat yii\db\ActiveQuery

rules() public méthode

public rules ( ) : array
Résultat array

setSettingValue() public méthode

public setSettingValue ( $settingAttribute, $settingValue )
$settingAttribute

tableName() public static méthode

public static tableName ( )