PHP Class Ojs\CoreBundle\Service\OjsMailer

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

Méthodes publiques

Свойство Type Description
$locale string
$preventMailMerge boolean
$translator Symfony\Component\Translation\TranslatorInterface

Méthodes publiques

Méthode 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 méthode

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 méthode

public currentUser ( ) : User
Résultat Ojs\UserBundle\Entity\User

getAdminUsers() public méthode

public getAdminUsers ( ) : Doctrine\Common\Collections\Collection
Résultat Doctrine\Common\Collections\Collection | User[]

getEventByName() public méthode

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

getJournalRelatedUsers() public méthode

public getJournalRelatedUsers ( ) : mixed
Résultat mixed

send() public méthode

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

sendToUser() public méthode

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

transformTemplate() public méthode

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

Property Details

$locale public_oe property

public string $locale
Résultat string

$preventMailMerge public_oe property

public bool $preventMailMerge
Résultat boolean

$translator public_oe property

public TranslatorInterface,Symfony\Component\Translation $translator
Résultat Symfony\Component\Translation\TranslatorInterface