MetaFox

TypeRepositoryInterface
in

Interface Type.

Tags
mixin

BaseRepository

Table of Contents

Methods

deleteType()  : int
getAllNotificationType()  : array<string|int, mixed>
getNotificationSettingsByChannel()  : array<int, mixed>
updateNotificationSettingsByChannel()  : bool
updateType()  : Type
viewTypes()  : Collection

Methods

deleteType()

public deleteType(User $context, int $id) : int
Parameters
$context : User
$id : int
Tags
throws
Throwable
throws
AuthorizationException
Return values
int

getAllNotificationType()

public getAllNotificationType() : array<string|int, mixed>
Return values
array<string|int, mixed>

getNotificationSettingsByChannel()

public getNotificationSettingsByChannel(User $context, string $channel) : array<int, mixed>
Parameters
$context : User
$channel : string
Return values
array<int, mixed>

updateNotificationSettingsByChannel()

public updateNotificationSettingsByChannel(User $context, array<string|int, mixed> $attributes) : bool
Parameters
$context : User
$attributes : array<string|int, mixed>
Return values
bool

updateType()

public updateType(User $context, int $id, array<string, mixed> $attributes) : Type
Parameters
$context : User
$id : int
$attributes : array<string, mixed>
Tags
throws
Throwable
throws
AuthorizationException
Return values
Type

viewTypes()

public viewTypes(array<string, mixed> $attributes) : Collection
Parameters
$attributes : array<string, mixed>
Return values
Collection

        
On this page

Search results