PHP Класс Pimcore\Model\Tool\Email\Log

Наследование: extends Pimcore\Model\AbstractModel
Показать файл Открыть проект Примеры использования класса

Открытые свойства

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