PHP 클래스 Ojs\CoreBundle\Service\OjsMailer

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

공개 프로퍼티들

프로퍼티 타입 설명
$locale string
$preventMailMerge boolean
$translator Symfony\Component\Translation\TranslatorInterface

공개 메소드들

메소드 설명
__construct ( Swift_Mailer $mailer, string $mailSender, string $mailSenderName, Symfony\Bridge\Doctrine\RegistryInterface $registry, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, string $locale, Symfony\Component\Translation\TranslatorInterface $translator, boolean $preventMailMerge = false ) OjsMailer constructor.
currentUser ( ) : User
getAdminUsers ( ) : Doctrine\Common\Collections\Collection
getEventByName ( $eventName, null $lang = null, Journal $journal = null ) : MailTemplate
getJournalRelatedUsers ( ) : mixed
send ( string $subject, string $body, string $toMail, string $toName )
sendToUser ( User $user, string $subject, string $body )
transformTemplate ( $template, $transformParams = [] )

메소드 상세

__construct() 공개 메소드

OjsMailer constructor.
public __construct ( Swift_Mailer $mailer, string $mailSender, string $mailSenderName, Symfony\Bridge\Doctrine\RegistryInterface $registry, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, string $locale, Symfony\Component\Translation\TranslatorInterface $translator, boolean $preventMailMerge = false )
$mailer Swift_Mailer
$mailSender string
$mailSenderName string
$registry Symfony\Bridge\Doctrine\RegistryInterface
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$locale string
$translator Symfony\Component\Translation\TranslatorInterface
$preventMailMerge boolean

currentUser() 공개 메소드

public currentUser ( ) : User
리턴 Ojs\UserBundle\Entity\User

getAdminUsers() 공개 메소드

public getAdminUsers ( ) : Doctrine\Common\Collections\Collection
리턴 Doctrine\Common\Collections\Collection | User[]

getEventByName() 공개 메소드

public getEventByName ( $eventName, null $lang = null, Journal $journal = null ) : MailTemplate
$eventName
$lang null
$journal Ojs\JournalBundle\Entity\Journal
리턴 Ojs\JournalBundle\Entity\MailTemplate

getJournalRelatedUsers() 공개 메소드

public getJournalRelatedUsers ( ) : mixed
리턴 mixed

send() 공개 메소드

public send ( string $subject, string $body, string $toMail, string $toName )
$subject string
$body string
$toMail string
$toName string

sendToUser() 공개 메소드

public sendToUser ( User $user, string $subject, string $body )
$user Ojs\UserBundle\Entity\User
$subject string
$body string

transformTemplate() 공개 메소드

public transformTemplate ( $template, $transformParams = [] )

프로퍼티 상세

$locale 공개적으로 프로퍼티

public string $locale
리턴 string

$preventMailMerge 공개적으로 프로퍼티

public bool $preventMailMerge
리턴 boolean

$translator 공개적으로 프로퍼티

public TranslatorInterface,Symfony\Component\Translation $translator
리턴 Symfony\Component\Translation\TranslatorInterface