PHP Class Pimcore\Model\Tool\Email\Log

Inheritance: extends Pimcore\Model\AbstractModel
Afficher le fichier Open project: pimcore/pimcore Class Usage Examples

Méthodes publiques

Свойство Type Description
$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 ",")

Méthodes publiques

Méthode Description
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 )

Méthodes protégées

Méthode Description
buildArray ( $data ) Helper to get the recipients as array
update ( ) Updates and save the email log entry to the db and the file-system

Method Details

buildArray() protected méthode

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

delete() public méthode

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

getBcc() public méthode

Returns the blind carbon copy recipients
public getBcc ( ) : string
Résultat string

getBccAsArray() public méthode

Returns the blind carbon copy recipients as array
public getBccAsArray ( ) : array
Résultat array

getBodyHtml() public méthode

returns the html content of the email
public getBodyHtml ( ) : string | null
Résultat string | null | null

getBodyText() public méthode

Returns the text version of the email
public getBodyText ( ) : string
Résultat string

getById() public static méthode

Returns the EmailLog entry by the given id
public static getById ( integer $id ) : EmailLog | null
$id integer
Résultat EmailLog | null

getCc() public méthode

Returns the carbon copy recipients
public getCc ( ) : string
Résultat string

getCcAsArray() public méthode

Returns the carbon copy recipients as array
public getCcAsArray ( ) : array
Résultat array

getCreationDate() public méthode

Returns the creation date as unix timestamp
public getCreationDate ( ) : integer
Résultat integer

getDocumentId() public méthode

Returns the email document id
public getDocumentId ( ) : integer | null
Résultat integer | null

getEmailLogExistsHtml() public méthode

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

getEmailLogExistsText() public méthode

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

getFrom() public méthode

Returns the "from" email address
public getFrom ( ) : string
Résultat string

getHtmlLog() public méthode

Returns the content of the html log file
public getHtmlLog ( ) : string | false
Résultat string | false | false

getId() public méthode

Returns the email log id
public getId ( ) : integer
Résultat integer

getModificationDate() public méthode

Returns the modification date
public getModificationDate ( ) : integer
Résultat integer - Timestamp

getParams() public méthode

Returns the dynamic parameter
public getParams ( ) : string
Résultat string

getRequestUri() public méthode

Returns the request uri
public getRequestUri ( ) : string
Résultat string

getSentDate() public méthode

Returns the sent date and time as unix timestamp
public getSentDate ( ) : integer
Résultat integer

getSubject() public méthode

Returns the subject
public getSubject ( ) : string
Résultat string

getTextLog() public méthode

Returns the content of the text log file
public getTextLog ( ) : string | false
Résultat string | false | false

getTo() public méthode

Returns the "to" recipients
public getTo ( ) : string
Résultat string

getToAsArray() public méthode

Returns the "to" recipients as array
public getToAsArray ( ) : array
Résultat array

save() public méthode

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

setBcc() public méthode

public setBcc ( $bcc )
$bcc

setBodyHtml() public méthode

public setBodyHtml ( $html )
$html

setBodyText() public méthode

public setBodyText ( $text )
$text

setCc() public méthode

public setCc ( $cc )
$cc

setCreationDate() public méthode

Sets the creation date (unix timestamp)
public setCreationDate ( integer $creationDate ) : void
$creationDate integer
Résultat void

setDocumentId() public méthode

public setDocumentId ( $id )
$id

setEmailLogExistsHtml() public méthode

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

setEmailLogExistsText() public méthode

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

setFrom() public méthode

public setFrom ( $from )
$from

setId() public méthode

public setId ( $id )
$id

setModificationDate() public méthode

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

setParams() public méthode

public setParams ( $params )
$params

setRequestUri() public méthode

public setRequestUri ( $requestUri )
$requestUri

setSentDate() public méthode

Sets the sent date and time
public setSentDate ( integer $sentDate ) : void
$sentDate integer - Timestamp
Résultat void

setSubject() public méthode

public setSubject ( $subject )
$subject

setTo() public méthode

public setTo ( $to )
$to

update() protected méthode

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

Property Details

$bcc public_oe property

The blind carbon copy recipients (multiple recipients are separated by a ",")
public string $bcc
Résultat string

$bodyHtml public_oe property

Contains the rendered html content of the email
public string $bodyHtml
Résultat string

$bodyText public_oe property

Contains the rendered text content of the email
public string $bodyText
Résultat string

$cc public_oe property

The carbon copy recipients (multiple recipients are separated by a ",")
public string $cc
Résultat string

$documentId public_oe property

Id of the email document or null if no document was given
public int|null $documentId
Résultat integer | null

$emailLogExistsHtml public_oe property

Contains 1 if a html logfile exists and 0 if no html logfile exists
public int $emailLogExistsHtml
Résultat integer

$emailLogExistsText public_oe property

Contains 1 if a text logfile exists and 0 if no text logfile exists
public int $emailLogExistsText
Résultat integer

$from public_oe property

The "from" email address
public string $from
Résultat string

$id public_oe property

EmailLog Id
public int $id
Résultat integer

$modificationDate public_oe property

Modification date as timestamp
public int $modificationDate
Résultat integer

$params public_oe property

Parameters passed for replacement
public array $params
Résultat array

$requestUri public_oe property

The request URI from were the email was sent
public string $requestUri
Résultat string

$sentDate public_oe property

Contains the timestamp when the email was sent
public int $sentDate
Résultat integer

$subject public_oe property

Contains the rendered subject of the email
public string $subject
Résultat string

$to public_oe property

The "to" recipients (multiple recipients are separated by a ",")
public string $to
Résultat string