ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilMailBody.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
7 class ilMailBody
8 {
12  private $bodyContent;
13 
18  public function __construct(string $content, ilMailBodyPurifier $purifier)
19  {
20  $this->bodyContent = $purifier->purify($content);
21  }
22 
26  public function getContent() : string
27  {
28  return $this->bodyContent;
29  }
30 }
__construct(string $content, ilMailBodyPurifier $purifier)