PHP 클래스 AcMailer\Controller\Plugin\SendMailPlugin

저자: Alejandro Celaya Alastrué
상속: extends Zend\Mvc\Controller\Plugin\AbstractPlugin, implements AcMailer\Service\MailServiceAwareInterface
파일 보기 프로젝트 열기: acelaya/zf2-acmailer 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$mailService AcMailer\Service\MailServiceInterface

공개 메소드들

메소드 설명
__construct ( AcMailer\Service\MailServiceInterface $mailService )
__invoke ( null | string | Zend\View\Model\ViewModel | array $bodyOrConfig = null, null | string $subject = null, null | array $to = null, null | string | array $from = null, null | array $cc = null, null | array $bcc = null, null | array $attachments = null, null | array $replyTo = null, $encoding = null ) : AcMailer\Service\MailServiceInterface | AcMailer\Result\ResultInterface If no arguments are provided, the mail service is returned.
getMailService ( ) : AcMailer\Service\MailServiceInterface
setMailService ( AcMailer\Service\MailServiceInterface $mailService )

보호된 메소드들

메소드 설명
applyArgsToMailService ( array $args ) Applies the arguments provided while invoking this plugin to the MailService, discarding any previous configuration
applyArrayArgs ( array $args, string $key )
normalizeMailArgs ( array $args ) : array Normalizes the arguments passed when invoking this plugin so that they can be treated in a consistent way

메소드 상세

__construct() 공개 메소드

public __construct ( AcMailer\Service\MailServiceInterface $mailService )
$mailService AcMailer\Service\MailServiceInterface

__invoke() 공개 메소드

If any argument is provided, they will be used to configure the MailService and send an email. The result object will be returned in that case
public __invoke ( null | string | Zend\View\Model\ViewModel | array $bodyOrConfig = null, null | string $subject = null, null | array $to = null, null | string | array $from = null, null | array $cc = null, null | array $bcc = null, null | array $attachments = null, null | array $replyTo = null, $encoding = null ) : AcMailer\Service\MailServiceInterface | AcMailer\Result\ResultInterface
$bodyOrConfig null | string | Zend\View\Model\ViewModel | array
$subject null | string
$to null | array
$from null | string | array
$cc null | array
$bcc null | array
$attachments null | array
$replyTo null | array
리턴 AcMailer\Service\MailServiceInterface | AcMailer\Result\ResultInterface

applyArgsToMailService() 보호된 메소드

Applies the arguments provided while invoking this plugin to the MailService, discarding any previous configuration
protected applyArgsToMailService ( array $args )
$args array

applyArrayArgs() 보호된 메소드

protected applyArrayArgs ( array $args, string $key )
$args array
$key string

getMailService() 공개 메소드

public getMailService ( ) : AcMailer\Service\MailServiceInterface
리턴 AcMailer\Service\MailServiceInterface

normalizeMailArgs() 보호된 메소드

Normalizes the arguments passed when invoking this plugin so that they can be treated in a consistent way
protected normalizeMailArgs ( array $args ) : array
$args array
리턴 array

setMailService() 공개 메소드

public setMailService ( AcMailer\Service\MailServiceInterface $mailService )
$mailService AcMailer\Service\MailServiceInterface

프로퍼티 상세

$mailService 보호되어 있는 프로퍼티

protected MailServiceInterface,AcMailer\Service $mailService
리턴 AcMailer\Service\MailServiceInterface