PHP Trait skeeks\cms\traits\HasComponentDbSettingsTrait

Afficher le fichier Open project: skeeks-cms/cms

Méthodes publiques

Свойство Type Description
$autoSettingsIdPrefix the prefix to the automatically generated widget IDs.
$counterSettings a counter used to generate [[id]] for widgets.
$namespace

Méthodes publiques

Méthode Description
fetchDefaultSettings ( ) : array Настройки по умолчанию
fetchDefaultSettingsBySiteCode ( (string) $site_code ) : array Настройки для сайта
fetchDefaultSettingsByUserId ( $user_id ) : array Настройки для пользователя
getCacheKey ( )
getCallableData ( ) : array
getCallableEditUrl ( ) : UrlHelper
getCallableId ( ) : string
getEditUrl ( ) : UrlHelper
getSettings ( ) : array
getSettingsId ( boolean $autoGenerate = true ) : string Returns the ID of the widget.
initSettings ( ) Загрузка настроек по умолчанию
invalidateCache ( )
loadDefaultSettings ( )
loadSettingsBySite ( CmsSite $site )
loadSettingsByUser ( $user )
saveDefaultSettings ( ) : boolean
saveDefaultSettingsBySiteCode ( $site_code ) : boolean
saveDefaultSettingsByUserId ( $user_id ) : boolean
setSettingsId ( string $value ) Sets the ID of the widget.

Method Details

fetchDefaultSettings() public méthode

Настройки по умолчанию
public fetchDefaultSettings ( ) : array
Résultat array

fetchDefaultSettingsBySiteCode() public méthode

Настройки для сайта
public fetchDefaultSettingsBySiteCode ( (string) $site_code ) : array
$site_code (string)
Résultat array

fetchDefaultSettingsByUserId() public méthode

Настройки для пользователя
public fetchDefaultSettingsByUserId ( $user_id ) : array
Résultat array

getCacheKey() public méthode

public getCacheKey ( )

getCallableData() public méthode

public getCallableData ( ) : array
Résultat array

getCallableEditUrl() public méthode

public getCallableEditUrl ( ) : UrlHelper
Résultat skeeks\cms\helpers\UrlHelper

getCallableId() public méthode

public getCallableId ( ) : string
Résultat string

getEditUrl() public méthode

public getEditUrl ( ) : UrlHelper
Résultat skeeks\cms\helpers\UrlHelper

getSettings() public méthode

public getSettings ( ) : array
Résultat array

getSettingsId() public méthode

Returns the ID of the widget.
public getSettingsId ( boolean $autoGenerate = true ) : string
$autoGenerate boolean whether to generate an ID if it is not set previously
Résultat string ID of the widget.

initSettings() public méthode

Загрузка настроек по умолчанию
public initSettings ( )

invalidateCache() public méthode

public invalidateCache ( )

loadDefaultSettings() public méthode

public loadDefaultSettings ( )

loadSettingsBySite() public méthode

public loadSettingsBySite ( CmsSite $site )
$site skeeks\cms\models\CmsSite

loadSettingsByUser() public méthode

public loadSettingsByUser ( $user )

saveDefaultSettings() public méthode

public saveDefaultSettings ( ) : boolean
Résultat boolean

saveDefaultSettingsBySiteCode() public méthode

public saveDefaultSettingsBySiteCode ( $site_code ) : boolean
Résultat boolean

saveDefaultSettingsByUserId() public méthode

public saveDefaultSettingsByUserId ( $user_id ) : boolean
Résultat boolean

setSettingsId() public méthode

Sets the ID of the widget.
public setSettingsId ( string $value )
$value string id of the widget.

Property Details

$autoSettingsIdPrefix public_oe static_oe property

the prefix to the automatically generated widget IDs.
See also: getId()
public static $autoSettingsIdPrefix

$counterSettings public_oe static_oe property

a counter used to generate [[id]] for widgets.
public static $counterSettings

$namespace public_oe property

public $namespace