MetaFox

TypeManager
in package
implements TypeManager

Class TypeManager.

Table of Contents

Interfaces

TypeManager

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

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|int, mixed> $data) : void

Note: this method won't purge cache. Please purge cache manually.

Parameters
$data : array<string|int, 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>

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

        
On this page

Search results