PHP 클래스 Owl\Services\MailNotifyService

파일 보기 프로젝트 열기: owl/owl 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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