PHP 클래스 OrderEmailNotifier, silvershop-core

파일 보기 프로젝트 열기: burnbright/silverstripe-shop 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$debugMode boolean
$order Order

공개 메소드들

메소드 설명
__construct ( Order $order ) Assign the order to a local variable
config ( )
create ( Order $order ) : OrderEmailNotifier
sendAdminNotification ( ) Notify store owner about new order.
sendCancelNotification ( ) Sends an email to the admin that an order has been cancelled
sendConfirmation ( ) Send customer a confirmation that the order has been received
sendEmail ( $template, $subject, $copyToAdmin = true ) : boolean Send a mail of the order to the client (and another to the admin).
sendReceipt ( ) Send customer an order receipt email.
sendStatusChange ( string $title, string $note = null ) Send an email to the customer containing the latest note of {@link OrderStatusLog} and the current status.
setDebugMode ( $bool )

보호된 메소드들

메소드 설명
buildEmail ( string $template, string $subject ) : Email

메소드 상세

__construct() 공개 메소드

Assign the order to a local variable
public __construct ( Order $order )
$order Order

buildEmail() 보호된 메소드

protected buildEmail ( string $template, string $subject ) : Email
$template string
$subject string
리턴 Email

config() 공개 정적인 메소드

public static config ( )

create() 공개 정적인 메소드

public static create ( Order $order ) : OrderEmailNotifier
$order Order
리턴 OrderEmailNotifier

sendAdminNotification() 공개 메소드

Notify store owner about new order.

sendCancelNotification() 공개 메소드

Sends an email to the admin that an order has been cancelled

sendConfirmation() 공개 메소드

Send customer a confirmation that the order has been received
public sendConfirmation ( )

sendEmail() 공개 메소드

Send a mail of the order to the client (and another to the admin).
public sendEmail ( $template, $subject, $copyToAdmin = true ) : boolean
$template - the class name of the email you wish to send
$subject - subject of the email
$copyToAdmin - true by default, whether it should send a copy to the admin
리턴 boolean

sendReceipt() 공개 메소드

Precondition: The order payment has been successful
public sendReceipt ( )

sendStatusChange() 공개 메소드

Send an email to the customer containing the latest note of {@link OrderStatusLog} and the current status.
public sendStatusChange ( string $title, string $note = null )
$title string Subject for email
$note string Optional note-content (instead of using the OrderStatusLog)

setDebugMode() 공개 메소드

public setDebugMode ( $bool )
$bool

프로퍼티 상세

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

protected bool $debugMode
리턴 boolean

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

protected Order $order
리턴 Order