|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Composes the HTML representation of a mail body, and the plain text alternative that goes with it. More...
Inheritance diagram for ILIAS\Mail\Mime\Presentation\HtmlMailBodyComposer:
Collaboration diagram for ILIAS\Mail\Mime\Presentation\HtmlMailBodyComposer:Public Member Functions | |
| __construct (private readonly MailAssets $assets, private readonly PlainTextMailBodyComposer $plain_text, private readonly UIFactory $ui, private readonly Renderer $renderer, private readonly Refinery $refinery, private readonly DataFactory $data, private readonly string $installation_title, private readonly string $installation_url) | |
| compose (MailBodySource $source) | |
| compose (MailBodySource $source) | |
Private Member Functions | |
| containsHtml (string $email_body) | |
Private Attributes | |
| const string | BLOCK_ELEMENT_PATTERN = '~</?(p|br|div|ul|ol|li|code|pre|h[1-6])\b~i' |
| const string | INLINE_TAGS = '<b><u><i><a>' |
Composes the HTML representation of a mail body, and the plain text alternative that goes with it.
Knows nothing about recipients, transports or where assets are stored.
Definition at line 35 of file HtmlMailBodyComposer.php.
| ILIAS\Mail\Mime\Presentation\HtmlMailBodyComposer::__construct | ( | private readonly MailAssets | $assets, |
| private readonly PlainTextMailBodyComposer | $plain_text, | ||
| private readonly UIFactory | $ui, | ||
| private readonly Renderer | $renderer, | ||
| private readonly Refinery | $refinery, | ||
| private readonly DataFactory | $data, | ||
| private readonly string | $installation_title, | ||
| private readonly string | $installation_url | ||
| ) |
Definition at line 40 of file HtmlMailBodyComposer.php.
| ILIAS\Mail\Mime\Presentation\HtmlMailBodyComposer::compose | ( | MailBodySource | $source | ) |
Implements ILIAS\Mail\Mime\Presentation\MailBodyComposer.
Definition at line 52 of file HtmlMailBodyComposer.php.
References $page, ILIAS\Mail\Mime\Presentation\HtmlMailBodyComposer\containsHtml(), ILIAS\Repository\refinery(), renderer(), ILIAS\Mail\Mime\Presentation\MailBodySource\transformedToHtml(), and ILIAS\Repository\ui().
Here is the call graph for this function:
|
private |
Definition at line 76 of file HtmlMailBodyComposer.php.
Referenced by ILIAS\Mail\Mime\Presentation\HtmlMailBodyComposer\compose().
Here is the caller graph for this function:
|
private |
Definition at line 37 of file HtmlMailBodyComposer.php.
|
private |
Definition at line 38 of file HtmlMailBodyComposer.php.