Property | Type | Description | |
---|---|---|---|
$mailNotify | Owl\Repositories\UserMailNotificationRepositoryInterface |
Method | 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 |
Method | Description | |
---|---|---|
getDefaultColomuns ( integer $userId ) : array | Get default setting of user's mail notification | |
getFlagColomunName ( string $type ) : string | Get target column name by specified string |
public __construct ( Owl\Repositories\UserMailNotificationRepositoryInterface $userMailNotification ) | ||
$userMailNotification | Owl\Repositories\UserMailNotificationRepositoryInterface |
protected getDefaultColomuns ( integer $userId ) : array | ||
$userId | integer | |
return | array |
protected getFlagColomunName ( string $type ) : string | ||
$type | string | |
return | string |
public getSettings ( integer $userId ) : stdclass | ||
$userId | integer | |
return | stdclass |