ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilWorkflowEngineMailNotification.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
5 require_once './Services/Mail/classes/class.ilMailNotification.php';
6 
14 {
16  protected $subject_text;
17 
19  protected $body_text;
20 
24  public function getSubjectText()
25  {
26  return $this->subject_text;
27  }
28 
32  public function setSubjectText($subject_text)
33  {
34  $this->subject_text = $subject_text;
35  }
36 
40  public function getBodyText()
41  {
42  return $this->body_text;
43  }
44 
48  public function setBodyText($body_text)
49  {
50  $this->body_text = $body_text;
51  }
52 
53  public function send($rcp)
54  {
55  $this->initLanguage($rcp);
56  $this->initMail();
57 
58  $this->setSubject($this->subject_text);
59  $this->setBody($this->body_text);
60  $this->getMail()->appendInstallationSignature(true);
61 
62  $this->sendMail(array($rcp), array('system'), false);
63  }
64 }
initLanguage($a_usr_id)
Init language.
Base class for course/group mail notifications.
Create styles array
The data for the language used.
sendMail(array $a_rcp, $a_type, $a_parse_recipients=true)