PHP Class Ojs\CoreBundle\Service\OjsMailer

ファイルを表示 Open project: ojs/ojs Class Usage Examples

Public Properties

Property Type Description
$locale string
$preventMailMerge boolean
$translator Symfony\Component\Translation\TranslatorInterface

Public Methods

Method Description
__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 = [] )

Method Details

__construct() public method

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 method

public currentUser ( ) : User
return Ojs\UserBundle\Entity\User

getAdminUsers() public method

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

getEventByName() public method

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

getJournalRelatedUsers() public method

public getJournalRelatedUsers ( ) : mixed
return mixed

send() public method

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

sendToUser() public method

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

transformTemplate() public method

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

Property Details

$locale public_oe property

public string $locale
return string

$preventMailMerge public_oe property

public bool $preventMailMerge
return boolean

$translator public_oe property

public TranslatorInterface,Symfony\Component\Translation $translator
return Symfony\Component\Translation\TranslatorInterface