MetaFox

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|null

handleDeletedModuleId()

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
bool

isActive()

public isActive(string $type) : bool
Parameters
$type : string
Return values
bool

makeType()

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>

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>

        
On this page

Search results