TypeManager
in
Table of Contents
Methods
- dataItemTypeMap() : array<string|int, mixed>
- getTypePhrase() : string|null
- handleDeletedModuleId() : void
- handleDeletedTypeByName() : void
- hasSetting() : bool
- isActive() : bool
- makeModule() : NotificationModule|null
- makeType() : void
- Create or update an notification type.
- refresh() : void
- transformDataItem() : array<string|int, mixed>
Methods
dataItemTypeMap()
public
dataItemTypeMap() : array<string|int, mixed>
Return values
array<string|int, mixed>getTypePhrase()
public
getTypePhrase(string $type) : string|null
Parameters
- $type : string
Return values
string|nullhandleDeletedModuleId()
public
handleDeletedModuleId(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
handleDeletedTypeByName()
public
handleDeletedTypeByName(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
hasSetting()
public
hasSetting(string $type, string $feature) : bool
Parameters
- $type : string
- $feature : string
Return values
boolisActive()
public
isActive(string $type) : bool
Parameters
- $type : string
Return values
boolmakeModule()
public
makeModule(string $module, string $channel) : NotificationModule|null
Parameters
- $module : string
- $channel : string
Return values
NotificationModule|nullmakeType()
Create or update an notification type.
public
makeType(array<string, mixed> $data) : void
Note: this method won't purge cache. Please purge cache manually.
Parameters
- $data : array<string, mixed>
refresh()
public
refresh() : void
transformDataItem()
public
transformDataItem(string|null $itemType, int|null $itemId) : array<string|int, mixed>
Parameters
- $itemType : string|null
- $itemId : int|null