TypeManager
in package
implements
TypeManager
Class TypeManager.
Table of Contents
Interfaces
Properties
- $types : mixed
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>
- handleMakeData() : void
- makeTypeChannel() : void
Properties
$types
private
mixed
$types
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|int, mixed> $data) : void
Note: this method won't purge cache. Please purge cache manually.
Parameters
- $data : array<string|int, 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
Return values
array<string|int, mixed>handleMakeData()
protected
handleMakeData(array<string|int, mixed> $channels, Type $type, int $ordering) : void
Parameters
- $channels : array<string|int, mixed>
- $type : Type
- $ordering : int
makeTypeChannel()
protected
makeTypeChannel(int $typeId, string $channel, int $ordering) : void
Parameters
- $typeId : int
- $channel : string
- $ordering : int