PHP Класс Newscoop\Services\EmailService

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$container Symfony\Component\DependencyInjection\Container

Открытые методы

Метод Описание
__construct ( Symfony\Component\DependencyInjection\Container $container )
send ( string $placeholder, string $message, string $to, string | null $from = null, string | null $attachmentDir = null ) : void Send email
sendCommentNotification ( Comment $comment, Article $article, array $authors, User $user = null ) : void Send comment notification
sendConfirmationToken ( User $user ) : void | Exception Send to user email confirmation token
sendPasswordRestoreToken ( User $user ) : void | Exception Send password restore token
sendUserEmail ( string $from, string $to, string $subject, string $message ) : void Send user message from other user

Приватные методы

Метод Описание
getModeratorEmailIfModerationEnabled ( Publication $publication, $user = null )

Описание методов

__construct() публичный метод

public __construct ( Symfony\Component\DependencyInjection\Container $container )
$container Symfony\Component\DependencyInjection\Container

send() публичный метод

Send email
public send ( string $placeholder, string $message, string $to, string | null $from = null, string | null $attachmentDir = null ) : void
$placeholder string
$message string
$to string
$from string | null
$attachmentDir string | null
Результат void

sendCommentNotification() публичный метод

Send comment notification
public sendCommentNotification ( Comment $comment, Article $article, array $authors, User $user = null ) : void
$comment Newscoop\Entity\Comment
$article Newscoop\Entity\Article
$authors array
$user Newscoop\Entity\User
Результат void

sendConfirmationToken() публичный метод

Send to user email confirmation token
public sendConfirmationToken ( User $user ) : void | Exception
$user Newscoop\Entity\User
Результат void | Exception

sendPasswordRestoreToken() публичный метод

Send password restore token
public sendPasswordRestoreToken ( User $user ) : void | Exception
$user Newscoop\Entity\User
Результат void | Exception

sendUserEmail() публичный метод

Send user message from other user
public sendUserEmail ( string $from, string $to, string $subject, string $message ) : void
$from string
$to string
$subject string
$message string
Результат void

Описание свойств

$container защищенное свойство

protected Container,Symfony\Component\DependencyInjection $container
Результат Symfony\Component\DependencyInjection\Container