PHP Класс AcMailer\Controller\Plugin\SendMailPlugin

Автор: Alejandro Celaya Alastrué
Наследование: extends Zend\Mvc\Controller\Plugin\AbstractPlugin, implements AcMailer\Service\MailServiceAwareInterface
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$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