Property | Type | Description | |
---|---|---|---|
$autoSettingsIdPrefix | the prefix to the automatically generated widget IDs. | ||
$counterSettings | a counter used to generate [[id]] for widgets. | ||
$namespace |
Method | Description | |
---|---|---|
fetchDefaultSettings ( ) : array | Настройки по умолчанию | |
fetchDefaultSettingsBySiteCode ( (string) $site_code ) : array | Настройки для сайта | |
fetchDefaultSettingsByUserId ( $user_id ) : array | Настройки для пользователя | |
getCacheKey ( ) | ||
getCallableData ( ) : array | ||
getCallableEditUrl ( ) : |
||
getCallableId ( ) : string | ||
getEditUrl ( ) : |
||
getSettings ( ) : array | ||
getSettingsId ( boolean $autoGenerate = true ) : string | Returns the ID of the widget. | |
initSettings ( ) | Загрузка настроек по умолчанию | |
invalidateCache ( ) | ||
loadDefaultSettings ( ) | ||
loadSettingsBySite ( |
||
loadSettingsByUser ( $user ) | ||
saveDefaultSettings ( ) : boolean | ||
saveDefaultSettingsBySiteCode ( $site_code ) : boolean | ||
saveDefaultSettingsByUserId ( $user_id ) : boolean | ||
setSettingsId ( string $value ) | Sets the ID of the widget. |
public fetchDefaultSettings ( ) : array | ||
return | array |
public fetchDefaultSettingsBySiteCode ( (string) $site_code ) : array | ||
$site_code | (string) | |
return | array |
public fetchDefaultSettingsByUserId ( $user_id ) : array | ||
return | array |
public getCallableEditUrl ( ) : |
||
return |
public getSettingsId ( boolean $autoGenerate = true ) : string | ||
$autoGenerate | boolean | whether to generate an ID if it is not set previously |
return | string | ID of the widget. |
public loadSettingsBySite ( |
||
$site |
public saveDefaultSettingsBySiteCode ( $site_code ) : boolean | ||
return | boolean |
public saveDefaultSettingsByUserId ( $user_id ) : boolean | ||
return | boolean |
public setSettingsId ( string $value ) | ||
$value | string | id of the widget. |
public static $autoSettingsIdPrefix |
public static $counterSettings |