PHP 트레잇 skeeks\cms\traits\HasComponentDbSettingsTrait

파일 보기 프로젝트 열기: skeeks-cms/cms

공개 프로퍼티들

프로퍼티 타입 설명
$autoSettingsIdPrefix the prefix to the automatically generated widget IDs.
$counterSettings a counter used to generate [[id]] for widgets.
$namespace

공개 메소드들

메소드 설명
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.

메소드 상세

fetchDefaultSettings() 공개 메소드

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

fetchDefaultSettingsBySiteCode() 공개 메소드

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

fetchDefaultSettingsByUserId() 공개 메소드

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

getCacheKey() 공개 메소드

public getCacheKey ( )

getCallableData() 공개 메소드

public getCallableData ( ) : array
리턴 array

getCallableEditUrl() 공개 메소드

public getCallableEditUrl ( ) : UrlHelper
리턴 skeeks\cms\helpers\UrlHelper

getCallableId() 공개 메소드

public getCallableId ( ) : string
리턴 string

getEditUrl() 공개 메소드

public getEditUrl ( ) : UrlHelper
리턴 skeeks\cms\helpers\UrlHelper

getSettings() 공개 메소드

public getSettings ( ) : array
리턴 array

getSettingsId() 공개 메소드

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
리턴 string ID of the widget.

initSettings() 공개 메소드

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

invalidateCache() 공개 메소드

public invalidateCache ( )

loadDefaultSettings() 공개 메소드

public loadDefaultSettings ( )

loadSettingsBySite() 공개 메소드

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

loadSettingsByUser() 공개 메소드

public loadSettingsByUser ( $user )

saveDefaultSettings() 공개 메소드

public saveDefaultSettings ( ) : boolean
리턴 boolean

saveDefaultSettingsBySiteCode() 공개 메소드

public saveDefaultSettingsBySiteCode ( $site_code ) : boolean
리턴 boolean

saveDefaultSettingsByUserId() 공개 메소드

public saveDefaultSettingsByUserId ( $user_id ) : boolean
리턴 boolean

setSettingsId() 공개 메소드

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

프로퍼티 상세

$autoSettingsIdPrefix 공개적으로 정적으로 프로퍼티

the prefix to the automatically generated widget IDs.
또한 보기: getId()
public static $autoSettingsIdPrefix

$counterSettings 공개적으로 정적으로 프로퍼티

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

$namespace 공개적으로 프로퍼티

public $namespace