PHP 클래스 Phalcon\Mailer\Manager

상속: extends Phalcon\Mvc\User\Component
파일 보기 프로젝트 열기: phalcon/incubator

보호된 프로퍼티들

프로퍼티 타입 설명
$config array
$mailer Swift_Mailer
$transport Swift_Transport
$view Phalcon\Mvc\View\Simple

공개 메소드들

메소드 설명
__construct ( array $config ) Create a new MailerManager component using $config for configuring
createMessage ( ) : Message Create a new Message instance.
createMessageFromView ( string $view, array $params = [], null | string $viewsDir = null ) : Message Create a new Message instance.
getSwift ( ) : Swift_Mailer Return a {@link \Swift_Mailer} instance
normalizeEmail ( $email ) : string Normalize IDN domains.

보호된 메소드들

메소드 설명
configure ( array $config ) Configure MailerManager class
getConfig ( null $key = null, null $default = null ) : string | array Get option config or the entire array of config, if the parameter $key is not specified.
getView ( ) : Phalcon\Mvc\View\Simple Return a {@link \Phalcon\Mvc\View\Simple} instance
punycode ( $str ) : string Convert UTF-8 encoded domain name to ASCII
registerSwiftMailer ( ) Register SwiftMailer
registerSwiftTransport ( ) Create a new Driver-mail of SwiftTransport instance.
registerTransportMail ( ) : Swift_MailTransport Create a new MailTransport instance.
registerTransportSendmail ( ) : Swift_SendmailTransport Create a new SendmailTransport instance.
registerTransportSmtp ( ) : Swift_SmtpTransport Create a new SmtpTransport instance.
renderView ( $viewPath, $params, null $viewsDir = null ) : string Renders a view

메소드 상세

__construct() 공개 메소드

Create a new MailerManager component using $config for configuring
public __construct ( array $config )
$config array

configure() 보호된 메소드

Configure MailerManager class
또한 보기: Phalcon\Mailer\Manager::registerSwiftTransport()
또한 보기: Phalcon\Mailer\Manager::registerSwiftMailer()
protected configure ( array $config )
$config array

createMessage() 공개 메소드

Events: - mailer:beforeCreateMessage - mailer:afterCreateMessage
public createMessage ( ) : Message
리턴 Message

createMessageFromView() 공개 메소드

For the body of the message uses the result of render of view Events: - mailer:beforeCreateMessage - mailer:afterCreateMessage
또한 보기: Phalcon\Mailer\Manager::createMessage()
public createMessageFromView ( string $view, array $params = [], null | string $viewsDir = null ) : Message
$view string
$params array optional
$viewsDir null | string optional
리턴 Message

getConfig() 보호된 메소드

Get option config or the entire array of config, if the parameter $key is not specified.
protected getConfig ( null $key = null, null $default = null ) : string | array
$key null
$default null
리턴 string | array

getSwift() 공개 메소드

Return a {@link \Swift_Mailer} instance
public getSwift ( ) : Swift_Mailer
리턴 Swift_Mailer

getView() 보호된 메소드

Return a {@link \Phalcon\Mvc\View\Simple} instance
protected getView ( ) : Phalcon\Mvc\View\Simple
리턴 Phalcon\Mvc\View\Simple

normalizeEmail() 공개 메소드

Normalize IDN domains.
또한 보기: Phalcon\Mailer\Manager::punycode()
public normalizeEmail ( $email ) : string
$email
리턴 string

punycode() 보호된 메소드

Convert UTF-8 encoded domain name to ASCII
protected punycode ( $str ) : string
$str
리턴 string

registerSwiftMailer() 보호된 메소드

Register SwiftMailer
또한 보기: Swift_Mailer
protected registerSwiftMailer ( )

registerSwiftTransport() 보호된 메소드

Supported driver-mail: - smtp - sendmail - mail
protected registerSwiftTransport ( )

registerTransportMail() 보호된 메소드

Create a new MailTransport instance.
또한 보기: Swift_MailTransport
protected registerTransportMail ( ) : Swift_MailTransport
리턴 Swift_MailTransport

registerTransportSendmail() 보호된 메소드

Create a new SendmailTransport instance.
또한 보기: Swift_SendmailTransport
protected registerTransportSendmail ( ) : Swift_SendmailTransport
리턴 Swift_SendmailTransport

registerTransportSmtp() 보호된 메소드

Create a new SmtpTransport instance.
또한 보기: Swift_SmtpTransport
protected registerTransportSmtp ( ) : Swift_SmtpTransport
리턴 Swift_SmtpTransport

renderView() 보호된 메소드

Renders a view
protected renderView ( $viewPath, $params, null $viewsDir = null ) : string
$viewPath
$params
$viewsDir null
리턴 string

프로퍼티 상세

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

protected array $config
리턴 array

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

protected Swift_Mailer $mailer
리턴 Swift_Mailer

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

protected Swift_Transport $transport
리턴 Swift_Transport

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

protected Simple,Phalcon\Mvc\View $view
리턴 Phalcon\Mvc\View\Simple