PHP Class Pimcore\Helper\Mail

Datei anzeigen Open project: pimcore/pimcore Class Usage Examples

Public Methods

Method Description
embedAndModifyCss ( $string, null $document = null ) : mixed
getDebugInformation ( $type, Mail $mail ) : string
getDebugInformationCssStyle ( ) : string Return the basic css styles for the html debug information
getNormalizedFileInfo ( $path, null $document = null ) : array
logEmail ( Mail $mail ) : Log
normalizeCssContent ( string $content, array $fileInfo ) : string Normalizes the css content (replaces images with the full path including the host)
setAbsolutePaths ( $string, null $document = null, null $hostUrl = null ) : mixed

Protected Methods

Method Description
formatDebugReceivers ( array $receivers ) : string Helper to format the receivers for the debug email and logging

Method Details

embedAndModifyCss() public static method

public static embedAndModifyCss ( $string, null $document = null ) : mixed
$string
$document null
return mixed

formatDebugReceivers() protected static method

Helper to format the receivers for the debug email and logging
protected static formatDebugReceivers ( array $receivers ) : string
$receivers array
return string

getDebugInformation() public static method

public static getDebugInformation ( $type, Mail $mail ) : string
$type
$mail Pimcore\Mail
return string

getDebugInformationCssStyle() public static method

Return the basic css styles for the html debug information
public static getDebugInformationCssStyle ( ) : string
return string

getNormalizedFileInfo() public static method

public static getNormalizedFileInfo ( $path, null $document = null ) : array
$path
$document null
return array

logEmail() public static method

public static logEmail ( Mail $mail ) : Log
$mail Pimcore\Mail
return Pimcore\Model\Tool\Email\Log

normalizeCssContent() public static method

Normalizes the css content (replaces images with the full path including the host)
public static normalizeCssContent ( string $content, array $fileInfo ) : string
$content string
$fileInfo array
return string

setAbsolutePaths() public static method

public static setAbsolutePaths ( $string, null $document = null, null $hostUrl = null ) : mixed
$string
$document null
$hostUrl null
return mixed