PHP 클래스 Pimcore\Model\Tool\Email\Log

상속: extends Pimcore\Model\AbstractModel
파일 보기 프로젝트 열기: pimcore/pimcore 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$bcc string The blind carbon copy recipients (multiple recipients are separated by a ",")
$bodyHtml string Contains the rendered html content of the email
$bodyText string Contains the rendered text content of the email
$cc string The carbon copy recipients (multiple recipients are separated by a ",")
$documentId integer | null Id of the email document or null if no document was given
$emailLogExistsHtml integer Contains 1 if a html logfile exists and 0 if no html logfile exists
$emailLogExistsText integer Contains 1 if a text logfile exists and 0 if no text logfile exists
$from string The "from" email address
$id integer EmailLog Id
$modificationDate integer Modification date as timestamp
$params array Parameters passed for replacement
$requestUri string The request URI from were the email was sent
$sentDate integer Contains the timestamp when the email was sent
$subject string Contains the rendered subject of the email
$to string The "to" recipients (multiple recipients are separated by a ",")

공개 메소드들

메소드 설명
delete ( ) Removes the log file entry from the db and removes the log files on the system
getBcc ( ) : string Returns the blind carbon copy recipients
getBccAsArray ( ) : array Returns the blind carbon copy recipients as array
getBodyHtml ( ) : string | null returns the html content of the email
getBodyText ( ) : string Returns the text version of the email
getById ( integer $id ) : EmailLog | null Returns the EmailLog entry by the given id
getCc ( ) : string Returns the carbon copy recipients
getCcAsArray ( ) : array Returns the carbon copy recipients as array
getCreationDate ( ) : integer Returns the creation date as unix timestamp
getDocumentId ( ) : integer | null Returns the email document id
getEmailLogExistsHtml ( ) : integer Returns 1 if a html email log file exists and 0 if no html log file exists
getEmailLogExistsText ( ) : integer Returns 1 if a text email log file exists and 0 if no text log file exists
getFrom ( ) : string Returns the "from" email address
getHtmlLog ( ) : string | false Returns the content of the html log file
getId ( ) : integer Returns the email log id
getModificationDate ( ) : integer Returns the modification date
getParams ( ) : string Returns the dynamic parameter
getRequestUri ( ) : string Returns the request uri
getSentDate ( ) : integer Returns the sent date and time as unix timestamp
getSubject ( ) : string Returns the subject
getTextLog ( ) : string | false Returns the content of the text log file
getTo ( ) : string Returns the "to" recipients
getToAsArray ( ) : array Returns the "to" recipients as array
save ( ) Saves the email log entry (forwards to $this->update())
setBcc ( $bcc )
setBodyHtml ( $html )
setBodyText ( $text )
setCc ( $cc )
setCreationDate ( integer $creationDate ) : void Sets the creation date (unix timestamp)
setDocumentId ( $id )
setEmailLogExistsHtml ( ) Checks if a html log file exits and sets $this->emailLogExistsHtml to 0 or 1
setEmailLogExistsText ( ) Checks if a text log file exits and sets $this->emailLogExistsText to 0 or 1
setFrom ( $from )
setId ( $id )
setModificationDate ( integer $modificationDate ) Sets the modification date
setParams ( $params )
setRequestUri ( $requestUri )
setSentDate ( integer $sentDate ) : void Sets the sent date and time
setSubject ( $subject )
setTo ( $to )

보호된 메소드들

메소드 설명
buildArray ( $data ) Helper to get the recipients as array
update ( ) Updates and save the email log entry to the db and the file-system

메소드 상세

buildArray() 보호된 메소드

Helper to get the recipients as array
protected buildArray ( $data )

delete() 공개 메소드

Removes the log file entry from the db and removes the log files on the system
public delete ( )

getBcc() 공개 메소드

Returns the blind carbon copy recipients
public getBcc ( ) : string
리턴 string

getBccAsArray() 공개 메소드

Returns the blind carbon copy recipients as array
public getBccAsArray ( ) : array
리턴 array

getBodyHtml() 공개 메소드

returns the html content of the email
public getBodyHtml ( ) : string | null
리턴 string | null | null

getBodyText() 공개 메소드

Returns the text version of the email
public getBodyText ( ) : string
리턴 string

getById() 공개 정적인 메소드

Returns the EmailLog entry by the given id
public static getById ( integer $id ) : EmailLog | null
$id integer
리턴 EmailLog | null

getCc() 공개 메소드

Returns the carbon copy recipients
public getCc ( ) : string
리턴 string

getCcAsArray() 공개 메소드

Returns the carbon copy recipients as array
public getCcAsArray ( ) : array
리턴 array

getCreationDate() 공개 메소드

Returns the creation date as unix timestamp
public getCreationDate ( ) : integer
리턴 integer

getDocumentId() 공개 메소드

Returns the email document id
public getDocumentId ( ) : integer | null
리턴 integer | null

getEmailLogExistsHtml() 공개 메소드

Returns 1 if a html email log file exists and 0 if no html log file exists
public getEmailLogExistsHtml ( ) : integer
리턴 integer - 0 or 1

