Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Email
PlainTextPart.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Email
;
4
5
use
Laminas\Mime\Part
;
6
use
Laminas\Mime\Mime
;
7
15
class
PlainTextPart
extends
Part {
16
20
public
function
__construct
(
$content
=
''
) {
21
22
$content
=
elgg_strip_tags
(
$content
);
23
$content
= html_entity_decode(
$content
, ENT_QUOTES,
'UTF-8'
);
24
$content
= wordwrap(
$content
);
25
26
parent::__construct(
$content
);
27
28
$this->setType(
Mime::TYPE_TEXT
);
29
$this->setCharset(
'UTF-8'
);
30
$this->setId(
'plaintext'
);
31
}
32
}
Part
Laminas\Mime\Mime\TYPE_TEXT
const TYPE_TEXT
Definition:
Mime.php:40
Elgg\Email\PlainTextPart\__construct
__construct($content= '')
Definition:
PlainTextPart.php:20
Elgg\Email\PlainTextPart
Plaintext part for email.
Definition:
PlainTextPart.php:15
$content
$content
Set robots.txt action.
Definition:
set_robots.php:6
Mime
elgg_strip_tags
elgg_strip_tags(string $string, string $allowable_tags=null)
Strip tags and offer plugins the chance.
Definition:
output.php:323
Elgg\Email
Definition:
Address.php:3
Generated on Wed Dec 4 2024 00:00:20 for Elgg by
1.8.11