PHP Class Owl\Services\MailNotifyService

Afficher le fichier Open project: owl/owl Class Usage Examples

Protected Properties

Свойство Type Description
$mailNotify Owl\Repositories\UserMailNotificationRepositoryInterface

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
getDefaultColomuns ( integer $userId ) : array Get default setting of user's mail notification
getFlagColomunName ( string $type ) : string Get target column name by specified string

Method Details

__construct() public méthode

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

getDefaultColomuns() protected méthode

Get default setting of user's mail notification
protected getDefaultColomuns ( integer $userId ) : array
$userId integer
Résultat array

getFlagColomunName() protected méthode

Get target column name by specified string
protected getFlagColomunName ( string $type ) : string
$type string
Résultat string

getSettings() public méthode

Get all mail notification settings
public getSettings ( integer $userId ) : stdclass
$userId integer
Résultat stdclass

updateSetting() public méthode

Update mail setting
public updateSetting ( integer $userId, string $type, string $flag ) : boolean
$userId integer
$type string
$flag string
Résultat boolean

Property Details

$mailNotify protected_oe property

protected UserMailNotificationRepositoryInterface,Owl\Repositories $mailNotify
Résultat Owl\Repositories\UserMailNotificationRepositoryInterface