getEmailLogExistsText() 공개 메소드

Returns 1 if a text email log file exists and 0 if no text log file exists
public getEmailLogExistsText ( ) : integer
리턴 integer - 0 or 1

getFrom() 공개 메소드

Returns the "from" email address
public getFrom ( ) : string
리턴 string

getHtmlLog() 공개 메소드

Returns the content of the html log file
public getHtmlLog ( ) : string | false
리턴 string | false | false

getId() 공개 메소드

Returns the email log id
public getId ( ) : integer
리턴 integer

getModificationDate() 공개 메소드

Returns the modification date
public getModificationDate ( ) : integer
리턴 integer - Timestamp

getParams() 공개 메소드

Returns the dynamic parameter
public getParams ( ) : string
리턴 string

getRequestUri() 공개 메소드

Returns the request uri
public getRequestUri ( ) : string
리턴 string

getSentDate() 공개 메소드

Returns the sent date and time as unix timestamp
public getSentDate ( ) : integer
리턴 integer

getSubject() 공개 메소드

Returns the subject
public getSubject ( ) : string
리턴 string

getTextLog() 공개 메소드

Returns the content of the text log file
public getTextLog ( ) : string | false
리턴 string | false | false

getTo() 공개 메소드

Returns the "to" recipients
public getTo ( ) : string
리턴 string

getToAsArray() 공개 메소드

Returns the "to" recipients as array
public getToAsArray ( ) : array
리턴 array

save() 공개 메소드

Saves the email log entry (forwards to $this->update())
public save ( )

setBcc() 공개 메소드

public setBcc ( $bcc )
$bcc

setBodyHtml() 공개 메소드

public setBodyHtml ( $html )
$html

setBodyText() 공개 메소드

public setBodyText ( $text )
$text

setCc() 공개 메소드

public setCc ( $cc )
$cc

setCreationDate() 공개 메소드

Sets the creation date (unix timestamp)
public setCreationDate ( integer $creationDate ) : void
$creationDate integer
리턴 void

setDocumentId() 공개 메소드

public setDocumentId ( $id )
$id

setEmailLogExistsHtml() 공개 메소드

Checks if a html log file exits and sets $this->emailLogExistsHtml to 0 or 1

setEmailLogExistsText() 공개 메소드

Checks if a text log file exits and sets $this->emailLogExistsText to 0 or 1

setFrom() 공개 메소드

public setFrom ( $from )
$from

setId() 공개 메소드

public setId ( $id )
$id

setModificationDate() 공개 메소드

Sets the modification date
public setModificationDate ( integer $modificationDate )
$modificationDate integer

setParams() 공개 메소드

public setParams ( $params )
$params

setRequestUri() 공개 메소드

public setRequestUri ( $requestUri )
$requestUri

setSentDate() 공개 메소드

Sets the sent date and time
public setSentDate ( integer $sentDate ) : void
$sentDate integer - Timestamp
리턴 void

setSubject() 공개 메소드

public setSubject ( $subject )
$subject

setTo() 공개 메소드

public setTo ( $to )
$to

update() 보호된 메소드

Updates and save the email log entry to the db and the file-system
protected update ( )

프로퍼티 상세

$bcc 공개적으로 프로퍼티

The blind carbon copy recipients (multiple recipients are separated by a ",")
public string $bcc
리턴 string

$bodyHtml 공개적으로 프로퍼티

Contains the rendered html content of the email
public string $bodyHtml
리턴 string

$bodyText 공개적으로 프로퍼티

Contains the rendered text content of the email
public string $bodyText
리턴 string

$cc 공개적으로 프로퍼티

The carbon copy recipients (multiple recipients are separated by a ",")
public string $cc
리턴 string

$documentId 공개적으로 프로퍼티

Id of the email document or null if no document was given
public int|null $documentId
리턴 integer | null

$emailLogExistsHtml 공개적으로 프로퍼티

Contains 1 if a html logfile exists and 0 if no html logfile exists
public int $emailLogExistsHtml
리턴 integer

$emailLogExistsText 공개적으로 프로퍼티

Contains 1 if a text logfile exists and 0 if no text logfile exists
public int $emailLogExistsText
리턴 integer

$from 공개적으로 프로퍼티

The "from" email address
public string $from
리턴 string

$id 공개적으로 프로퍼티

EmailLog Id
public int $id
리턴 integer

$modificationDate 공개적으로 프로퍼티

Modification date as timestamp
public int $modificationDate
리턴 integer

$params 공개적으로 프로퍼티

Parameters passed for replacement
public array $params
리턴 array

$requestUri 공개적으로 프로퍼티

The request URI from were the email was sent
public string $requestUri
리턴 string

$sentDate 공개적으로 프로퍼티

Contains the timestamp when the email was sent
public int $sentDate
리턴 integer

$subject 공개적으로 프로퍼티

Contains the rendered subject of the email
public string $subject
리턴 string

$to 공개적으로 프로퍼티

The "to" recipients (multiple recipients are separated by a ",")
public string $to
리턴 string