Notify extends BaseSettings
Table of Contents
Methods
- __construct() : mixed
- fillDataBase() : $this
- getRestEntityName() : string
- Returns the name of the entity that will be used in the rest response
- getSettings() : Result<string|int, array<string|int, mixed>>
- isLoad() : bool
- load() : BaseSettings
- toRestFormat() : array<string|int, mixed>|null
- Returns an array in JSON like format to return the entity as a rest response.
- updateSetting() : void
- updateSimpleSettings() : Notify
Methods
__construct()
public
__construct(int|null $groupId) : mixed
Parameters
- $groupId : int|null
fillDataBase()
public
fillDataBase([bool $isSimpleSchema = false ][, array{} $simpleSchema = [] ]) : $this
Parameters
- $isSimpleSchema : bool = false
- $simpleSchema : array{} = []
Return values
$thisgetRestEntityName()
Returns the name of the entity that will be used in the rest response
public
static getRestEntityName() : string
Return values
stringgetSettings()
public
getSettings() : Result<string|int, array<string|int, mixed>>
Return values
Result<string|int, array<string|int, mixed>>isLoad()
public
isLoad() : bool
Return values
boolload()
public
load(mixed $source) : BaseSettings
Parameters
- $source : mixed
Return values
BaseSettingstoRestFormat()
Returns an array in JSON like format to return the entity as a rest response.
public
toRestFormat([array<string|int, mixed> $option = [] ]) : array<string|int, mixed>|null
Parameters
- $option : array<string|int, mixed> = []
Return values
array<string|int, mixed>|nullupdateSetting()
public
updateSetting(array{moduleId: string, name: string, type: string, value: bool} $settingConfiguration) : void
Parameters
- $settingConfiguration : array{moduleId: string, name: string, type: string, value: bool}
updateSimpleSettings()
public
updateSimpleSettings(array<string|int, mixed> $simpleSchema) : Notify
Parameters
- $simpleSchema : array<string|int, mixed>