PHP Класс Owl\Services\MailNotifyService

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$mailNotify Owl\Repositories\UserMailNotificationRepositoryInterface

Открытые методы

Метод Описание
__construct ( Owl\Repositories\UserMailNotificationRepositoryInterface $userMailNotification )
getSettings ( integer $userId ) : stdclass Get all mail notification settings
updateSetting ( integer $userId, string $type, string $flag ) : boolean Update mail setting

Защищенные методы

Метод Описание
getDefaultColomuns ( integer $userId ) : array Get default setting of user's mail notification
getFlagColomunName ( string $type ) : string Get target column name by specified string

Описание методов

__construct() публичный метод

public __construct ( Owl\Repositories\UserMailNotificationRepositoryInterface $userMailNotification )
$userMailNotification Owl\Repositories\UserMailNotificationRepositoryInterface

getDefaultColomuns() защищенный метод

Get default setting of user's mail notification
protected getDefaultColomuns ( integer $userId ) : array
$userId integer
Результат array

getFlagColomunName() защищенный метод

Get target column name by specified string
protected getFlagColomunName ( string $type ) : string
$type string
Результат string

getSettings() публичный метод

Get all mail notification settings
public getSettings ( integer $userId ) : stdclass
$userId integer
Результат stdclass

updateSetting() публичный метод

Update mail setting
public updateSetting ( integer $userId, string $type, string $flag ) : boolean
$userId integer
$type string
$flag string
Результат boolean

Описание свойств

$mailNotify защищенное свойство

protected UserMailNotificationRepositoryInterface,Owl\Repositories $mailNotify
Результат Owl\Repositories\UserMailNotificationRepositoryInterface