PHP 클래스 Newscoop\Services\EmailService

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

보호된 프로퍼티들

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